11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Math and Time Functions• If num is negative, exponent must be an integer.See Also• $ZSQR function• $ZEXP function• $ZLN function• $ZLOG function• Operators in Using <strong>Caché</strong> <strong>ObjectScript</strong>$ZSECReturns the trigonometric secant of the specified angle value.$ZSEC(n)ParametersnAngle in radians ranging from 0 to 2 Pi. It can be specified as a value, a variable,or an expression.Description$ZSEC returns the trigonometric secant of n. The result is a signed decimal number.Note:$ZSEC (like all trigonometric functions) calculates its values based on pi roundedto the number of available decimal digits. Therefore, the value returned by$ZSEC($ZPI) is –.999999999999999999 and $ZSEC(0) is .999999999999999999.For this reason you should not perform limit tests comparing these returned valuesto 1 or –1.ParametersnAn angle in radians ranging from Pi to 2 Pi (inclusive). It can be specified as a value, a variable,or an expression. You can specify the value Pi by using the $ZPI special variable. You canspecify positive or negative values smaller than Pi or larger than 2 Pi; <strong>Caché</strong> resolve these372 <strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!