Class Tan
- Namespace
- YndigoBlue.Velocity.Functions
- Assembly
- YndigoBlue.Velocity.dll
Represents the TAN (tangent) trigonometric function that calculates the tangent of an angle.
public class Tan : Function, ICheckItem, IDefaultItem, IFilterItem, IElement
- Inheritance
-
Tan
- Implements
Remarks
The TAN function calculates the tangent of an angle specified in radians. The result is unbounded and approaches infinity as the angle approaches odd multiples of pi/2. For angles in degrees, use RADIANS to convert before applying TAN. This is useful for slope calculations, angle conversions, and trigonometric modeling.
Examples
Calculate the tangent 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("tangent_value", new Tan(angles["radians"])) ])
.From(angles);
var results = manager.Retrieve(query);
Constructors
- Tan(IEnumerable<IElement>)
Initializes a new instance of TAN for a composed expression (e.g. TAN(col * factor)).
- Tan(IElement)
Initializes a new instance of TAN for any element.
- Tan(Column)
Initializes a new instance of TAN for a column.
- Tan(Expression)
Initializes a new instance of TAN for an expression.