Comments (1)
Not only Add don't have dual
, but also most of the SymPy methods like Integer
, Rational
. I don't think that the discussion ends with Add
and Mul
, and the reason that .dual
is not defined for most of the SymPy objects is that we need to discuss Add, Mul, Pow
and in fact pretty much everything of Expr
about how to handle .dual
.
There would be easy or more obvious answers, such as defining def dual(self): self
, however, I'm afraid that it doesn't work by simply working with Add, Mul
exclusively and hiding the complexity about the discussion,
"send" a property or method call down the expression tree whenever it is invalid for Add or Mul.
It may be possible to override __getattr__
magic method, however, in general, I'd warn that such is very nonstandard programming practice, and we may encounter much more nonstandard compatibility or performance issues that not many people in Python community faces if we pick such direction.
from sympy.
Related Issues (20)
- RecursionError in sympy.solvers.inequalities.reduce_inequalities with custom function HOT 1
- The `point_cflexure` method doesn't return points when a region of the bending moment line is 0.
- variable of differentiation returns True from `has_free` HOT 3
- Symbolic specifying of locations that are "just" before or "just" after another location. HOT 8
- parse_mathematica cannot handle greek letters HOT 1
- FiniteField.__call__ returns different types depending on whether flint is installed or not HOT 6
- Incorrect partial fraction expansion with floats HOT 3
- Sphinx build failing regularly HOT 1
- calling `latex` on `Array` with less rows than columns, and at least 10 columns, emit bad latex
- Does solve(...) respects symbol(..., real=True) assumption?
- Sympy results are int, not Integer HOT 1
- Regression: lambdify of Derivative instance now throws PrintMethodNotImplementedError HOT 8
- sp.solve: expected an integer, got rational HOT 2
- Cannot determine truth value of Relational HOT 1
- plot error after a "clean" simpify check up HOT 4
- collect function bug HOT 5
- BUG: inconsistent results while parsing unpaired bracket
- collect function bug HOT 1
- Incorrect behaviour for solve_poly_system HOT 2
- [1.13.0rc1] possible regression in comparison (`numbers.One()` VS `float(1.0)`) ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sympy.