Function sequant::detail::format_power_base¶ Defined in File utils.cpp Function Documentation¶ std::string sequant::detail::format_power_base(const ExprPtr &base, std::string base_str)¶ Parenthesizes an already-stringified Power base when needed to keep exponentiation precedence unambiguous in the target language. Parameters: base – the Power base expression base_str – base already rendered to a string by the caller Returns: base_str, wrapped in parens iff base is a Constant whose value is a non-integer or negative real