cosine
Function: Cosine
This action calculates the cosine of a given angle. The angle must be provided in radians. The cosine is a fundamental trigonometric function that describes the ratio of the adjacent side to the hypotenuse in a right-angled triangle.
Input,
- Radians: A Number representing the angle in radians for which you want to calculate the cosine. This input is required.
Output,
- Result: A Number representing the calculated cosine value of the input angle. By default, this value will be stored in a variable named "RESULT" if you don't specify a different name.
Execution Flow,
Real-Life Examples,
-
Calculating the Cosine of a Zero-Degree Angle
- Inputs:
- Radians:
0
- Radians:
- Result: The 'CosineOfZero' variable will be updated to
1.0.
- Inputs:
-
Finding the Cosine of a 90-Degree Angle (?/2 radians)
- Inputs:
- Radians:
1.5708(approximately ?/2)
- Radians:
- Result: The 'CosineOfRightAngle' variable will be updated to approximately
0.0.
- Inputs:
-
Determining the Cosine of a 180-Degree Angle (? radians)
- Inputs:
- Radians:
3.14159(approximately ?)
- Radians:
- Result: The 'CosineOfPi' variable will be updated to approximately
-1.0.
- Inputs: