zig
zig copied to clipboard
POC: make math functions support complex arguments via anytype
An illustrative proof of concept accompanying #19207
- removes the
math.complexnamespace - moves
math.complex.arg/conj/projtomath.arg/conj/proj - makes various
math.*functions accept both real arguments as well as structs which containreandimfields - add
math.lnthat takes real or complex args (was a deprecated stub before, revived becausemath.logwas already taken up by arbitrary-base logarithm)
closes #19207
the code doesnt pass zig fmt.