Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline scottg  
#1 Posted : 27 February 2012 19:09:48(UTC)
scottg

Rank: Newbie

Groups: Registered
Joined: 23/02/2012(UTC)
Posts: 2
Location: UK

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.


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


Any thoughts?



Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline omorr  
#2 Posted : 27 February 2012 22:13:33(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello,

The solution is to apply Optimization|Numeric or None on the region:
δ←atan(tan(φ)/γ)
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!"
Offline Andrey Ivashov  
#3 Posted : 27 February 2012 22:18:41(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
omorr 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.
thanks 1 user thanked Andrey Ivashov for this useful post.
on 27/02/2012(UTC)
Offline scottg  
#4 Posted : 28 February 2012 12:18:42(UTC)
scottg

Rank: Newbie

Groups: Registered
Joined: 23/02/2012(UTC)
Posts: 2
Location: UK

Thanks for the help
Offline PompelmoTell  
#5 Posted : 05 March 2012 12:47:22(UTC)
PompelmoTell


Rank: Advanced Member

Groups: Registered
Joined: 23/12/2011(UTC)
Posts: 319
Man
Italy
Location: italy

Was thanked: 109 time(s) in 93 post(s)
Hello,
Also in v.093 remains the problem reported by Scottg. The solution indicated by Radovan, it works properly.

Regards,
Sergio
thanks 1 user thanked PompelmoTell for this useful post.
on 05/03/2012(UTC)
Offline Andrey Ivashov  
#6 Posted : 30 May 2012 23:04:55(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
Fixed in SMath Studio 0.94.



Regards.
thanks 2 users thanked Andrey Ivashov for this useful post.
on 30/05/2012(UTC),  on 30/05/2012(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.