hi,
i want to use log(double) in my java prog. so i have imported
java.lang.Math
flanagan.math.PsRandom
now i wanna use log function in a private method inside a class.
so i try :
return (94.2)-(0.024*avg_playout_delay)-11-(40*log(1+10*avg_playout_delay));
but i get error saying "cannot find symbol" "method log(double)"
please help soon.
-thanks.
Hi I havent tried this or anything,
But you might be using the wrong api or something, javas api
http://java.sun.com/j2se/1.5.0/docs/api/
shows a java.maths class, and not java.lang.maths I wonder if that could be your issue? You might not be including it properly.. just a thought.
Mark
EDIT -- Actually I just found java.lang.math sorry,
log(double a) -- Returns the natural logarithm (base e) of a double value.
You might find the problem lies with the flanagan thing or a syntax issue.... try a much simpler equation to see if the function actually works, then try tweaking your syntax in your existing equation. Sorry I cant be more help, but I have never used the maths bits