1 страниц (4 вхождений)
Iterating variables - Сообщения
#1 Опубликовано: 21.09.2015 07:17:53
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.
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.
#2 Опубликовано: 21.09.2015 11:47:00
Like this?
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Опубликовано: 21.09.2015 23:25:15
WroteAt 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.
С уважением,
Михаил Каганский
#4 Опубликовано: 22.09.2015 00:02:46
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
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
1 страниц (4 вхождений)
-
Новые сообщения
-
Нет новых сообщений