Undefine variable or Clear variable or Remove variable

Undefine variable or Clear variable or Remove variable - Changing equation that uses defined variable keeps previous value of variable - Messages

#1 Posted: 10/31/2013 5:31:17 PM
Rob

Rob

0 likes in 8 posts.

Group: User

Hi Smath Team,

I would like to change value of variable after I change an equation. However, new equation uses value of variable at time of equation definition. I saw discussions on this topic however, they did not help my situation. Please see attachment.

Rob
undefine variable.sm (10 KiB) downloaded 61 time(s).
#2 Posted: 10/31/2013 6:14:40 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

You need to switch the definitions to "optimization numeric" in the context menu (right mouse button). You can see what definition you actually create by hovering with the mouse over the math region containing the definition, or in the dynamic assistant (if you type the symbol).

PS: Optimization "symbolic" immediately evaluates the rhs of the definition, while "numeric" assigns the definition verbatim, thus delaying the evaluation to the actual use of the symbol for displaying results. I find this slightly odd but there is only one guy to change or explain that...
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#3 Posted: 10/31/2013 7:53:29 PM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Moreover, using the symbolic evaluation, you cand reach the target defining the parametric variable before the parameters
2013-11-01 00_50_21-SMath Studio Desktop - [undefine%20variable-1.sm_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#4 Posted: 11/1/2013 8:24:25 AM
Rob

Rob

0 likes in 8 posts.

Group: User

Thank you both mkraska and w3b5urf3r_reloaded.

I have used w3b5urf3r_reloaded's solution before, but did not think of it this time because I wanted a different flow to the work.

I did not even know about right clicking an equation as mkraska suggested, so that will help me also.

Rob
  • New Posts New Posts
  • No New Posts No New Posts