Trigonometric functions: Difference between revisions

Line 767:
=={{header|PL/I}}==
<lang PL/I>
declare (x, xd, y, v) float;
 
x = 0.5; xd = 45;
 
/* angle in radians: */
v = sin(x); y = asin(v); put skip list (y);
v = cos(x); y = acos(v); put skip list (y);
v = tan(x); y = atan(v); put skip list (y);
v = cotan(x); put skip list (v);
 
/* angle in degrees: */
v = sind(xd); y = asind(v); put skip list (yv);
v = cosd(xd); y = acosd(v); put skip list (yv);
v = tand(xd); y = atand(v); put skip list (y);
v = cotand(x); put skip list (v);
 
/* hyperbolic functions: */
Anonymous user