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?