Skip to content
Snippets Groups Projects
Commit 7a5920c3 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

RuinaFunction::evaluate()

parent 919322df
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,15 @@ class RuinaFunction : public NiceFunction {
// logarithmic
rho(std::exp(-K / a)) {}
double virtual evaluate(double x) const {
double const arg = x / h * eta;
if (arg <= rho)
return 0;
return coefficientProduct *
(+a * arg * (std::log(arg) - 1) + K * arg + a * rho);
}
double virtual leftDifferential(double x) const {
double const arg = x / h * eta;
if (arg <= rho)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment