Examples of %SQROOT

Example:

	GTM>SET %X=81
	GTM>DO ^%SQROOT
	GTM>ZWRITE
	%X=81
	%Y=9	
	

This example sets the variable %X to 81 and invokes %SQROOT to calculate the square root non-interactively. ZWRITE displays the contents of the variables.

Example:

	GTM>DO INT^%SQROOT
	The square root of: 81 is: 9
	The square root of: <RETURN>
	GTM>	
	

This example invokes INT^%SQROOT interactively that prompts for a number. The square root of the number appears on the same line. %SQROOT then prompts for another number. Press <RETURN> to exit.

Example:

	GTM>WRITE $$FUNC^%SQROOT(81)
	9
	

This example invokes %SQROOT as an extrinsic function with the label FUNC.