Example:
GTM>DO INT^%EXP Power: 3 Number: 12 12 raised to 3 is 1728
This example invokes %EXP in interactive mode using INT^%EXP. %EXP prompts for an exponent (power) and a base number.
Example:
GTM>SET %I=2,%J=9 GTM>DO ^%EXP GTM>ZWRITE %I=512 %J=9
This example sets the read-write variable %I to 2, variable %J to 9, and invokes %EXP to calculate the result. ZWRITE displays the contents of the variables. %I contains the result.
Example:
GTM>WRITE $$FUNC^%EXP(2,9) 512
This example invokes %EXP as an extrinsic function with the label FUNC.