It returns cbrt(x)
. It gets more accurate as iter
gets bigger.
It returns cos(x)
. It gets more accurate as iter
gets bigger.
pre-calculated value of e. It’s equal to e_iter(15)
.
It returns an approximate value of E.
It gets more and more accurate as k
gets bigger.
It returns e^x
. It gets more accurate as iter
gets bigger.
pre-calculated value of ln2. It’s equal to ln2_iter(11)
.
It returns an approximate value of ln(2).
It gets more and more accurate as k
gets bigger.
For now, k
should be less than 200.
It returns ln(x)
. It gets more accurate as iter
gets bigger. It panics when x
is less than 0.
It returns log(x) with base base
. It gets more accurate as iter
gets bigger. It panics when x
or base
is less than or equal 0.
pre-calculated value of pi. It’s equal to pi_iter(7)
.
It returns an approximate value of PI.
It gets more and more accurate as k
gets bigger.
For now, k
should be less than 255.
It returns a^b
. It gets more accurate as iter
gets bigger. If b
is an integer, try Ratio::pow_i32
instead. It panics when a
is less than 0. 0^0
is 0.
It returns sin(x)
. It gets more accurate as iter
gets bigger.
It returns sqrt(abs(x))
. It gets more accurate as iter
gets bigger.
It returns tan(x)
. It gets more accurate as iter
gets bigger.