Java Math asin()- Methode
Beispiel
Geben Sie den Arkuskosinus verschiedener Zahlen zurück:
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 und Verwendung
Die acos()
Methode gibt den Arkuskosinuswert einer Zahl zurück.
Tipp: acos(-1) gibt den Wert von PI zurück.
Syntax
public static double abs(double number)
Parameterwerte
Parameter | Description |
---|---|
number | Required. 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). |
Technische Details
Kehrt zurück: | Ein double Wert, der den Arkuskosinus einer Zahl darstellt |
---|
❮ Mathematische Methoden