By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,469 Members | 1,885 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,469 IT Pros & Developers. It's quick & easy.

mathematics (Newbe)

P: n/a
Hello,

I'm practicing some java with Suns Netbeans IDE.

I tried to square (^2) two floats but the compiler complained about this
attempt.
So I want to find some DETAILED info about the use of mathematical functions
like squaring, square root, logarithm etc... and which types of variables
they 'eat'.
But I cannot find any info on Suns site.

Can someone recommend me a site with some useful info on mathematics and/or
algorithms?

thanks a lot in advance

best regards,

martin
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
martin wrote:
Hello,

I'm practicing some java with Suns Netbeans IDE.

I tried to square (^2) two floats but the compiler complained about this
attempt.
So I want to find some DETAILED info about the use of mathematical
functions like squaring, square root, logarithm etc... and which types of
variables they 'eat'.
But I cannot find any info on Suns site.

Can someone recommend me a site with some useful info on mathematics
and/or algorithms?

thanks a lot in advance

best regards,

martin


Look at the api docs for the Math class:

http://java.sun.com/j2se/1.4.2/docs/...lang/Math.html

All classes:

http://java.sun.com/j2se/1.4.2/docs/api/

--
Kind regards,
Christophe Vanfleteren
Jul 17 '05 #2

P: n/a
dankjewel, Christophe
martin
"Christophe Vanfleteren" <c.***********@pandora.be> wrote in message
news:Ob**********************@phobos.telenet-ops.be...
martin wrote:
Hello,

I'm practicing some java with Suns Netbeans IDE.

I tried to square (^2) two floats but the compiler complained about this
attempt.
So I want to find some DETAILED info about the use of mathematical
functions like squaring, square root, logarithm etc... and which types of variables they 'eat'.
But I cannot find any info on Suns site.

Can someone recommend me a site with some useful info on mathematics
and/or algorithms?

thanks a lot in advance

best regards,

martin


Look at the api docs for the Math class:

http://java.sun.com/j2se/1.4.2/docs/...lang/Math.html

All classes:

http://java.sun.com/j2se/1.4.2/docs/api/

--
Kind regards,
Christophe Vanfleteren

Jul 17 '05 #3

P: n/a
In java, the ^ operator means XOR (exclusive-or, and not power.
Power can be achieved by Math.pow()

See:
http://java.sun.com/j2se/1.4.2/docs/...uble,%20double)

Moshe

martin wrote:
Hello,

I'm practicing some java with Suns Netbeans IDE.

I tried to square (^2) two floats but the compiler complained about this
attempt.
So I want to find some DETAILED info about the use of mathematical functions
like squaring, square root, logarithm etc... and which types of variables
they 'eat'.
But I cannot find any info on Suns site.

Can someone recommend me a site with some useful info on mathematics and/or
algorithms?

thanks a lot in advance

best regards,

martin

Jul 17 '05 #4

P: n/a
your referring to the Math.<whatever> class ?

java.util.*

search sun's site on "class Math" under the api's

- perry
martin wrote:
Hello,

I'm practicing some java with Suns Netbeans IDE.

I tried to square (^2) two floats but the compiler complained about this
attempt.
So I want to find some DETAILED info about the use of mathematical functions
like squaring, square root, logarithm etc... and which types of variables
they 'eat'.
But I cannot find any info on Suns site.

Can someone recommend me a site with some useful info on mathematics and/or
algorithms?

thanks a lot in advance

best regards,

martin


Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.