Function sequant::detail::format_power¶
Defined in File utils.cpp
Function Documentation¶
-
std::string sequant::detail::format_power(const Power &power, std::string base_str, std::string_view pow_op, bool double_slash, const std::function<std::string(std::string)> &wrap_conj)¶
Formats a Power for export framework
- Parameters:
power – the Power to format
base_str – the base of
poweralready rendered to a stringpow_op – the exponentiation operator of the target language
double_slash – see format_power_exponent
wrap_conj – renders the complex conjugate of its argument, applied to a conjugated Variable base and to a conjugated
power
- Returns:
the formatted power