Class PositivePartRegularizedWithSinAtan

Inheritance Relationships

Base Type

Class Documentation

class Mechatronix::PositivePartRegularizedWithSinAtan : public Mechatronix::RegularizedBase

Positive part smoothed.

Inizialization

inline explicit PositivePartRegularizedWithSinAtan()
virtual void setup(GenericContainer const &gc) override
void setup(real_type h)

Initialize PositivePartRegularizedWithSinAtan given h

inline void update_h(real_type h)

Evaluate

virtual real_type operator()(real_type x) const override

Evaluate

\[\begin{split} f(x) = \frac{1}{2} \begin{cases} x+\sqrt{x^2+\kappa^2} & x > 0 \\[1em] \frac{\kappa^2}{\sqrt{x^2+\kappa^2}-x} & x \leq 0 \end{cases} \end{split}\]

where \( \kappa \) satisfy

\[ f(0) = \epsilon \]

and thus

\[ \kappa = 2\epsilon \]

../_images/PositivePartRegularizedWithSinAtan0.jpeg

virtual real_type D(real_type x) const override

../_images/PositivePartRegularizedWithSinAtan1.jpeg

virtual real_type DD(real_type x) const override

../_images/PositivePartRegularizedWithSinAtan2.jpeg

Info

virtual string info() const override