Answer to Question #302423 in Java | JSP | JSF for fara

Question #302423

double sin = MathAssignment.sine(1.047197551);

After the execution of the above method call, the value stored in variable sin will be (approximately)

0.866025404, as the sine of 1.047197551 radians is approximately 0.866025404. The

sine of an angle x, denoted sin x, can be calculated using the following algorithm:

• If x < -π, repeatedly add 2π to x until -π ≤ x ≤ π. Conversely, if x > π, repeatedly subtract 2π

from x until -π ≤ x ≤ π. You MUST use 3.141592653589793 as a value


1
Expert's answer
2022-02-24T17:12:38-0500
public class MathAssignment {
    public static double sine(double rad) {
        return Math.sin(rad);
    }

}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS