Reset/Remove Variable

Reset/Remove Variable - Variable delete - Messages

#1 Posted: 10/16/2012 1:24:00 PM
Topsi

Topsi

0 likes in 8 posts.

Group: User

Dear members,

in often times I need the variable x . Then in next time I make
in Example a differential of Function, and x is rember of value or defition.
In mathCad I remove a variable with x:=x.

What can I do in SMath ?

So many thanks for help.

Topsi
#2 Posted: 10/16/2012 1:39:01 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Wrote

Dear members,

in often times I need the variable x . Then in next time I make
in Example a differential of Function, and x is rember of value or defition.
In mathCad I remove a variable with x:=x.

What can I do in SMath ?

So many thanks for help.

Topsi



Hi Topsi,

AFAIK the only way it's to use a 2nd empty variable.

f.e.
[LIVE width=170 height=157]http://smath.info/live/?file=4019[/LIVE]


regards,

w3b5urf3r
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Posted: 10/16/2012 4:02:58 PM
Topsi

Topsi

0 likes in 8 posts.

Group: User

Hello w3burf3r,

thanks for your help, but I can't type the symbol # in place holder.
A free new variable, that will be good. But in the teaching I will
have always the x - variable.

Have you a little helb for this new question.

Thanks for help

Topsi

#4 Posted: 10/16/2012 6:11:18 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Hi

I know, it's not a wonderful solution... I've already attempted to create a Clear() function inside a plugin - nothing to do

You can post a Feature request in the forum, IMHO would be an useful feature

As for the # character, you must write at least one letter and then you can write the # before the first character (I don't know if this is a bug or a feature).


regards,

w3b5urf3r
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#5 Posted: 10/17/2012 10:02:17 AM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

Hi,
An easy way to remove a variable is use another variable but undefined:
ClearVar

So, you must the "clean" variable undefined.

Oscar
#6 Posted: 10/17/2012 12:41:31 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

Hi,
An easy way to remove a variable is use another variable but undefined:
ClearVar

So, you must the "clean" variable undefined.



Sorry, does not work here. Clean removal would make X appear as result in the mapUnknown function from the NonLinearSolvers plugin.(see here).

Best regards, Martin Kraska
var.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#7 Posted: 10/17/2012 3:46:32 PM
Topsi

Topsi

0 likes in 8 posts.

Group: User

All helpers,
many thanks,
sorry, but my problem ist not lost. That is very trouble of SMath that I can't
remove a variable. See what I meen:
x:=3
x=3
x:=clean
x=
f(x):=x³
d
- f(x)=3 clean²
dx

that is very bad.

I think in the next version it will be.

So if anywhere help me than I give thanks bevor.

Topsi
#8 Posted: 10/19/2012 8:23:04 AM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

I see...
So I join the request for a clear() function: http://en.smath.info/forum/yaf_postst1576_clear---function.aspx
  • New Posts New Posts
  • No New Posts No New Posts