diff --git a/src/app/MathNet.Iridium/Library/Complex.cs b/src/app/MathNet.Iridium/Library/Complex.cs
index 2da8eab..4ac1833 100644
--- a/src/app/MathNet.Iridium/Library/Complex.cs
+++ b/src/app/MathNet.Iridium/Library/Complex.cs
@@ -1,10 +1,10 @@
//-----------------------------------------------------------------------
//
-// Copyright (c) 2002-2009, Christoph Rüegg, Joannes Vermorel.
+// Copyright (c) 2002-2009, Christoph Rüegg, Joannes Vermorel.
// All Right Reserved.
//
//
-// Christoph Rüegg, http://christoph.ruegg.name
+// Christoph Rüegg, http://christoph.ruegg.name
// Joannes Vermorel, http://www.vermorel.com
//
//
@@ -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());
}
///