function with trigonometric and square root bug

function with trigonometric and square root bug - Сообщения

#1 Опубликовано: 07.09.2011 00:40:17
w3b5urf3r

w3b5urf3r

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

Группа: 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 Опубликовано: 07.09.2011 03:52:48
Radovan Omorjan

Radovan Omorjan

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

Группа: 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 Опубликовано: 07.09.2011 17:10:59
w3b5urf3r

w3b5urf3r

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

Группа: User

Thank you very much, now all works!
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений