|
Steppable 0.0.1
A CAS project written from scratch in C++
|
Contains calculus functions. More...
Functions | |
| std::string | romberg (const std::function< std::string(std::string)> &f, const std::string &a, const std::string &b, int max_steps, int decimals) |
| Calculates the Romberg integration of f. | |
Contains calculus functions.
| std::string steppable::__internals::calculus::romberg | ( | const std::function< std::string(std::string)> & | f, |
| const std::string & | a, | ||
| const std::string & | b, | ||
| int | max_steps, | ||
| int | decimals ) |
Calculates the Romberg integration of f.
| f | The function to integrate. It takes in one argument and returns a string. |
| a | Lower bound of integral. |
| b | Upper bound of integral. |
| max_steps | Maximum steps of integral. More steps can produce higher accuracy, but takes a longer time. |
| decimals | The decimals to output. |