Documents
Writing Docs Gigedit SFZ Instrument Scripts NKSP Language NKSP Reference

cos()

Calculates and returns the cosine of the passed number.

The natural constant π ("pi") is also available as built-in constant ~NI_MATH_PI.

Function Prototype

cos(number)

Arguments

Argument Name Data Type Description
number Real Number Input value.
[required]

Return Value

Data Type Description
Real Number Cosine of originally passed number.

Remarks

This functions accepts any standard unit and finalness for its argument number. The return value's standard unit and finalness is identical to the passed number's one.

Examples

None yet.

See also

sin(), tan(), asin(), acos(), atan(), round(), log(), exp(), pow()

Availability

Since LinuxSampler 2.1.1.svn14.

Document Updated:  2019-09-16  |  Author:  Christian Schoenebeck