Varying results for trig function

Varying results for trig function - Poruke

#1 Objavljeno: 27. 2. 2012. 12:09:48
scottg

scottg

0 svidjanja u 2 postova.

Grupa: 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 Objavljeno: 27. 2. 2012. 15:13:33
Radovan Omorjan

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: 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 Objavljeno: 27. 2. 2012. 15:18:41
Andrey Ivashov

Andrey Ivashov

2.345 svidjanja u 4.060 postova.

Grupa: 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 korisnika je svidelo ovu objavu
Radovan Omorjan 27. 2. 2012. 15:25:00
#4 Objavljeno: 28. 2. 2012. 05:18:42
scottg

scottg

0 svidjanja u 2 postova.

Grupa: User

Thanks for the help
#5 Objavljeno: 5. 3. 2012. 05:47:22
sergio

sergio

127 svidjanja u 342 postova.

Grupa: User

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

Regards,
Sergio
1 korisnika je svidelo ovu objavu
Davide Carpi 5. 3. 2012. 05:53:00
#6 Objavljeno: 30. 5. 2012. 16:04:55
Andrey Ivashov

Andrey Ivashov

2.345 svidjanja u 4.060 postova.

Grupa: Super Administrator

Fixed in SMath Studio 0.94.



Regards.
2 korisnika je svidelo ovu objavu
Radovan Omorjan 30. 5. 2012. 16:06:00, Davide Carpi 30. 5. 2012. 16:11:00
  • Novi postovi
  • Nema novih postova