Varying results for trig function

Varying results for trig function - Messages

#1 Posted: 2012/2/27 12:09:48
scottg

scottg

0 likes in 2 posts.

Group: 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 Posted: 2012/2/27 15:13:33
Radovan Omorjan

Radovan Omorjan

325 likes and 1 dislikes in 2,052 posts.

Group: 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 Posted: 2012/2/27 15:18:41
Andrey Ivashov

Andrey Ivashov

2,315 likes in 3,949 posts.

Group: 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 users liked this post
Radovan Omorjan 2012/2/27 15:25:00
#4 Posted: 2012/2/28 05:18:42
scottg

scottg

0 likes in 2 posts.

Group: User

Thanks for the help
#5 Posted: 2012/3/5 05:47:22
sergio

sergio

116 likes in 332 posts.

Group: User

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

Regards,
Sergio
1 users liked this post
Davide Carpi 2012/3/5 05:53:00
#6 Posted: 2012/5/30 16:04:55
Andrey Ivashov

Andrey Ivashov

2,315 likes in 3,949 posts.

Group: Super Administrator

Fixed in SMath Studio 0.94.



Regards.
2 users liked this post
Radovan Omorjan 2012/5/30 16:06:00, Davide Carpi 2012/5/30 16:11:00
  • New Posts
  • No New Posts