Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

complex number calculation #76

Open
chenzhoucn opened this issue Apr 12, 2021 · 1 comment
Open

complex number calculation #76

chenzhoucn opened this issue Apr 12, 2021 · 1 comment

Comments

@chenzhoucn
Copy link

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!

@RokerHRO
Copy link

RokerHRO commented Apr 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants