1 страниц (5 вхождений)
define one vector from another - apply a operation on each vector element with results given in a second vector - Сообщения
I would simply like to define a vector, then apply a operation to each element and have the results in a second vector. This seems to be simple in MathCad but I can't seem to get it in SMath Studio.
In MathCad

In SMath Studio I get this. I'm not shre just what this result is.

Any assistance would be appreciated.
Thank you.
In MathCad

In SMath Studio I get this. I'm not shre just what this result is.

Any assistance would be appreciated.
Thank you.
The result is the sum of the squares of the elements, multiplied by two.
As far as I know SMath does not support vectorization (yet) so, in order to obtain what you need, you should use a for loop.
As far as I know SMath does not support vectorization (yet) so, in order to obtain what you need, you should use a for loop.
325 сообщений из 2 052 понравились и 1 не понравились пользователям.
Группа: Moderator
Thank you mb10, I got the For..Loop to work it out. I was wondering if the vector options were available or not.
To omorr, the mat2sys() and sys2ma() looks like a clean method to acheive these functionality but how do I add the mat2sys() and sys2mat() functions?
Thank you.
To omorr, the mat2sys() and sys2ma() looks like a clean method to acheive these functionality but how do I add the mat2sys() and sys2mat() functions?
Thank you.
mat2sys and sys2mat are part of the CustomFunctions plugin by Davide Carpi. You can install it using the extension manager (Tools> Plugins) or use the unofficial distribution with pre-installed plugins (link in the signature).
You also might consider using the Maxima Plugin (which requires Maxima to be installed on your system)

You also might consider using the Maxima Plugin (which requires Maxima to be installed on your system)
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
Radovan Omorjan 17.10.2013 01:06:00
1 страниц (5 вхождений)
-
Новые сообщения
-
Нет новых сообщений