tinyexpr icon indicating copy to clipboard operation
tinyexpr copied to clipboard

complex number calculation

Open chenzhoucn opened this issue 4 years ago • 1 comments

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!

chenzhoucn avatar Apr 12 '21 12:04 chenzhoucn

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.

RokerHRO avatar Apr 08 '24 21:04 RokerHRO