llm
Download
37 lines 719 BGroffModified 2026-08-27 raw
12345678910111213141516171819202122232425262728293031323334353637
'\" t
.\" Copyright (c) 2026 Bruce Hill
.\" All rights reserved.
.\"
.TH Num.atan2 3 2026-08-27 "Tomo man-pages"
.SH NAME
Num.atan2 \- arc tangent of two numbers
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI Num.atan2\ :\ func(y:\ Num,\ x:\ Num\ ->\ Num?)
.fi
.SH DESCRIPTION
The angle of the point `(x, y)`, in radians, placed in the correct quadrant by the signs of both arguments.


.SH ARGUMENTS

.TS
allbox;
lb lb lbx
l l l.
Name	Type	Description
y	Num	The y coordinate. 
x	Num	The x coordinate. 
.TE
.SH RETURN
The angle in (-pi, pi], or `none` at the origin, where no angle is defined.

.SH EXAMPLES
.EX
assert (1.).atan2(1)! == Num.PI / 4
assert (0.).atan2(0) == none
.EE
.SH SEE ALSO
.BR Tomo-Num (3)