Log in

View Full Version : java help exponent


techkid86
12-08-2011, 16:20
hey, i am relatively new to java, and i am looking for an exponent function or operator. my research has revealed that there is no operator, but the Math.pow();
function would work, but it seems to be missing from Math. then i realized that FRC has custom math class lacking it. where can it be found?

ty in advance.

Ether
12-08-2011, 17:18
hey, i am relatively new to java, and i am looking for an exponent function or operator. my research has revealed that there is no operator

ea = exp(a)

ba = exp(a*ln(b))

Jared Russell
12-08-2011, 17:23
The Squawk JVM provides many of the J2SE math functions in the com.sun.squawk.util.MathUtils class. You will find exp() and pow() functions there.

techkid86
12-08-2011, 17:57
thank you very much. that was the last bit of information i needed for a teleop. lol. i have been ranting about that all day. ty very much.