function with trigonometric and square root bug

function with trigonometric and square root bug - Messages

#1 Posted: 9/7/2011 12:40:17 AM
w3b5urf3r

w3b5urf3r

0 likes in 4 posts.

Group: User

hello!

writing a smath file for retaining walls design i've found a little bug;

a square root inside a function return negative values!

see below the example:


[LIVE width=1167 height=638]http://smath.info/live/?file=3027[/LIVE]


P.S. i'm working with last beta version: smath 0.89 beta 8
#2 Posted: 9/7/2011 3:52:48 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Hello,

Just disable Optimization in functions definition. Select the function definitions, right click Optimization|None or Numeric. Just hover the mouse over the regions before and after to see the difference.
Here is the picture:

This is not possible in Live version from this site.

Btw, there were few reported problems with Symbolic optimization. I do not have the slightest idea what is the catch (in this case maybe the problem with trigonometric functions and multiple results combining with the reorganizing of expression) but the workaround about some suspicious results is to disable the Optimization of the problematic regions.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Posted: 9/7/2011 5:10:59 PM
w3b5urf3r

w3b5urf3r

0 likes in 4 posts.

Group: User

Thank you very much, now all works!
  • New Posts New Posts
  • No New Posts No New Posts