![]() |
Mathjinni - bug?
Why is it that Mathjinni has sin(90) = .89 when sin(90) is = 1? Is this a bug?
|
Re: Mathjinni - bug?
Quote:
probably just need to switch to degrees mode |
Re: Mathjinni - bug?
so how to switch modes?
|
Re: Mathjinni - bug?
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... |
Re: Mathjinni - bug?
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 |
Re: Mathjinni - bug?
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 |
Re: Mathjinni - bug?
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. |
All times are GMT. The time now is 06:29. |
vBulletin® Version 3.8.8