Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.08 KB

trigonometry.md

File metadata and controls

55 lines (37 loc) · 1.08 KB

Trigonometry

This folder contains Python functions for trigonometric calculations.

calculate_sine(angle)

Calculates the sine of a given angle.

Parameters

  • angle: The angle in radians.

Returns

The sine value of the angle.

Example

result = calculate_sine(0.5)
print(result)  # Output: 0.479425538604203

calculate_cosine(angle)

Calculates the cosine of a given angle.

Parameters

  • angle: The angle in radians.

Returns

The cosine value of the angle.

Example

result = calculate_cosine(1.2)
print(result)  # Output: 0.3623577544766736

calculate_tangent(angle)

Calculates the tangent of a given angle.

Parameters

  • angle: The angle in radians.

Returns

The tangent value of the angle.

Example

result = calculate_tangent(0.8)
print(result)  # Output: 1.0296385570503641

Please note that these functions use the trigonometric functions from the math module.

Feel free to explore and use these trigonometry functions in your projects. Each function is self-contained and can be used independently.