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

RuinaFunction(|.|) is smooth at zero!

parent 42a296c1
No related branches found
No related tags found
No related merge requests found
......@@ -68,12 +68,14 @@ class RuinaFunction : public NiceFunction {
double virtual regularity(double x) const {
double const arg = x / h * eta;
// TODO: Make this controllable
if (arg < 1e-14 || std::abs(arg - rho) < 1e-14)
if (std::abs(arg - rho) < 1e-14)
return std::numeric_limits<double>::infinity();
return std::abs(second_deriv(x));
}
bool virtual smoothesNorm() const { return true; }
private:
double const a;
double const eta;
......
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