std::string syten::print_result | ( | SDef const | result, |
bool const | column, | ||
bool const | realOnly, | ||
bool const | imagOnly, | ||
Index const | prec, | ||
std::string const & | prefix = "" |
||
) |
Return a string representation of a numerical result.
result | the numerical result value |
column | if true, print real and imaginary part as two columns |
realOnly | if true and !column , print only the real part |
imagOnly | if true and !column and !realOnly , print only the imaginary part |
prefix | prefix every printed line with this string |
prec | output precision |
References imag(), real(), std::setprecision(), std::setw(), and std::stringstream::str().
Referenced by calc_expval().