← All docs

cos() — internals

Compiler internals for cos(): lowering path, type checks, and runtime helpers.

cos() — internals

Where it lives

Lowering notes

  • Lowers a one-argument libm builtin such as sin(), cos(), or exp().

Runtime helpers

No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.

Signature summary

function cos(float $num): float

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references