sin()

Calculates the sine.

Synopsis

float sin(float x);

Parameters

Parameter Description
x Angle in radian measure

Return value

In the event of an error 0.0

Errors

missing/incorrect argument

Description

Returns the sine of the angle x. x should be specified in a radian measure.

Example

 main()
{
  float pi=3.141592, f;
  f=sin(pi/2); // Results in 1
  f=asin(1); // Results in pi/2
  f=sinh(0.2); // Results in 0.201336
}

Assignment

Mathematical function

Availability

CTRL