-
Notifications
You must be signed in to change notification settings - Fork 5k
Implement IRootFunctions for Complex #113569
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
Comments
Which types would implement IRoots<TSelf>? Would it be only System.Numerics.Complex? If Double implemented IRoots<Double>, then the implementation of |
double, float, decimal, rationals, all integer types, complex - even defined for symmetric matrix https://en.wikipedia.org/wiki/Square_root_of_a_matrix |
There are no plans to implement individual interfaces on This should rather be part of a more comprehensive proposal covering If someone would like to open such a more comprehensive proposal, I'd be happy to take it to API review; otherwise, I expect I'll get to this in .NET 11 |
Uh oh!
There was an error while loading. Please reload this page.
System.Numerics.Complex does not implement the IRootFunctions
The n-th root of a complex number is well defined.
see e http://mathonline.wikidot.com/nth-roots-of-complex-numbers
This would allow to solve a quadratic equation with complex factors a, b, c using generic math.
As a matter of fact the IRootFunctions is IMHO badly designed. Compute the square root of a double value yields 2 results - not one.
The n-th root of a complex number is a list of n complex numbers.
It would be better to define a new mathematically correct interface IRoots:
I removed the hypotenuse thing - that is not generic at all.
The text was updated successfully, but these errors were encountered: