algebraixlib.util.mathobjectprinter module

Pretty-printing of MathObjects.

algebraixlib.util.mathobjectprinter.mo_to_str(math_object: algebraixlib.mathobjects.mathobject.MathObject, abbreviated=False, indent_text=' ', indent='', max_line_len=95)[source]

Return the contents of the MathObject math_object as a readable string.

  • abbreviated – If False spell out MathObject names; if True use shorter symbols.
  • indent_text – The string used when indenting.
  • indent – The accumulated indent that is increased using indent_text during recursive calls.
  • max_line_len – The maximum number of characters per line. Longer lines are truncated.