Table of Contents

Class Sin

Namespace
YndigoBlue.Velocity.Functions
Assembly
YndigoBlue.Velocity.dll

Represents the SIN (sine) trigonometric function that calculates the sine of an angle.

public class Sin : Function, ICheckItem, IDefaultItem, IFilterItem, IElement
Inheritance
Sin
Implements

Remarks

The SIN function calculates the sine of an angle specified in radians. The result is a value between -1 and 1. For angles in degrees, use RADIANS to convert before applying SIN. This is useful for geometric calculations, wave functions, and mathematical modeling.

Examples

Calculate the sine of each angle value in the measurements table:

var schema = manager.LoadSchema("geometry");
var angles = schema["angles"];

var query = new Query()
    .Select([ angles["id"], new Expression("sine_value", new Sin(angles["radians"])) ])
    .From(angles);

var results = manager.Retrieve(query);

Constructors

Sin(IEnumerable<IElement>)

Initializes a new instance of SIN for a composed expression (e.g. SIN(col * factor)).

Sin(IElement)

Initializes a new instance of SIN for any element.

Sin(Column)

Initializes a new instance of SIN for a column.

Sin(Expression)

Initializes a new instance of SIN for an expression.