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.

ParametersnAn angle in radians, specified as a non-zero value. It can be specified as a value, a variable,or an expression.ExamplesThe following example permits you to compute the cotangent of a number:READ "Input a number: ",numIF num=0 { WRITE !,"zero is an illegal value" }ELSE {WRITE !,"the cotangent is: ",$ZCOT(num)}QUITThe following examples return the cotangent for various angles:WRITE $ZCOT(1)returns .6420926159343307032.WRITE $ZCOT(0)generates an error.WRITE $ZCOT(-1)returns -.6420926159343307032.WRITE $ZCOT($ZPI)returns -2161489179585166997.See Also• $ZTAN function• $ZPI special variable$ZCOT<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 321

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

Saved successfully!

Ooh no, something went wrong!