Skip to content

Commit

Permalink
refs #5634. Fix GCC errors and warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Jul 23, 2012
1 parent 3b1821e commit 4c90aa9
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "MantidCurveFitting/ProductQuadraticExp.h"
#include <math.h>

namespace Mantid
{
Expand Down Expand Up @@ -43,9 +44,9 @@ namespace Mantid
double expComponent = Height*std::exp(-x/Lifetime);
double linearComponent = (A1 * x) + A0;

out->set(i, 0, A1 * x * expComponent );
out->set(i, 1, (x + A0) * expComponent);
out->set(i, 2, ((x*x) + A1*x + A0) * expComponent);
out->set(i, 0, ((A2 * x * x) + (A1 * x)) * expComponent );
out->set(i, 1, ((A2 * x * x) + x + A0) * expComponent);
out->set(i, 2, ((x*x) + (A1*x) + A0) * expComponent);
out->set(i, 3, linearComponent * expComponent / Height);
out->set(i, 4, linearComponent * expComponent * x / (Lifetime * Lifetime));
}
Expand Down

0 comments on commit 4c90aa9

Please sign in to comment.