Subject: | XploRe: Learning Guide |
See XploRe: |
Quantlet: | quant15 | |
Description: | Square root with warning, if the argument is negative. | |
Download: | quant15.xpl |
proc() = test(x) ; defines a procedure warning(x<0,"Negative argument!") ; displays a warning box containing the ; specified text in case x is ; negative at the end of the program sqrt(abs(x)) ; computes the squareroot of abs(x), ; whatever the above command found ; about x endp ; end of the procedure ; test(-9) ; runs the procedure with value -9
Subject: | XploRe: Learning Guide |
See XploRe: |