invert
What it is
No chapter describes this one yet. It exists -- the name comes from the interpreter's own table -- but the prose has not been written. That is a gap in the documentation, not in the engine.
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
| no input | not documented yet | — |
Examples
No documentation example calls this form yet.
How it works
abs/angle/real/imag/conj are complex-aware. magnitude is a pure ALIAS of abs, not a second implementation: toolkit-signal.md §11 spells the accessor Z.magnitude()/H.magnitude(), and method sugar rewrites that to magnitude(Z). Sharing the arm is what guarantees the two names can never drift into disagreeing about what the magnitude of a complex number is. invert is deliberately polymorphic rather than three separately-named functions, per Ahmed's own spec: an image's 255-value complement, a signal's polarity flip (-x, the same math -signal already does, kept in sync via map1 rather than duplicated), and a binary/mask vector or matrix's 0<->1 flip -- three different real meanings of "invert" in their own domains, chosen by the value's own type rather than by an argument, the same way abs/magnitude above dispatch on type instead of taking a "mode" flag. Image has no alpha channel in this engine (see image::Image's own doc comment -- row-major RGB only), so inverting R/G/B is already the complete operation, not a partial one.
From the note above this builtin in the interpreter, where the reasoning was written down as it was built.