From 4f64aa52ab68b206c0ec8a84d2129507a9931b49 Mon Sep 17 00:00:00 2001 From: Larz White Date: Wed, 10 Feb 2016 19:12:24 -0600 Subject: [PATCH] Fixed typo in TargetFunctionB --- src/UnitTests/IntegrationTests/IntegrationTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/UnitTests/IntegrationTests/IntegrationTest.cs b/src/UnitTests/IntegrationTests/IntegrationTest.cs index 42e7e1af..26c6851c 100644 --- a/src/UnitTests/IntegrationTests/IntegrationTest.cs +++ b/src/UnitTests/IntegrationTests/IntegrationTest.cs @@ -52,7 +52,7 @@ namespace MathNet.Numerics.UnitTests.IntegrationTests /// First input value. /// Second input value. /// Function result. - private static double TargeFunctionB(double x, double y) + private static double TargetFunctionB(double x, double y) { return Math.Exp(-x / 5) * (2 + Math.Sin(2 * y)); } @@ -230,7 +230,7 @@ namespace MathNet.Numerics.UnitTests.IntegrationTests [TestCase(22)] public void TestGaussLegendreRuleIntegrate2D(int order) { - double appoximateArea = GaussLegendreRule.Integrate(TargeFunctionB, StartA, StopA, StartB, StopB, order); + double appoximateArea = GaussLegendreRule.Integrate(TargetFunctionB, StartA, StopA, StartB, StopB, order); double relativeError = Math.Abs(TargetAreaB - appoximateArea) / TargetAreaB; Assert.Less(relativeError, 1e-15); }