Counter not incrementing

Counter not incrementing - Messages

#1 Posted: 7/19/2010 4:33:15 PM
Edward Ulle

Edward Ulle

20 likes in 182 posts.

Group: Moderator

I'm having a problem with a subroutine. A counter is not being incremented.

The counter iter is not incremented. The loop works if niter = 1 but not anything more than 1. The screen shot in the pdf file was obtained by using the Esc key to terminate the subroutine. And the results at the bottom were left over from niter = 1, which to me means iter was incremented once.

The SMath v0.88 file can be found at:

https://smath.com/wiki/GetFile.aspx?File=forum_attach%2fTheWizEd%2fsoilbearingstress.pdf

https://smath.com/wiki/GetFile.aspx?File=forum_attach%2fTheWizEd%2fsoilbearingstress.zip

Any suggestions/observations would be appreciated.

Thanks.
Ed
#2 Posted: 7/19/2010 4:59:01 PM
Andrey Ivashov

Andrey Ivashov

2269 likes in 3729 posts.

Group: Super Administrator

Cannot reproduce it.

After calculation is finished I see this (mouse hovers the main loop):


This error is well known and that's why Numeric Optimization option have added. Please, check out the next screen:


Regards.
#3 Posted: 7/19/2010 5:03:32 PM
Edward Ulle

Edward Ulle

20 likes in 182 posts.

Group: Moderator

Andrey,

I was not familiar with the Optimization feature. I did exactly as you suggested and it works.

Thanks.

Ed
#4 Posted: 7/19/2010 5:45:36 PM
Andrey Ivashov

Andrey Ivashov

2269 likes in 3729 posts.

Group: Super Administrator

No problem.

Please check also these posts to understand what optimization for:
slow and fast growing sheet computation time
Programming (The Need for Speed! section)

As I told you earlier optimization is also implemented in order to avoid errors like "result is above max/min allowed positive/negative number". These errors occurs because the Symbolic Library (SyLib.dll) sometimes makes expressions significantly grow (when simplification is not possible) - you can see screenshots of large expressions in a posts I've linked to. Parts of these large expressions sometimes may look like 124323443323434^234243222342344 or even much greater - that's why SMath Studio shows an error message and stops evaluating.

Regards, Andrey Ivashov.
  • New Posts New Posts
  • No New Posts No New Posts