zig icon indicating copy to clipboard operation
zig copied to clipboard

POC: make math functions support complex arguments via anytype

Open expikr opened this issue 1 year ago • 1 comments

An illustrative proof of concept accompanying #19207

  • removes the math.complex namespace
  • moves math.complex.arg/conj/proj to math.arg/conj/proj
  • makes various math.* functions accept both real arguments as well as structs which contain re and im fields
  • add math.ln that takes real or complex args (was a deprecated stub before, revived because math.log was already taken up by arbitrary-base logarithm)

closes #19207

expikr avatar Mar 08 '24 05:03 expikr

the code doesnt pass zig fmt.

nektro avatar Mar 08 '24 06:03 nektro