searles / FractviewAndroid

Fractview, a customizable fractal viewing app for Android
6 stars 1 forks source link

Increase precision of arc, log and root #67

Closed searles closed 7 years ago

searles commented 7 years ago

For root, use newton where float is approximation. For arc use double division before applying arctan. For log, remove exponent and add it later: log m 2^e = log m + e log 2. For exp, remove exponent and later repeatedly square or get square root until matching the exponent.

Test: TIA,

Also see http://www.netlib.org/fdlibm/e_atan2.c