Cylium Language

Standard Library Documentation

Language version: 0.4.1

Math

Built-in constants

Name Type Value
PI float 3.14159274
TAU float 6.28318548
E float 2.71828175
SQRT_2 float 1.41421354

Operations

Cylium allows applying math operations using the as keyword.

Name Type Example
sin float let x = 9.0 as sqrt
cos float let x = 45.0 as sin
sqrt float let x = 45.0 as cos

Note: Trigonometric functions use radians.


Article by the language author - Ztry8 (AslanD)

Licensed under Apache License 2.0