Trigonometric functions are designed to perform trigonometric operations.
This article will cover the basic principles of working with these functions in the data load editor, including:
- The general function syntax
- Working with trigonometric functions in the data load editor
For a complete, up-to-date list of trigonometric functions, please see the Qlik Sense help pages here.
Note that trigonometric functions can also be used in visualisations.
The trigonometric function syntax
Not surprisingly, the general function syntax varies depending on the function. In this section, we will use an example function and decipher its syntax. This understanding will then help you read the syntax of other functions.
Example: Sin
The Sin() function returns the sine of the input provided.
sin( x )
The rules for reading the function syntax are as follows:
- The function name itself is first and all the parameters you need to enter go between brackets: ().
- The various elements you will need to enter are separated by commas. In this function, the only element is x. This is the value to find a sine of.
- Anything between square brackets [] is an optional parameter. In this function, there are no optional parameters.
An example of this function being used would be:
Sin(67)
How to use trigonometric functions in the data load editor
Here are some important points on using trigonometric functions in the data load editor: