Skip to content

Commit

Permalink
Rename parameter for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
trisyoungs committed Apr 30, 2024
1 parent fd6f0ca commit c52360f
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 @@ -292,14 +292,14 @@ static std::map<Functions1D::Form, Function1DDefinition> functions1D_ = {
* F(x)=A exp(-B * x) - -----
* x**6
*/
[](double x, double A, const std::vector<double> &params)
[](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;
},
// dy/dx = -B * A exp(-B * x) + 6 * C * x**-7
[](double x, double A, const std::vector<double> &params)
[](double x, double omega, const std::vector<double> &params)
{
auto expo = exp(-params[1] * x);
auto C = 6 * params[2] * pow(x, -7.0);
Expand Down

0 comments on commit c52360f

Please sign in to comment.