String representation of single polynomial term using unicode characters for superscripts and subscripts.
(cls, i, arg_str)
| 397 | |
| 398 | @classmethod |
| 399 | def _str_term_unicode(cls, i, arg_str): |
| 400 | """ |
| 401 | String representation of single polynomial term using unicode |
| 402 | characters for superscripts and subscripts. |
| 403 | """ |
| 404 | if cls.basis_name is None: |
| 405 | raise NotImplementedError( |
| 406 | "Subclasses must define either a basis_name, or override " |
| 407 | "_str_term_unicode(cls, i, arg_str)" |
| 408 | ) |
| 409 | return (f"·{cls.basis_name}{i.translate(cls._subscript_mapping)}" |
| 410 | f"({arg_str})") |
| 411 | |
| 412 | @classmethod |
| 413 | def _str_term_ascii(cls, i, arg_str): |