Skip to content

Commit

Permalink
correction of buckingham
Browse files Browse the repository at this point in the history
  • Loading branch information
Danbr4d committed Apr 30, 2024
1 parent c52360f commit 07143e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/math/function1D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ static std::map<Functions1D::Form, Function1DDefinition> functions1D_ = {
[](double x, double omega, const std::vector<double> &params)
{
auto B = exp(-params[1] * x);
auto C = params[2] * pow(x, 6.0);
return params[0] * B + C;
auto C = params[2] / pow(x, 6.0);
return params[0] * B - C;
},
// dy/dx = -B * A exp(-B * x) + 6 * C * x**-7
[](double x, double omega, const std::vector<double> &params)
Expand Down

0 comments on commit 07143e7

Please sign in to comment.