lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> On Apr 4, 2019, at 5:25 PM, Egor Skriptunoff <> wrote:
> This implementation works only if x is in the range from (-0.7) to (+0.7) 
> That's because of floating point arithmetic is approximate. 
> Exact arithmetic of fractions (with arbitrary long numerator and denominator) must be used instead. 

Building Taylor coefficents on the fly ! Amazing !

How do you figure the valid range of -0.7 to 0.7

However, this only solve 1/2 of the puzzle, unable to do cin(2.019)

Here is a hint for the second half of the puzzle:

sin(cin(X)) = cin(sin(X))