HyperView User's Guide

Trigonometric Operators

Trigonometric Operators

Previous topic Next topic Expand/collapse all hidden text  

Trigonometric Operators

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

The Math library contains the following Trigonometric operators:

hmtoggle_plus1Sin

Stores the sine of the src in answer.

Inputs

src: a value table.

format: deg (default) or rad.

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.
src must be a real value table, and it must be consistent with the format argument.

Expression Builder

sin(src)

XML Example

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

hmtoggle_plus1Cos

Stores the cosine of the src in answer.

Inputs

src: a value table.

format: deg (default) or rad.

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.
src must be a real value table, and it must be consistent with the format argument.

Expression Builder

cos(src)

XML Example

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

hmtoggle_plus1Tan

Stores the tangent of the src in answer.

Inputs

src: a value table.

format: deg (default) or rad.

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.
src must be a real value table, and it must be consistent with the format argument.

Expression Builder

tan(src)

XML Example

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

hmtoggle_plus1ASin

Stores the arcsine of the src in answer.

Inputs

src: a value table.

format: deg (default) or rad.

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.
src must be a real value table with values ranging from -1 to 1. src records which are outside of this range will not add any values to the answer table.
If format is "rad" the values store in the answer table will be radians, otherwise the values will be in degrees.

Expression Builder

asin(src)

XML Example

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

hmtoggle_plus1ACos

Stores the arccosine of the src in answer.

Inputs

src: a value table.

format: deg (default) or rad.

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.
src must be a real value table with values ranging from -1 to 1. src records which are outside of this range will not add any values to the answer table.
If format is "rad" the values store in the answer table will be radians, otherwise the values will be in degrees.

Expression Builder

acos(src)

XML Example

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

hmtoggle_plus1ATan

Stores the arctangent of the src in answer.

Inputs

src: a value table.

format: deg (default) or rad.

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.
src must be a real value table.
If format is "rad" the values store in the answer table will be radians, otherwise the values will be in degrees.

Expression Builder

atan(src)

XML Example

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

hmtoggle_plus1ATan2

Stores the arctangent of the rhs/lhs src in answer.

Inputs

lhs: a value table representing a x-coordinate.

rhs: a value table representing a y-coordinate.

format: deg (default) or rad.

Outputs

answer: a value table.

Notes

lhs, rhs, and answer must be of the same binding and format.
If lhs and rhs are both constant value tables (created by the Constant operator), no records will be added to the answer table.
lhs and rhs must be a real value tables.
If format is "rad" the values store in the answer table will be radians, otherwise the values will be in degrees.

Expression Builder

atan2(lhs,rhs)

XML Example

<call name="Atan2" lhs="x_tab" rhs="y_tab"
answer="ans_tab" />