Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/app/MathNet.Iridium/Library/Complex.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//-----------------------------------------------------------------------
// <copyright file="Complex.cs" company="Math.NET Project">
// Copyright (c) 2002-2009, Christoph R�egg, Joannes Vermorel.
// Copyright (c) 2002-2009, Christoph Rüegg, Joannes Vermorel.
// All Right Reserved.
// </copyright>
// <author>
// Christoph R�egg, http://christoph.ruegg.name
// Christoph Rüegg, http://christoph.ruegg.name
// Joannes Vermorel, http://www.vermorel.com
// </author>
// <product>
Expand Down Expand Up @@ -1095,8 +1095,8 @@ public static implicit operator Complex(double number)
Complex
InverseCotangent()
{
Complex iz = new Complex(-_imag, _real); // I*this
return (new Complex(0, 0.5) * ((1 + iz).NaturalLogarithm() - (1 - iz).NaturalLogarithm())) + (Math.PI / 2);
Complex iz = new Complex(0, 1) / this;
return new Complex(0, 0.5) * ((1 - iz).NaturalLogarithm() - (1 + iz).NaturalLogarithm());
}

/// <summary>
Expand Down