Counter not incrementing

Counter not incrementing - Сообщения

#1 Опубликовано: 19.07.2010 16:33:15
Edward Ulle

Edward Ulle

20 сообщений из 182 понравились пользователям.

Группа: 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 Опубликовано: 19.07.2010 16:59:01
Andrey Ivashov

Andrey Ivashov

2269 сообщений из 3729 понравились пользователям.

Группа: 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 Опубликовано: 19.07.2010 17:03:32
Edward Ulle

Edward Ulle

20 сообщений из 182 понравились пользователям.

Группа: Moderator

Andrey,

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

Thanks.

Ed
#4 Опубликовано: 19.07.2010 17:45:36
Andrey Ivashov

Andrey Ivashov

2269 сообщений из 3729 понравились пользователям.

Группа: 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.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений