added exponential into predefined functions

This commit is contained in:
2024-05-10 14:36:49 +02:00
parent 93a51acbda
commit cac5e6ff5d
3 changed files with 13 additions and 0 deletions
+4
View File
@@ -55,6 +55,10 @@ std::function<double(double)> Product(
return product;
};
}
std::function<double(double)> Exponential(double prefactor, double scale) {
return [=](double x) { return prefactor * std::exp(scale * x); };
}
}; // namespace D1ToD1
namespace D3ToD1 {