coord-transf.
2d elements
3d elements
non geo scripts
functions
control statem.
attributes
various
addons
arithmetics
circle
mathematics
statistics
string
array
binary
special
EXP
LGT
LOG
SQR
Name
SQR
Syntax
SQR
(expression)
Range
expression
>0, Typ real
Description
Gibt die Quadratwurzel aus
expression
zurück.
Example
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.
Specialities
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
References
GDL-Handbuch 4.5 (DE) p. 95
GDL-Handbuch 5.0 (DE) p. 126
GDL-Handbuch 6.0 (DE) p. 175
GDL-Handbuch 6.5 (DE) p. 177
GDL-Handbuch 7.0 (DE) p. 177
GDL-Handbuch 8.0 (DE) p. 119
GDL-Handbuch 8.1 (DE) p. 121
GDL-Handbuch 9.0 (DE) p. 199
GDL-Handbuch 10.0 (DE) p. 201
GDL-Handbuch 11.0 (DE) p. 207
GDL Reference Guide 9.0 (INT) p. 193
GDL Reference Guide 10.0 (INT) p. 199
GDL Reference Guide 11.0 (INT) p. 199