Skip to content
These docs are for v1 of RelationalAI. Click here to view the v2 docs.

cos

relationalai.semantics.std.math
cos(value: NumberValue) -> Expression

Compute the cosine.

Parameters

  • value

    (NumberValue) - The angle in radians.

Returns

  • Expression - An Expression computing cos(value). Returns Float.

Examples

Compute cosine:

select(math.cos(0))
select(math.cos(Wave.angle))