bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/Java/Java Reference
Java•Java Reference

Java Math acos() Method

Flash cards

Review the key moves

1/4
Core idea

What is the main idea behind Java Math acos() Method?

Lesson checks

Practice each idea before moving on

Short Mimo-style checks built from this lesson's code, terms, and sequence.

1Quick choice

Which statement best captures the main point of this lesson?

2Fill blank

Complete the missing token from the example code.

___.out.println(Math.acos(0.64));
3Order

Put the learning moves in the order that makes the concept easiest to apply.

The acos() method returns the arc cosine value of a number.
Definition and Usage
Java Math acos() Method

❮ Math Methods

Example

System.out.println(Math.acos(0.64));
System.out.println(Math.acos(-0.4));
System.out.println(Math.acos(0));
System.out.println(Math.acos(1));
System.out.println(Math.acos(-1));
System.out.println(Math.acos(2));

Definition and Usage

The acos() method returns the arc cosine value of a number.

Tip

acos(-1) returns the value of PI.

Syntax

public static double abs(double
number )

Parameter Values

ParameterDescription
numberRequired. A number to find the arc cosine of, in the range -1 to 1. If the value is outside -1 to 1, it returns NaN (Not a Number).

Technical Details

Returns:A double value, representing the arc cosine of a number

Previous

Java Math abs() Method

Next

Java Math addExact() Method