icedb
version 0.5.1
Snow particle scattering database API
|
Functions | |
double | findzero (double a, double b, const std::function< double(double) > &evaltarget) |
Zero-finding implementation - Brent's method. More... | |
template<class T , class U > | |
U | secantMethod (const T &f, U guess_a, U guess_b, double eps=0.000001, size_t maxIter=50) |
double icedb::zeros::findzero | ( | double | a, |
double | b, | ||
const std::function< double(double) > & | f | ||
) |
Zero-finding implementation - Brent's method.
Definition at line 7 of file zeros.cpp.
References ICEDB_throw, and icedb::error::xBadInput.
U icedb::zeros::secantMethod | ( | const T & | f, |
U | guess_a, | ||
U | guess_b, | ||
double | eps = 0.000001 , |
||
size_t | maxIter = 50 |
||
) |
Definition at line 17 of file zeros.hpp.
References ICEDB_throw, and icedb::error::xModelOutOfRange.
Referenced by icedb::refract::bruggeman(), icedb::refract::guessTemp(), and icedb::refract::sihvola().