Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Greg Locock  
#1 Posted : 30 August 2009 08:52:43(UTC)
Greg Locock


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.

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline omorr  
#2 Posted : 30 August 2009 17:39:14(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
I think you are right. I also suppose it is a bug!
Open in SMath Cloud
Try 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!"
Offline Greg Locock  
#3 Posted : 30 August 2009 18:02:56(UTC)
Greg Locock


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
Offline omorr  
#4 Posted : 30 August 2009 18:16:21(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

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!"
Offline Andrey Ivashov  
#5 Posted : 30 August 2009 19:04:16(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
Fixed. Thank you.

Offline omorr  
#6 Posted : 30 August 2009 19:46:27(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Thank you Good
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Andrey Ivashov  
#7 Posted : 31 August 2009 01:19:10(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

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

Users browsing this topic
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.