Older Newer
Fri, 08 Nov 2019 14:05:18 . . . . SyneRyder [First function definition]


Changes by last author:

Added:
= fsin =

== Syntax ==

double fsin(double x)

== Arguments ==

:x

::An angle in radians, as a double-precision floating point value

== Return ==

Sine of radian angle x, as a double-precision floating point value

== Description ==

Calculates the sine of the given radian angle x.

== Example ==

<code>

%fml

float result;

float PI = 3.14159275;

float degrees = 45.0;

float radians;

radians = degrees * PI / 180;

result = fsin(radians);

printf("Sine of %lf degrees (%lf radians) is %lf", degrees, radians, result);

%%EOF

</code>

== See Also ==

(fcos)?, (ftan)?