@@ -82,18 +82,29 @@ minimum = f.n.minimize(bounds=[(-2, 2)])
8282``` mermaid
8383graph BT
8484 %% Visual hierarchy with correct arrow semantics
85+ sympy.Expr
86+ sympy.Poly
8587 BaseExpression
8688 Expression
8789 Polynomial
8890 Rational
8991 Function
9092
9193 %% Arrows still point child → parent
94+ BaseExpression -.-> sympy.Expr
95+ BaseExpression -.-> sympy.Poly
96+ Expression --> |Numerical Proxy| n
97+ n --> |lambdified numerical representation| A["f(x)"]
98+ n -.-> scipy.numerical_methods
9299 Expression --> BaseExpression
93100 Polynomial --> Expression
94101 Rational --> Expression
95102 Function --> |Only an Alias| Expression
96103```
104+ > [ !NOTE] Diagram Notes
105+ > - Dotted arrows mean "proxy to".
106+ > - Additional methods are not shown, only core structure.
107+
97108
98109### Expression
99110The primary class for general symbolic expressions with numerical and printing capabilities.
@@ -156,7 +167,7 @@ f = Expression("x^2")
156167g = f + 1 # f unchanged, g is new Expression object
157168
158169# Mutable Mode (f is modified in-place)
159- f = Expression(" (x-1)x ^2" , mutable = True )
170+ f = Expression(" (x-1)^2" , mutable = True )
160171f += 1
161172f.expand()
162173```
@@ -319,3 +330,5 @@ This project is licensed under the MIT License - see the LICENSE file for detail
319330- Built on the excellent [ SymPy] ( https://www.sympy.org/ ) symbolic mathematics library
320331- Numerical computing powered by [ NumPy] ( https://numpy.org/ ) and [ SciPy] ( https://scipy.org/ )
321332- High-precision arithmetic via [ mpmath] ( http://mpmath.org/ )
333+
334+ [ ^ 1 ] :
0 commit comments