# Ticket #8616: trac_8616_symbolic_sage.2.patch

File trac_8616_symbolic_sage.2.patch, 31.8 KB (added by yuri.k, 11 years ago)

symbolic sage module

• ## sage/calculus/all.py

```# HG changeset patch
# Date 1269721789 0
# Parent  46b1ee5997ac7e7faafdd86751fe7d121b6c1385
Trac 8616: Add functionality. Symbolic type checking and expression parcing module

Provides unified interface for standard python types and sage specific types.
Treats everything as symbolic expression which allows to check its type, take
operator and operands and extract subexpressions by given types.

diff -r 46b1ee5997ac -r acadcfa52c47 sage/calculus/all.py```
 a from functions import (wronskian,jacobian) from desolvers import (desolve, desolve_laplace, desolve_system, eulers_method, eulers_method_2x2, from desolvers import (desolve, dsolve, desolve_laplace, dsolve_laplace, desolve_system, eulers_method, eulers_method_2x2, eulers_method_2x2_plot, desolve_rk4, desolve_system_rk4) from var import (var, function, clear_vars) - a symbolic expression. EXAMPLES:: sage: a = symbolic_expression(3/2); a 3/2 sage: type(a) sage: symbolic_expression(E) x*y + y^2 + y == x^3 + x^2 - 10*x - 10 sage: symbolic_expression(E) in SR True True """ from sage.symbolic.expression import Expression from sage.symbolic.ring import SR
• ## sage/calculus/desolvers.py

`diff -r 46b1ee5997ac -r acadcfa52c47 sage/calculus/desolvers.py`
`diff -r 46b1ee5997ac -r acadcfa52c47 sage/symbolic/all.py`