tinyexpr
tinyexpr copied to clipboard
complex number calculation
Now I want to calculate complex number, for example, (2+3i)/(4+5i)=0.560 976 + 0.048 780 5i, I hope to add this feature, thanks!
You might patch the files: change "double" into "double complex" in tinyexpr.h line 38 and tinyexpr.c line 70 etc. and change the names of the floating-point functions into their complex counterparts and remove functions that have no equivalent on complex numbers.