Metoda Java Math asin() .
Příklad
Vraťte arkuskosinus různých čísel:
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));
Definice a použití
Metoda acos()
vrací hodnotu arkus cosinus čísla.
Tip: acos(-1) vrátí hodnotu PI.
Syntax
public static double abs(double number)
Hodnoty parametrů
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). |
Technické údaje
Vrácení: | Hodnota double představující arkuskosinus čísla |
---|
❮ Matematické metody