I found several classes that people had prepared, but some had annoying bugs (e.g. they get Sqrt wrong - lol).
Then I discovered that a whole complex math library (including complex trig) is part of the standard .NET distribution.
This seems to be a new thing in .NET v4.0. In case anyone hasn't realised, the class is System.Numerics.Complex.
Then I discovered that a whole complex math library (including complex trig) is part of the standard .NET distribution.
This seems to be a new thing in .NET v4.0. In case anyone hasn't realised, the class is System.Numerics.Complex.