Class Asin
- Namespace
- YndigoBlue.Velocity.Functions
- Assembly
- YndigoBlue.Velocity.dll
Represents the ASIN (arcsine) inverse trigonometric function that calculates the angle whose sine is the input.
public class Asin : Function, ICheckItem, IDefaultItem, IFilterItem, IElement
- Inheritance
-
Asin
- Implements
Remarks
The ASIN function calculates the arcsine (inverse sine) of a value and returns an angle in radians. The input value must be between -1 and 1 (inclusive); values outside this range will produce an error. The result is an angle between -pi/2 and pi/2 radians. Use DEGREES to convert the result to degrees if needed. This is useful for angle calculations and inverse trigonometric operations.
Examples
Calculate the arcsine of each normalized sensor reading:
var schema = manager.LoadSchema("telemetry");
var readings = schema["readings"];
var query = new Query()
.Select([ readings["id"], new Expression("asin_value", new Asin(readings["normalized"])) ])
.From(readings);
var results = manager.Retrieve(query);
Constructors
- Asin(IEnumerable<IElement>)
Initializes a new instance of ASIN for a composed expression (e.g. ASIN(col / divisor)).
- Asin(IElement)
Initializes a new instance of ASIN for any element.
- Asin(Column)
Initializes a new instance of ASIN for a column.
- Asin(Expression)
Initializes a new instance of ASIN for an expression.