From 75daec50885498d7213da6cdb25f3f0fbb87a3b4 Mon Sep 17 00:00:00 2001 From: mmatera Date: Tue, 12 Nov 2024 22:04:41 -0300 Subject: [PATCH] adjuts comments on root --- sympy/printing/pretty/stringpict.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sympy/printing/pretty/stringpict.py b/sympy/printing/pretty/stringpict.py index 18010083a3d9..e1ccf60b2aef 100644 --- a/sympy/printing/pretty/stringpict.py +++ b/sympy/printing/pretty/stringpict.py @@ -377,9 +377,8 @@ def root(self, n=None): |---| + a \\ y / """ - # TODO: use it in root drawing in PrettyPrinter. - # - # put line over expression + # Decide if using a square root symbol or + # an base - exponent form: if n is not None: if isinstance(n, str): n = stringPict(n) @@ -387,6 +386,7 @@ def root(self, n=None): exponent = n.parens().left(stringPict("1 / ")) return self ** exponent + # put line over expression result = self.above(hobj('_', 2 + self.width())) #construct right half of root symbol height = self.height()