From 9e17125dc0867e3d932e1e6e06a0aae942f23e45 Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Wed, 22 Jul 2015 09:54:33 +0200 Subject: [PATCH] bugfix in quadratic solution computation --- VectoCore/Utils/VectoMath.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VectoCore/Utils/VectoMath.cs b/VectoCore/Utils/VectoMath.cs index 9adb009096..0538c4555a 100644 --- a/VectoCore/Utils/VectoMath.cs +++ b/VectoCore/Utils/VectoMath.cs @@ -80,7 +80,7 @@ namespace TUGraz.VectoCore.Utils retVal.Add((-b - Math.Sqrt(D)) / (2 * a)); } else { // only one solution possible - retVal.Add((-b / (4 * a * c))); + retVal.Add((-b / (2 * a))); } return retVal; } -- GitLab