Koord-Transf.
2D Elemente
3D Elemente
Non Geo-Scripte
Funktionen
Steuerbefehle
Attribute
Diverse
AddOns
Arithmetische
Kreis
Mathematische
Statistische
String
Array
Binäre
Spezial
EXP
LGT
LOG
SQR
Name
SQR
Syntax
SQR
(ausdruck)
Wertebereiche
ausdruck
>0, Typ real
Erläuterung
Gibt die Quadratwurzel aus
ausdruck
zurück.
Beispiel
c = SQR( 3^2 + 4^2 )
PRINT c ! c=5
oder
RECT2 0,0, a,b
radius = SQR(a^2/4 + b^2/4)
CIRCLE2 a/2,b/2, radius
Umschreibt ein Rechteck mit einem Kreis.
Besonderheiten
SQR() ist nur im reellen Zahlenraum definiert und gibt demnach positive Ergebnisse zurück. Die ebenfalls möglichen negativen Ergebnisse sind im Script durch Fallunterscheidungen zu berücksichtigen.
Links
Wikipedia:
Quadratwurzel
Referenzen
GDL-Handbuch 4.5 (DE) S.95
GDL-Handbuch 5.0 (DE) S.126
GDL-Handbuch 6.0 (DE) S.175
GDL-Handbuch 6.5 (DE) S.177
GDL-Handbuch 7.0 (DE) S.177
GDL-Handbuch 8.0 (DE) S.119
GDL-Handbuch 8.1 (DE) S.121
GDL-Handbuch 9.0 (DE) S.199
GDL-Handbuch 10.0 (DE) S.201
GDL-Handbuch 11.0 (DE) S.207
GDL Reference Guide 9.0 (INT) S.193
GDL Reference Guide 10.0 (INT) S.199
GDL Reference Guide 11.0 (INT) S.199