some bugs have been solve new have been discover!
This commit is contained in:
parent
a9f1f90e8d
commit
525c3bda56
20
bugs
20
bugs
@ -1,7 +1,5 @@
|
||||
* Soustraction de Polynômes!!!!
|
||||
|
||||
|
||||
|
||||
* Expression importe mal 4x^2
|
||||
In [9]: e = Expression("3x + 4x^2 - 1")
|
||||
|
||||
@ -69,7 +67,7 @@
|
||||
|
||||
TypeError: unsupported operand type(s) for +: 'type' and 'str'
|
||||
|
||||
* Parenthèses abhérentes
|
||||
* (solved) Parenthèses abhérentes
|
||||
|
||||
In [7]: P = Polynom([-6, 12, -20])
|
||||
|
||||
@ -77,3 +75,19 @@
|
||||
( - 20 x^{ 2 } + 12 x ) - 6
|
||||
|
||||
|
||||
* Chainer des opérations et sauvegarde des étapes
|
||||
|
||||
In [12]: R = P-Q - P
|
||||
|
||||
In [13]: R
|
||||
Out[13]: < Polynom [-4, -5, 0]>
|
||||
|
||||
In [14]: for i in R.explain():
|
||||
print(i)
|
||||
....:
|
||||
3 x^{ 2 } - 3 x - 3 - ( 3 x^{ 2 } + 2 x + 1 )
|
||||
3 x^{ 2 } - 3 x - 3 - 3 x^{ 2 } - 2 x - 1
|
||||
( 3 - 3 ) x^{ 2 } + ( -3 - 2 ) x - 3 - 1
|
||||
- 5 x - 4
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user