HyperView User's Guide

Power Operators

Power Operators

Previous topic Next topic Expand/collapse all hidden text  

Power Operators

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

The Math library contains the following Power operators:

hmtoggle_plus1SquareRoot

Stores the square root of src in answer.

Inputs

src: a value table.

Outputs

answer: a value table.

Notes

src and answer must be of the same binding and format.
If src is a constant value table (created by the Constant operator), no records will be added to the answer table.
If src is a real value table and contains any negative values, no value will be placed in the answer table.

Expression Builder

sqrt(src)

XML Example

<call name="SquareRoot" src="src_tab" answer="ans_tab" />

hmtoggle_plus1Power

Stores src raised to the power of exp in answer.

Inputs

src: a value table.

exp: the exponent.

Outputs

answer: a value table.

Notes

src and answer must be of the same binding and format.
If a value in src is large enough to cause a floating-point overflow, no record will be added to answer.
If src is a constant value table (created by the Constant operator), no records will be added to the answer table.

Expression Builder

src ^ exp

XML Example

<call name="Power" src="src_tab" exp="3" answer="ans_tab" />

hmtoggle_plus1Exponent

Stores the number e raised to the power src in answer.

Inputs

src: a value table.

Outputs

answer: a value table.

Notes

src and answer must be of the same binding and format.
If a value in src is large enough to cause a floating-point overflow, no record will be added to answer.
If src is a constant value table (created by the Constant operator), no records will be added to the answer table.

Expression Builder

exp(src)

XML Example

<call name="Exponent" src="src_tab" answer="ans_tab" />

hmtoggle_plus1Log

Stores the log of src in answer.

Inputs

src: a value table.

base: e or 10 (default is 10).

Outputs

answer: a value table.

Notes

src and answer must be of the same binding and format.
If a record in src contains any zeros, no value will be placed in the answer table.
If src is a constant value table (created by the Constant operator), no records will be added to the answer table.

Expression Builder

log(src,base)

XML Example

<call name="Log" src="src_tab" base="e" answer="ans_tab" />