You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0e737d1
Browse filesBrowse the repository at this point in the historyBrowse files
The complex conjugate and the principal argument are functions (#2181)
Chapter III of Modenov's Problems in Geometry writes every point as a complex number and
every statement in z and its conjugate, and its angles are arguments. conjugate was refused
by name, and conj and arg since #2136.
conjugate(z), also conj(z), is Entity.Conjugatef. A number is conjugated, and the conjugate
is an involution. It is a field automorphism, so it is carried through sums, differences,
products, quotients and whole powers, which keeps it on the symbols, and an identity between
conjugates is then decided as one between symbols. It is not carried through a root or a
logarithm, whose cuts break the reflection: conj(sqrt(-1)) is -i, sqrt(conj(-1)) is i. What
is known to be real is its own conjugate: a modulus, and a symbol declared real. The
codomain setting is not read, since InnerSimplified is cached on the node and the setting is
not. conj(f) = v is solved as f = conj(v), and the derivative is taken along the variable's
real line, as the modulus's is: that of conj(f) is conj(f').
arg(z) is Entity.Argf, the principal argument in (-pi, pi], real, with no value at 0. A number's
argument is exact: the axes are 0, pi and +-pi/2, and elsewhere arctan(b/a), turned by pi into
the left half-plane and gathered with a table value of the arctangent, so arg(-1 - i) is
-3/4 * pi. Numerically it is the phase.
Both print by name, draw as \overline{z} and \arg(z), and export to SymPy's conjugate and arg.
The MCP server's syntax document names them, the native smoke test evaluates both, and re and
im are still read as products.
arg(prime(x)) simplified to 0, because prime's codomain is the primes, where at x = -3 prime(x)
has no value, which BoundCheck found. A codomain says what a node's values are and not where it
has one; the argument is decided for numbers only.
Part of #2145.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
0 commit comments