-
Notifications
You must be signed in to change notification settings - Fork 0
sin
ffredyk edited this page Jul 23, 2026
·
1 revision
Math
Unary — sin <radians>.
sin <number> // angle in radians
Returns the sine of an angle given in radians. Auto-unwraps shared values.
Calls Math.Sin(double). Input is radians, not degrees. Convert degrees to radians with _deg * pi / 180.
sin 0; // 0
sin 1.5708; // ~1 (π/2 radians = 90°)
sin 3.14159; // ~0 (π radians = 180°)
// Degrees to radians conversion
_rad = _deg * 3.14159265 / 180;
_s = sin _rad;
// Wave / oscillation
_y = _amplitude * sin (_frequency * _time);
// Vertical component of angle
_vy = _speed * sin _angle;ReadOnly — pure computation. Safe from any scheduler.
- Getting Started
- Language Guide
- Type System
- Control Flow
- Functions & Code
- Strings & Text
- Arrays & Collections
- Concurrency
- Promise System
- Thread Safety
- Host API & Embedding
- CLI Tool
- Bytecode Reference
- Multiplayer
- Syntax Sugar
- Optimization Guide
- Benchmarks
- count
- select
- pushBack
- append
- deleteAt
- deleteRange
- resize
- reverse
- sort
- find
- in
- forEach
- freeze
- thaw
- isFrozen
- currentScheduler
- clientOwner
- allSchedulers
- schedulerName
- schedulerExists
- schedulerBudget
- setSchedulerBudget
- fiberCount
- readyFiberCount
- waitingFiberCount
- schedulerLoad
- sendTo