On Tue, 25 Feb 2003, Mirar @ Pike developers forum wrote:
Such a precise class would be nice, though. With the suitable methods for resolving equations and similar it would be very cool. :)
sin(b*x²)=a :)
well this sounds as if you want to wrap a computer algebra system with pike. If there is real interest into such a project I could try to convince the Paderborn MuPad Group to allow for such a project.
--- Ludger
/ Mirar
Previous text:
2003-02-25 13:38: Subject: Re: Do we have a floatingpoint bug?
So, let's take another example. ln(1)
It's simply not possible to store all numbers correctly unless you do not do any of the actual calculations, instead storing the formulas all the time.
That might be exactly what you want, but it's not what you fwant when you write games or video-players, just to take two totally arbitrary examples.
Say that you have a scrolltext that should move according to sin(xpos) + cos(frame/10) or something, you would get a very slow scrolltext if you try to calculate it exactly.
/ Per Hedbor ()