Varying results for trig function

Varying results for trig function - Сообщения

#1 Опубликовано: 27.02.2012 12:09:48
scottg

scottg

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

Группа: User

I found a minor problem with trigonometric functions. The following problem occurs only for a value of 30 degrees, as you can see the value of sin evaluates differently depending on the construction of the math. And only when I am modifying the value of phi in expression shown.

It would not be a problem if a value of phi = 30 was not common in geotechnical engineering.


[MATH]φ:30deg[/MATH]
[MATH=eng]γ:1.3[/MATH]
[MATH=eng]δ:atan(tan(φ)/γ)[/MATH]
[MATH=eng]δ=23.9468@'deg[/MATH]
[MATH=eng]β:sin(δ)[/MATH]
[MATH=eng]β=1.2177[/MATH]
[MATH=eng]sin(δ)=0.4059[/MATH]


Any thoughts?



#2 Опубликовано: 27.02.2012 15:13:33
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

Hello,

The solution is to apply Optimization|Numeric or None on the region:
[MATH=eng]δ←atan(tan(φ)/γ)[/MATH]
This is a common advice to do first when you need just the numerical values.

BTW, the degrees does not work properly in v0.92

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Опубликовано: 27.02.2012 15:18:41
Andrey Ivashov

Andrey Ivashov

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

Группа: Super Administrator

Wrote

BTW, the degrees does not work properly in v0.92


It doesn't wort in one case only - when you try to evaluate it numerically in a single line like:


P.S.: Will try to release new SMath Studio version as soon as possible.

Regards.
1 пользователям понравился этот пост
Radovan Omorjan 27.02.2012 15:25:00
#4 Опубликовано: 28.02.2012 05:18:42
scottg

scottg

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

Группа: User

Thanks for the help
#5 Опубликовано: 05.03.2012 05:47:22
sergio

sergio

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

Группа: User

Hello,
Also in v.093 remains the problem reported by Scottg. The solution indicated by Radovan, it works properly.

Regards,
Sergio
1 пользователям понравился этот пост
Davide Carpi 05.03.2012 05:53:00
#6 Опубликовано: 30.05.2012 16:04:55
Andrey Ivashov

Andrey Ivashov

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

Группа: Super Administrator

Fixed in SMath Studio 0.94.



Regards.
2 пользователям понравился этот пост
Radovan Omorjan 30.05.2012 16:06:00, Davide Carpi 30.05.2012 16:11:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений