Skip to content

Commit 6f496a8

Browse files
Update README.md
1 parent dfc3ee5 commit 6f496a8

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,29 @@ minimum = f.n.minimize(bounds=[(-2, 2)])
8282
```mermaid
8383
graph 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
99110
The primary class for general symbolic expressions with numerical and printing capabilities.
@@ -156,7 +167,7 @@ f = Expression("x^2")
156167
g = 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)
160171
f += 1
161172
f.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

Comments
 (0)