Computer Science, asked by aryanpahari121, 8 months ago

how is trignometry use in coding? what are the example?

Answers

Answered by Anonymous
0

Answer:

The class Math contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions.

Java.lang.Math.sin() Method : is an inbuilt method which returns the sine of the value passed as an argument. The value passed in this function should be in radians. If the argument is NaN or an infinity, then the result is NaN. If the argument is zero, then the result is a zero with the same sign as the argument.

Syntax :

Math.sin(double radians)

Parameters :

The method takes one mandatory argument in radians.

Returns :

It returns a double value. The returned value is the sine of the specified double value passed.

Example 1 : Program demonstrating the use of sin()

Similar questions
Math, 4 months ago