User manual
native Float:acos(Float:x);
arccos(x) im Bereich [0,
π
], x Element von [-1, 1]
native Float:atan(Float:x);
arctan(x) im Bereich [-
π
/2,
π
/2]
native Float:atan2(Float:y, Float:x);
arctan(y/x) im Bereich [-
π
,
π
]
native Float:sinh(Float:x);
Sinus Hyperbolicus von x
native Float:cosh(Float:x);
Cosinus Hyperbolicus von x
native Float:tanh(Float:x);
Tangens Hyperbolicus von x
native Float:exp(Float:x);
Exponentialfunktion e
x
native Float:log(Float:x);
natürlicher Logarithmus ln(x), x > 0
native Float:log10(Float:x);
Logarithmus zur Basis 10 log
10
(x), x > 0
native Float:pow(Float:x, Float:y);
x
y
. Ein Argumentenfehler liegt vor bei x = 0 und y <= 0, oder bei x < 0 und y ist nicht ganzzahlig.
native Float:sqrt(Float:x);
Wurzel x, x >= 0
native Float:ceil(Float:x);
kleinster ganzzahliger Wert, der nicht kleiner als x ist
native Float:floor(Float:x);
größter ganzzahliger Wert, der nicht größer als x ist
native Float:fabs(Float:x);
absoluter Wert | x |
native Float:ldexp(Float:x, n);
x*2
n
native Float:frexp(Float:x, &n);
zerlegt x in eine normalisierte Mantisse im Bereich [1/2, 1], die als Resultat geliefert wird, und
eine Potenz von 2, die in n abgelegt wird. Ist x null, sind beide Teile des Resultats null.
native Float:modf(Float:x, &Float:ip);
zerlegt x in einen ganzzahligen Teil und einen Rest, die beide das gleiche Vorzeichen wie x
besitzen. Der ganzzahlige Teil wird bei ip abgelegt, der Rest ist das Resultat.
native Float:fmod(Float:x, Float:y);
Gleitpunktrest von x/y, mit dem gleichen Vorzeichen wie x. Wenn y null ist, hängt das Resultat
von der Implementierung ab.
native isnan(Float:x);
liefert einen Wert ungleich Null, wenn x "not a number" ist
78 Rev. 01