Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Hello Andrey, I think this should be a bug. f(x)←5+f(x)f(1)=#This will not stop executing until it is interrupted. I think this is an infinite loop problem. Regards, Radovan Edited by moderator 30 September 2010 01:11:31(UTC)
| Reason: Not specified |
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)
|
Hello.
Thank you. Will check this later.
Regards.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 30/08/2009(UTC) Posts: 52 Location: Australia
|
what behaviour would you expect?
you are asking for 5+5+5....
|
|
|
|
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:what behaviour would you expect?
you are asking for 5+5+5.... Yes, Greg, that is the problem. We can have something like this: f(x)←xf(x)←f(x)/2f(5)=2.5But with this, we get in trouble. f(x)←f(x)/2f(5)=#@#The question is - Does it to be the user's problem to interrupt such a calculation or to suppress it by an error message? I was not sure about it, and that was my doubt about "endless loop". 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.
|
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Hello Andrey, Sorry for being persistent, but I think I was not precise enough. The previous calculation will work in SMath - there was not a problem. But, try this: The problem is that this will never stop, until we "Interrupt processing". My question was - Should it be left this way or should it be stopped by SMath. 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)
|
This is also fixed. Now SMath Studio understands that it is not good practice to repeat substitution of the already substituted functions with the same names So one will not see infinite loops in such cases anymore. Regards.
|
1 user thanked Andrey Ivashov for this useful post.
|
|
|
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.