Rank: Advanced Member Groups: Registered
Joined: 30/08/2009(UTC) Posts: 52 Location: Australia
|
Using the factorial for loop example
I ran the for loop example, eg with the counter set to 173 a:=1 for i:1,i<173,i:=i+1 a:=a*i
a=
which gives a remarkably small answer without an error message
This software has great potential by the way, thank you.
|
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
I think you are right. I also suppose it is a bug! Open in SMath CloudTry yourself, please 173!=#or 173!—#The error has been issued this time - overflow!. Regards, Radovan Edited by user 30 August 2009 17:44:45(UTC)
| Reason: Not specified |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 30/08/2009(UTC) Posts: 52 Location: Australia
|
Oh, sure I have no problem with the factorial function overflowing, what I didn't like was the absence of an error message in the little program. You have incidentally answered another puzzle, how to use the "for" keybutton. Cheers greg
|
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Greg Locock wrote:Oh, sure I have no problem with the factorial function overflowing, what I didn't like was the absence of an error message in the little program.
A agree with you. Andrey will answer on this, for sure. Btw., I think he is rather busy at the moment. In a day or two a new release should be here. Greg Locock wrote:You have incidentally answered another puzzle, how to use the "for" keybutton. You are welcome. Some things could be a problem at the beginning because there is no Help or Tutorial yet. Btw., I hope you understood these two ways of "for" loop? The second one is obtained with "range" function. If not, let me know and I will give you a detailed explanation. Regards, Radovan |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
Rank: Administration Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member Joined: 11/07/2008(UTC) Posts: 1,616 Was thanked: 1978 time(s) in 666 post(s)
|
Fixed. Thank you.
|
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Thank you |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
Rank: Administration Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member Joined: 11/07/2008(UTC) Posts: 1,616 Was thanked: 1978 time(s) in 666 post(s)
|
Finally, in order to avoid possible errors in the calculations below I've decided to forbid using variable, that caused an error. Release will be available tomorrow in the midnight (01.09.2009). Edited by user 31 August 2009 01:21:15(UTC)
| Reason: Not specified
|
|
|
|
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.