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