ACOS()
ACOS(wartosc)
Funkcja zwraca arcus cosinus dla podanej wartosci. Zwróciona wartość jest z zakresu od 0 do PI wyrażona w radianach.
UWAGA!!!
"wartosc" musi byc z zakresu <-1, 1>. W przeciwnym razie zostanie zwrócony błąd:
SQL Error: ORA-01428: argument 'XXX' is out of range
01428. 00000 - "argument '%s' is out of range"
Przykład 1:
SELECT ACOS(0.5) "Arcuc cosinus" FROM DUAL;
Arcuc cosinus
----------------------
1,04719755119659774615421446109316762805
1 rows selected
Przykład 2:
SELECT ACOS(1.01) "Arcuc cosinus" FROM DUAL;
SELECT ACOS(1.01) "Arcuc cosinus" FROM DUAL
Error report:
SQL Error: ORA-01428: argument '1.01' is out of range
01428. 00000 - "argument '%s' is out of range"
*Cause:
*Action:
Brak komentarzy:
Prześlij komentarz