1 страниц (8 вхождений)
Evaluate expression for a variable(s) set to a number - Сообщения
Hi All,
So I am using Smath Studio for personal projects (I am converting from Mathematica that I no longer have access to).
Here is a very simple task i need to do and yet after 30 minutes of search I still do not know how to achieve it:
Say I have g=h+j-k+100
How do I evaluate g for h = 1, j=2, k=3?
I have found that if g=j+2, setting g(j)=g will do the trick for one variable only: g(1)=3, while g=j+2.
In mathematica it would be as simple as g/.{h->1,j->2,k->3}
This would come in very useful if you would want to evaluate function that has more than one variable.
Many thanks!
So I am using Smath Studio for personal projects (I am converting from Mathematica that I no longer have access to).
Here is a very simple task i need to do and yet after 30 minutes of search I still do not know how to achieve it:
Say I have g=h+j-k+100
How do I evaluate g for h = 1, j=2, k=3?
I have found that if g=j+2, setting g(j)=g will do the trick for one variable only: g(1)=3, while g=j+2.
In mathematica it would be as simple as g/.{h->1,j->2,k->3}
This would come in very useful if you would want to evaluate function that has more than one variable.
Many thanks!
Thank you ioan92! That is really what I needed.
Also what would be the best tutorial you can recommend on SMATH? Either English or Russian.
Thanks!
Also what would be the best tutorial you can recommend on SMATH? Either English or Russian.
Thanks!
That looks very interesting as well, will experiment. Thanks!
2 пользователям понравился этот пост
Confirmed. This is bug of Min() and Max(). Apparently they always try to return a numeric result, regardles of what the optimization setting is. If they would return themselves with evaluated/preprocessed arguments, at() would work, as the example with max() shows.

Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
Davide Carpi 17.04.2014 13:49:00
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
Martin Kraska 17.04.2014 18:08:00
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 страниц (8 вхождений)
-
Новые сообщения
-
Нет новых сообщений