Class funct_multip_string_tl (o2scl)

O2scl : Class List

template<class fp_25_t, class fp_35_t, class fp_50_t, class fp_100_t>
class funct_multip_string_tl

Evaluate a one-dimensional function from a string at multiprecision.

Note

Experimental.

Warning

This class only supports a limited number of data types, including double, long double, and cpp_dec_float types with 25, 35, 50, or 100 digits. It is designed to be used with the funct_multip class.

The function evaluation objects

calc_utf8<double> c
calc_utf8<long double> c_ld
calc_utf8<fp_25_t> c_25
calc_utf8<fp_35_t> c_35
calc_utf8<fp_50_t> c_50
calc_utf8<fp_100_t> c_100

The unit conversion objects

convert_units<double> cu
convert_units<long double> cu_ld
convert_units<fp_25_t> cu_25
convert_units<fp_35_t> cu_35
convert_units<fp_50_t> cu_50
convert_units<fp_100_t> cu_100

The variable lists

std::map<std::string, double> vars
std::map<std::string, long double> vars_ld
std::map<std::string, fp_25_t> vars_25
std::map<std::string, fp_35_t> vars_35
std::map<std::string, fp_50_t> vars_50
std::map<std::string, fp_100_t> vars_100
bool compiled

If true, then the most recent function has been compiled in all of the function evaluation objects.

std::string st_form

The expression to be evaluated.

std::string st_var

The variable.

int verbose

Verbosity parameter.

bool err_nonconv

If true, call the error handler if the function evaluation fails.

inline funct_multip_string_tl()
inline virtual ~funct_multip_string_tl()
inline int set_function(std::string expr, std::string var)

Set the function to compute.

template<class fp_t>
inline fp_t operator()(fp_t x)

Compute the function at the value x.

funct_multip_string_tl(const funct_multip_string_tl&)
funct_multip_string_tl &operator=(const funct_multip_string_tl&)