Function sequant::detail::format_power_exponent¶
Defined in File utils.cpp
Function Documentation¶
-
std::string sequant::detail::format_power_exponent(const Power::exponent_type &exponent, bool double_slash)¶
Formats a Power exponent for export framework
- Parameters:
exponent – the rational exponent
double_slash – if true, use Julia’s
//rational syntax; otherwise use/(Python style)
- Returns:
a string such as
2,(-3),(1/2),(-1//3)