1 страниц (6 вхождений)
Matrix element - Calculating with arrays - Сообщения
#1 Опубликовано: 19.11.2013 13:15:38
#2 Опубликовано: 19.11.2013 17:49:17
1. Read program's documentation
2. Use for loop
2. Use for loop
#3 Опубликовано: 20.11.2013 07:16:34
A similar question was answered here:
http://en.smath.info/forum/yaf_postst2142_Defining-a-sequence.aspx
http://en.smath.info/forum/yaf_postst2142_Defining-a-sequence.aspx
#4 Опубликовано: 20.11.2013 07:22:20
I didn't find anything about calculating with arrays in this way. And it's not necessary to use loop as i won't test anything. In addition to typical linear algebra calculations, arrays in Mathcad are useful for performing calculations repeatedly over a range of values. See in the first image another SMath example and in the 2nd image how Mathcad does it:

#5 Опубликовано: 20.11.2013 12:03:09
SMath cannot handle vector-valued indices in expressions (AKA "range variables" in Mathcad). Therefore you MUST use loops or you rely on functions from 3rd party plugins like matlab c++ library by uni or Maxima, where nearly all functions can be applied to vectors (without indices). Your example reveals that you might not be aware of the difference between text indices and adress- or array indices.
Most of the tutorials for SMath adress this issue, as this is a very common pitfall for newbies.
Section matrix elementwise.sm (35 КиБ) скачан 149 раз(а).
Most of the tutorials for SMath adress this issue, as this is a very common pitfall for newbies.
Section matrix elementwise.sm (35 КиБ) скачан 149 раз(а).
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#6 Опубликовано: 21.11.2013 12:13:51
My intention was to reproduce in SMath Studio operations with vectors as in Mathcad. I understand you, but on Mathcad there is no problem to do like that. Besides, only now I'm working with SMath, and I also learning on how to use the program.
1 страниц (6 вхождений)
-
Новые сообщения
-
Нет новых сообщений