Notices


Reply
Thread Tools
Posts: 103 | Thanked: 8 times | Joined on Aug 2008
#1
Why is it that Mathjinni has sin(90) = .89 when sin(90) is = 1? Is this a bug?
 
Posts: 36 | Thanked: 5 times | Joined on Dec 2007
#2
Originally Posted by heelio View Post
Why is it that Mathjinni has sin(90) = .89 when sin(90) is = 1? Is this a bug?
are you in radians mode? in that case the answer is correct.
probably just need to switch to degrees mode
 
Posts: 103 | Thanked: 8 times | Joined on Aug 2008
#3
so how to switch modes?
 
tso's Avatar
Posts: 4,783 | Thanked: 1,253 times | Joined on Aug 2007 @ norway
#4
there may be a bug yes. if you do any kind of math that results in a answer less then 1, the number is not correctly rounded...

try 1/10 and look at the result.

and i have already told the dev about it, but if someone have a quick answer on how to fix it, that would be nice.

and im not sure if mathjinni has a radian mode...
 
Posts: 36 | Thanked: 5 times | Joined on Dec 2007
#5
ooh, yes 1/10 doesn't look nice

i don't know how to change it to degree mode, but you can confirm it is indeed in radian mode by entering sin(90*2pi/360) which does give 1
 
Framstag's Avatar
Posts: 72 | Thanked: 51 times | Joined on Jul 2008 @ Germany
#6
MathJinni works in radiant mode (As do the trigometric C functions in the background). I'll put support for other modes on the TODO list. If you have any specific whishes regading the way it should be implemented, mail me.

MathJinni does use C double internally. So rounding errors that expose decimal to binary conversion problems for floating points are possible and will be seen in edge cases. I assume that rounding numbe routput to a sensible limit may be wise (10 decimals behind colon for example). I would be interested in getting opinions about that!

I you have other improvement ideas for or have found bugs in MathJinni also do not hesitate to mail me.

Gruß...Tim
 
Framstag's Avatar
Posts: 72 | Thanked: 51 times | Joined on Jul 2008 @ Germany
#7
The next version will have reduced accuracy leading to more sensible values (1/10 is now 0.1!). It will also have the abbility to switch between radiant and degrees for the calculator. Expect a new version at the weekend or shortly after it.

Future versions will have a configurable accuracy and support for grad.

Gruß...Tim.
 
Reply


 
Forum Jump


All times are GMT. The time now is 16:58.