Ask AI
Skip to main content

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,

  1. Calculating the Cosine of a Zero-Degree Angle

    • Inputs:
      • Radians: 0
    • Result: The 'CosineOfZero' variable will be updated to 1.0.
  2. Finding the Cosine of a 90-Degree Angle (?/2 radians)

    • Inputs:
      • Radians: 1.5708 (approximately ?/2)
    • Result: The 'CosineOfRightAngle' variable will be updated to approximately 0.0.
  3. Determining the Cosine of a 180-Degree Angle (? radians)

    • Inputs:
      • Radians: 3.14159 (approximately ?)
    • Result: The 'CosineOfPi' variable will be updated to approximately -1.0.