kennethgoodman / rockstar_math

mathlib for rockstar language
2 stars 2 forks source link

Exit early from loops if convergence is reached #17

Closed DavideFauri closed 6 years ago

DavideFauri commented 6 years ago

I've tried to address issue https://github.com/kennethgoodman/rockstar_math/issues/15.

This PR is dependent on the Is Close function implemented in https://github.com/kennethgoodman/rockstar_math/pull/14

Now computation of every function that requires iterative approximation should be even faster, while still being as precise as before. The involved functions are Exp, LN, Power for real exponents, trigonometric and hyperbolic.