// calc sine of angle theta, expressed in radians double s = Math.sin( theta );You can leave off the Math. if you use a static import.
static import java.lang.Math.*; ... // calc sine of angle theta, expressed in radians double s = sin( theta );
For the most part, all the trig functions you need are in the java.lang.Math class with the same names mathematicians use namely: sin, cos, tan, asin, acos, atan, sinh, cosh, tanh.
This page is posted |
http://mindprod.com/jgloss/trigonometry.html | |
Optional Replicator mirror
|
J:\mindprod\jgloss\trigonometry.html | |
Please read the feedback from other visitors,
or send your own feedback about the site. Contact Roedy. Please feel free to link to this page without explicit permission. | ||
Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[18.223.195.30] |
| |
Feedback |
You are visitor number | |