EAGLE Help
Trigonometric Functions
-
Function
-
Trigonometric functions.
-
Syntax
-
real acos(real x);
real asin(real x);
real atan(real x);
real cos(real x);
real sin(real x);
real tan(real x);
-
Returns
-
acos returns the arc cosine of x.
asin returns the arc sine of x.
atan returns the arc tangent of x.
cos returns the cosine of x.
sin returns the sine of x.
tan returns the tangent of x.
Constants
PI | the value of "pi" (3.14...) |
Example
real x = PI / 2;
printf("The sine of %f is %f\n", x, sin(x));
Index
|
Copyright © 2005 CadSoft Computer GmbH
|