atan2()
function atan2(float $y, float $x): float
Returns the arc tangent of two variables.
Parameters:
$y(float)$x(float)
Returns: float
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/math/atan2.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how atan2 is implemented in the compiler, see the internals page.