Ok, a friend and I are trying to make a math class in javascript. We are trying to not have any dependency on the original math class so we are trying to write all our own functions for exponents, roots, etc. How do you calculate the log of a number? Is there a specific formula or something?
Alcohol & calculus don't mix.
Never drink & derive.
.
use the sequence to evaluate ln(x/(2^n)), although it's an invinite series it converges pretty quickly so you only need to do the first 10-20 terms.
I would warn you that doing it this way will be pretty slow, the series I've given you is actually hard wired into the FPU, doing it in Java Script will be chronic compared to the original one
If it wasn't for this sentence I wouldn't have a signature at all.