trigonometry : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

trigonometry
Use the java.lang.Mathlang.Math class to compute trignometric functions. You say things like:
// 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.

Learning More

Oracle’s Javadoc on java.lang.Math class : available:

This page is posted
on the web at:

http://mindprod.com/jgloss/trigonometry.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\trigonometry.html
Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

IP:[65.110.21.43]
Your face IP:[18.223.195.30]
You are visitor number