// 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.
|
|
available on the web at: |
http://mindprod.com/jgloss/trigonometry.html |
optional Replicator mirror
|
J:\mindprod\jgloss\trigonometry.html | |
![]() |
Please email your
feedback for publication,
letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear
wording, broken/redirected link reports, suggestions to improve this page or comments to
Roedy Green :
| |
| Blog | Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[107.21.186.38] |
|
| Feedback | You are visitor number 11. | |