User manual
7.6 math.c2
7.6.1 Mathematische Standardfunktionen
Die Definitionen der Standardfunktionen haben die Form
function fx ( float x ) returns float
7.6.2 Potenzieren
Die Funktion
function pow ( float x, float y ) returns float
berechnet die y-Potenz zur Basis x (x y, “x hoch y”).
7.6.3 Absolutwertfunktionen
Für jeden numerischen Datentyp (außer byte, das entspricht int beim Funktionsaufruf)
gibt es eine Absolutwertfunktion:
109
7 Standardmodule
Name berechnetes Ergebnis
sqr Quadrat
sqrt Quadratwurzel
curt Kubikwurzel
sin Sinus, Argument x in Bogenmaß (Radiant)
cos Cosinus, Argument x in Bogenmaß (Radiant)
tan Tangens, Argument x in Bogenmaß (Radiant)
asin Arkussinus, Ergebnis in Bogenmaß (Radiant)
acos Arkuscosinus, Ergebnis in Bogenmaß (Radiant)
atan Arkustangens, Ergebnis in Bogenmaß (Radiant)
log Logarithmus zur Basis 10
ln natürlicher Logarithmus
exp Exponentialfunktion e
x
ceil kleinste ganze Zahl, die nicht kleiner als x ist (Aufrunden)
floor größte ganze Zahl, die nicht größer als x ist (Abrunden)