OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
FindRoot.cpp File Reference

Newton-Raphson + Ridder — numerically identical to legacy findroot.c. More...

#include "FindRoot.hpp"
#include <cmath>
Include dependency graph for FindRoot.cpp:

Namespaces

namespace  openswmm
 
namespace  openswmm::findroot
 

Functions

int openswmm::findroot::newton (double x1, double x2, double *rts, double xacc, const NewtonFunc &func)
 
double openswmm::findroot::ridder (double x1, double x2, double xacc, const RidderFunc &func)
 

Detailed Description

Newton-Raphson + Ridder — numerically identical to legacy findroot.c.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License