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 TheWizEd  
#1 Posted : 19 July 2010 23:33:15(UTC)
TheWizEd


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2010(UTC)
Posts: 178
Man
United States

Was thanked: 19 time(s) in 13 post(s)
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:

http://smath.info/wiki/G...%2fsoilbearingstress.pdf

http://smath.info/wiki/G...%2fsoilbearingstress.zip

Any suggestions/observations would be appreciated.

Thanks.
Ed

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

Offline Andrey Ivashov  
#2 Posted : 19 July 2010 23:59:01(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)
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.
Offline TheWizEd  
#3 Posted : 20 July 2010 00:03:32(UTC)
TheWizEd


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2010(UTC)
Posts: 178
Man
United States

Was thanked: 19 time(s) in 13 post(s)
Andrey,

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

Thanks.

Ed
Offline Andrey Ivashov  
#4 Posted : 20 July 2010 00:45:36(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)
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.
Users browsing this topic
Guest
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.