1 страниц (6 вхождений)
Varying results for trig function - Сообщения
#1 Опубликовано: 27.02.2012 12:09:48
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?
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
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
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
WroteBTW, 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
Thanks for the help
#5 Опубликовано: 05.03.2012 05:47:22
Hello,
Also in v.093 remains the problem reported by Scottg. The solution indicated by Radovan, it works properly.
Regards,
Sergio
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
Fixed in SMath Studio 0.94.

Regards.
Regards.
2 пользователям понравился этот пост
1 страниц (6 вхождений)
-
Новые сообщения
-
Нет новых сообщений