Rank: Newbie
Groups: Registered
Joined: 21/09/2015(UTC) Posts: 1
|
Hi there, hopefully somebody can help me with the following problem.
I need to iterate a variable to solve a problem I have. It needs to look something like this:
x := 1 x = 1 ... ... ... x := x + 5 x = 6 ... ... ... x := x - 2 x = 4 ... ... etc
Is it possible to do this is SMath? At the moment it does not allow me to change x once I have declared it as shown in the first line.
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,650 Location: Italy Was thanked: 1338 time(s) in 878 post(s)
|
|
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 17/01/2013(UTC) Posts: 296 Location: Khabarovsk, Russia Was thanked: 151 time(s) in 107 post(s)
|
Originally Posted by: CasualKilla At the moment it does not allow me to change x once I have declared it as shown in the first line.
I suppose that's because you use "=" button to assign a variable its value; but when a variable is already defined, the "=" button has its usual (in SMath) meaning of displaying its value, instead of assignment. To assign, use ":" button instead. |
Best regards, Mike Kaganski |
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
You must post either the Smath work sheet that shows the stuff to solve or an image that show enough information. No solver is fool proof and often solving = muffing ! Collabs read you not as fast it used to be in the Mathsoft Collaboratory [that gorgeous forum PTC scrapped].
Cheers ,,,, waiting to read you again.
Jean
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.