Well, none of those are functions in the math class.
You can find a list here:
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Math.html
I can help you with a few of those:
To get the cube root:
Math.pow(base,3);
To get log base 10 of X:
int answer = Math.log(x)/Math.log(10);
To get hypotenuse a little more work is needed:
Math.sqr((Math.pow(a,2)+Math.pow(b,2));
I think that will work, not sure.
I don't know what you want on your last thing though.
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
I see what it is. TextPad must come with extra classes that make things easier. A lot of times you will get things like this. I know normally you'll find an easier class to help out with reading and writing data.
To get the sine of a number in the normal methods:
Math.sin(x);
You won't be able to use those methods you have unless TextPad actually came with them, or you download them. I would suggest using the normal classes though.
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
Sorry, we must have posted at the same time because I did'nt see that. But that's cool, I never checked 1.5's new Math features. It's good they added a few of those like log10.
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20