Comment #10 on issue 700 by kazuo.thow: pretty: merge test_pretty.py
test_pretty_unicode.py
http://code.google.com/p/sympy/issues/detail?id=700
This patch (attached) is the comprehensive one up to and including a couple
of asserts
which were found to be missing.
Attachments:
Status: New
Owner:
Labels: Type-Defect Priority-Medium
New issue 1904 by alberthilbert: Error in evaluation of power with
noncommutative base
http://code.google.com/p/sympy/issues/detail?id=1904
Power with noncommutative Mul as base are treated like it was commutative:
x = Symbol('x',
Comment #1 on issue 1904 by alberthilbert: Error in evaluation of power
with noncommutative base
http://code.google.com/p/sympy/issues/detail?id=1904
The following patch should solve that problem.
Raffaele
Attachments:
Status: New
Owner:
Labels: Type-Defect Priority-Medium
New issue 1905 by jdeko...@hotmail.com: Differentiation and Geometric
Algebra
http://code.google.com/p/sympy/issues/detail?id=1905
Two different ways to do the same thing don't give the same result.
Here is the code sample in order
Updates:
Labels: -NeedsReview PassedReview NeedsBetterPatch
Comment #11 on issue 700 by asmeurer: pretty: merge test_pretty.py
test_pretty_unicode.py
http://code.google.com/p/sympy/issues/detail?id=700
The log message needs to be line wrapped, but other than that, this looks
good.
Updates:
Status: Duplicate
Labels: NeedsReview
Mergedinto: 1261
Comment #2 on issue 1904 by asmeurer: Error in evaluation of power with
noncommutative base
http://code.google.com/p/sympy/issues/detail?id=1904
Hi. This patch looks good, but this is a duplicate of
Updates:
Cc: abro...@verizon.net
Comment #1 on issue 1905 by asmeurer: Differentiation and Geometric Algebra
http://code.google.com/p/sympy/issues/detail?id=1905
(No comment was entered for this change.)
--
You received this message because you are listed in the owner
or CC fields of
Comment #26 on issue 1261 by asmeurer: incorrect exponentiation with
non-commutative symbols
http://code.google.com/p/sympy/issues/detail?id=1261
Issue 1904 has been merged into this issue.
--
You received this message because you are listed in the owner
or CC fields of this issue, or
Status: Accepted
Owner: smichr
Labels: Type-Defect Priority-Medium
New issue 1906 by smichr: loading sympy fails in python 2.4 under windows
http://code.google.com/p/sympy/issues/detail?id=1906
PythonWin 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on
win32.
Portions Copyright
Comment #27 on issue 1261 by alberthilbert: incorrect exponentiation with
non-commutative symbols
http://code.google.com/p/sympy/issues/detail?id=1261
The following patch should solve that problem.
Raffaele
Attachments:
Comment #3 on issue 1904 by alberthilbert: Error in evaluation of power
with noncommutative base
http://code.google.com/p/sympy/issues/detail?id=1904
Yes... Done!
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
Updates:
Labels: -NeedsBetterPatch NeedsReview
Comment #28 on issue 1261 by asmeurer: incorrect exponentiation with
non-commutative symbols
http://code.google.com/p/sympy/issues/detail?id=1261
(No comment was entered for this change.)
--
You received this message because you are
Comment #3 on issue 1902 by smichr: 'has' method fails when argument
is 'Symbol' or 'Wild'
http://code.google.com/p/sympy/issues/detail?id=1902
Perhaps you are confusing atoms() with has(). has() is suppose to look for
patterns
while atoms() will give sub-expressions of a given type (and
Comment #12 on issue 700 by Toon.Verstraelen: pretty: merge test_pretty.py
test_pretty_unicode.py
http://code.google.com/p/sympy/issues/detail?id=700
please read:
http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#creating-good-commit-messages
--
You received this message
Comment #1 on issue 1906 by mattpap: loading sympy fails in python 2.4
under windows
http://code.google.com/p/sympy/issues/detail?id=1906
Can you issue 'import fractions' in this interpreter. In algebratools.py
there is a
piece of code which checks if 'fractions' module is available, and
Updates:
Labels: -NeedsReview PassedReview
Comment #29 on issue 1261 by Vinzent.Steinberg: incorrect exponentiation
with non-commutative symbols
http://code.google.com/p/sympy/issues/detail?id=1261
Thank you, the patch looks fine, it fixes the problem and all tests pass. +1
Would it
Comment #30 on issue 1261 by asmeurer: incorrect exponentiation with
non-commutative symbols
http://code.google.com/p/sympy/issues/detail?id=1261
Indeed, 10x faster:
In [1]: a = S(1)
In [2]: %timeit a == S.One
100 loops, best of 3: 4.21 us per loop
In [3]: %timeit a is S.One
100
Comment #13 on issue 700 by Toon.Verstraelen: pretty: merge test_pretty.py
test_pretty_unicode.py
http://code.google.com/p/sympy/issues/detail?id=700
First of all: this is a nice patch carefully put together. Just a few very
minor
comments:
- In def test_pretty_ascii_str() and def
Updates:
Labels: Polynomial
Comment #5 on issue 1900 by Vinzent.Steinberg: factor((1+2*x+x**2)**100)
works too hard
http://code.google.com/p/sympy/issues/detail?id=1900
(No comment was entered for this change.)
--
You received this message because you are listed in the owner
or CC
Comment #2 on issue 1411 by Vinzent.Steinberg: Make fancy latex printing
work within the Sage notebook
http://code.google.com/p/sympy/issues/detail?id=1411
Wasn't this implemented in master already? See commit
8d3d2eb3b89f7c6efb9fdbef62530394953ee0ce.
--
You received this message because
Updates:
Status: Fixed
Comment #3 on issue 1411 by asmeurer: Make fancy latex printing work within
the Sage notebook
http://code.google.com/p/sympy/issues/detail?id=1411
Yep, the issue number was even listed as the subject line of the message to
the patches list:
Updates:
Cc: Ronan.Lamy
Comment #8 on issue 1551 by Vinzent.Steinberg: StrPrinter is class
sympy.printing.str and instance in sympy.core.basic
http://code.google.com/p/sympy/issues/detail?id=1551
Ronan should review this, as he requested the changes.
--
You received this message
Updates:
Status: Started
Comment #4 on issue 1411 by ellisonbg: Make fancy latex printing work
within the Sage notebook
http://code.google.com/p/sympy/issues/detail?id=1411
This patch only fixed part of the problem, namely renaming _latex_ -
_latex. But, there is a second part
Comment #3 on issue 1903 by Vinzent.Steinberg: Unify Assume keys, ask keys
and ask handlers
http://code.google.com/p/sympy/issues/detail?id=1903
Not simply, because Q.complex is still an ordinary object, not a class or
a function.
Can't we just assign the __doc__ attribute?
+return
Updates:
Cc: ondrej.certik Ronan.Lamy
Comment #17 on issue 415 by Vinzent.Steinberg: sqrt(6)/2*sqrt(2) does not
auto-simplify properly
http://code.google.com/p/sympy/issues/detail?id=415
So it is up to 2.2 times slower with your change, but correct. I'm fine
with this,
but don't
Comment #2 on issue 1906 by smichr: loading sympy fails in python 2.4 under
windows
http://code.google.com/p/sympy/issues/detail?id=1906
yes...I saw that you had a flag for that and tried it:
C:\Documents and Settings\chris\python24\python.exe
Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC
Updates:
Labels: EasyToFix
Comment #5 on issue 1411 by Vinzent.Steinberg: Make fancy latex printing
work within the Sage notebook
http://code.google.com/p/sympy/issues/detail?id=1411
Which should be trivial to fix.
--
You received this message because you are listed in the owner
or
Comment #3 on issue 1906 by Vinzent.Steinberg: loading sympy fails in
python 2.4 under windows
http://code.google.com/p/sympy/issues/detail?id=1906
This is strange, the fractions module is new in Python 2.6. What does your
version
actually implement? (help(fractions))
--
You received
Updates:
Status: Invalid
Comment #4 on issue 1906 by smichr: loading sympy fails in python 2.4 under
windows
http://code.google.com/p/sympy/issues/detail?id=1906
mea culpa. The help shows that it is my own file in site-packages that is
being loaded.
False alarm.
--
You received
Updates:
Status: Fixed
Comment #32 on issue 1261 by Vinzent.Steinberg: incorrect exponentiation
with non-commutative symbols
http://code.google.com/p/sympy/issues/detail?id=1261
If fixed the patch to use 'is' and pushed it in. For the fixing a new issue
should be
opened. It might
Status: Accepted
Owner: Vinzent.Steinberg
CC: smichr
Labels: Type-Defect Priority-Medium
New issue 1907 by Vinzent.Steinberg: Pow(..., evaluate=something) is broken
http://code.google.com/p/sympy/issues/detail?id=1907
In [11]: Add(Pow(y, 2, evaluate=True), Mul(-1, Pow(y, 2)))
Out[11]:
22
y
Comment #1 on issue 1907 by mattpap: Pow(..., evaluate=something) is broken
http://code.google.com/p/sympy/issues/detail?id=1907
It's all about the old assumptions engine:
In [1]: Pow(y, 2, evaluate=True)
Out[1]:
2
y
In [2]: _._assumptions
Out[2]: {evaluate: True}
The _assumptions property
Comment #2 on issue 1907 by ronan.l...@gmail.com: Pow(...,
evaluate=something) is broken
http://code.google.com/p/sympy/issues/detail?id=1907
The exception seen comes more precisely from:
In [4]: Pow(y, 2, evaluate=False).is_commutative
Comment #18 on issue 415 by asmeurer: sqrt(6)/2*sqrt(2) does not
auto-simplify properly
http://code.google.com/p/sympy/issues/detail?id=415
Mul only reflattens when it needs to, that is, when it can potentially pull
out a constant from a power. As I noted
in the commit message, a simple
Comment #3 on issue 1907 by asmeurer: Pow(..., evaluate=something) is broken
http://code.google.com/p/sympy/issues/detail?id=1907
The is_commutative AttributeError is a duplicate of issue 1864.
--
You received this message because you are listed in the owner
or CC fields of this issue, or
Comment #2 on issue 1905 by abro...@verizon.net: Differentiation and
Geometric Algebra
http://code.google.com/p/sympy/issues/detail?id=1905
Both diff(y,x) and exp(y) are not defined in the galgebra module for y a
multivector.
If y is a multivector and y*y is a scalar then exp(y) can be
Comment #4 on issue 1864 by ronan.l...@gmail.com: AttributeError:
is_commutative with Mul(Pow(2, 2, evaluate=False), 3, evaluate=False) + 1
http://code.google.com/p/sympy/issues/detail?id=1864
Issue 1907 has been merged into this issue.
--
You received this message because you are listed in
Updates:
Status: Duplicate
Mergedinto: 1864
Comment #4 on issue 1907 by ronan.l...@gmail.com: Pow(...,
evaluate=something) is broken
http://code.google.com/p/sympy/issues/detail?id=1907
Then this issue is an exact duplicate of issue 1864: the .is_commutative
issue is the
Updates:
Labels: EasyToFix Milestone-Release0.7.0
Comment #5 on issue 1864 by ronan.l...@gmail.com: AttributeError:
is_commutative with Mul(Pow(2, 2, evaluate=False), 3, evaluate=False) + 1
http://code.google.com/p/sympy/issues/detail?id=1864
From issue 1907:
The exception seen
Updates:
Labels: -NeedsBetterPatch
Comment #14 on issue 700 by kazuo.thow: pretty: merge test_pretty.py
test_pretty_unicode.py
http://code.google.com/p/sympy/issues/detail?id=700
Thanks for pointing those things out; updated patch is attached.
Attachments:
Comment #2 on issue 1763 by ronan.l...@gmail.com: sympify(uα) does not
work
http://code.google.com/p/sympy/issues/detail?id=1763
In my code-refactor-3 branch, I bypass the encoding problem and get the
same error
as in the initial comment:
In [1]: sympify(uα)
Updates:
Status: Accepted
Mergedinto: -1864
Comment #5 on issue 1907 by Vinzent.Steinberg: Pow(..., evaluate=something)
is broken
http://code.google.com/p/sympy/issues/detail?id=1907
The exception is covered by issue 1864, but not the problem in [11].
Please note that this
Comment #4 on issue 1763 by Vinzent.Steinberg: sympify(uα) does not work
http://code.google.com/p/sympy/issues/detail?id=1763
There are several motivations to write an own parser: issue 871, issue 976
and issue 60.
--
You received this message because you are listed in the owner
or CC
Updates:
Status: Fixed
Comment #15 on issue 700 by asmeurer: pretty: merge test_pretty.py
test_pretty_unicode.py
http://code.google.com/p/sympy/issues/detail?id=700
It looks like you fixed everything that was noted here and on IRC, so I
pushed it in. Welcome to SymPy!
--
You
Comment #5 on issue 1902 by Vinzent.Steinberg: 'has' method fails when
argument is 'Symbol' or 'Wild'
http://code.google.com/p/sympy/issues/detail?id=1902
I think this should work with Symbol() and Wild() too, for consistency's
sake.
--
You received this message because you are listed in
Status: Accepted
Owner:
CC: fab...@fseoane.net
Labels: Type-Enhancement Priority-Medium
New issue 1908 by Vinzent.Steinberg: mutable core
http://code.google.com/p/sympy/issues/detail?id=1908
This should result in a considerable speed improvement. I think it could be
done using a dict (or
Comment #1 on issue 1908 by Vinzent.Steinberg: mutable core
http://code.google.com/p/sympy/issues/detail?id=1908
See also http://code.google.com/p/sympycore/, which probably implemented
this.
--
You received this message because you are listed in the owner
or CC fields of this issue, or
Updates:
Cc: fab...@fseoane.net
Comment #4 on issue 1903 by Vinzent.Steinberg: Unify Assume keys, ask keys
and ask handlers
http://code.google.com/p/sympy/issues/detail?id=1903
(No comment was entered for this change.)
--
You received this message because you are listed in the owner
Comment #3 on issue 1905 by abro...@verizon.net: Differentiation and
Geometric Algebra
http://code.google.com/p/sympy/issues/detail?id=1905
Also in your case gamma_x**2 = -1 so that exp(x*gamma_x) =
cos(x)+sin(x)*gamma_x and
d/dx(exp(x*gamma_x)) = -sin(x)+cos(x)*gamma_x. If gamma_x**2 = 1
Updates:
Status: Fixed
Comment #6 on issue 1411 by Toon.Verstraelen: Make fancy latex printing
work within the Sage notebook
http://code.google.com/p/sympy/issues/detail?id=1411
Bug is fixed (see sympy-patches mail of Matt Curry.)
--
You received this message because you are listed
Per the issue here:
http://groups.google.com/group/sympy/browse_thread/thread/59e5dfb987963204/eca6fd634?pli=1
I have created methods which allows 'action verbs' to be called both as
global functions and as methods. Any suggestions you have would be
appreciated!
--Addison Cugini
--
You
2010/4/19 Addison Cugini ajcug...@gmail.com:
Per the issue here:
http://groups.google.com/group/sympy/browse_thread/thread/59e5dfb987963204/eca6fd634?pli=1
I have created methods which allows 'action verbs' to be called both as
global functions and as methods. Any suggestions you have would
Vincent,
I added a tester method in test_expr.py for the patch and added the missing
functions.
I can't get the document attribute to copy as suggested without causing
circular importation (I have to import the global function above the class
which in turn imports expr, ad infinitum). This
In trying to rebuild an expression piece by piece, I have generated
the following expression:
Add(*[Pow(*[y,2],evaluate=True),Mul(*[-1,Pow(*[y,2],evaluate=True)],evaluate=True)],evaluate=True)
y**2 - y**2
What do I need to do at this point to get it to go to zero?
--
You received this
Do you want the computer to make the decision about which Add to do
next? If they choose the wrong op, do you just want to output the same
expression? e.g.
eq
2*3+4+5
eq.mul()
6+4+5
eq.add()
10+5
eq.add()
15
vs
eq
2*3+4+5
eq.add()
2*3+9
eq.add()
2*3+9
eq.mul()
6+9
eq.add()
15
It is enough if computer will select what to add. like
eq
2+3+4+5*6
eq.add()
9+5*6
eq
2*x+3*x+5*6
eq.add()
5*x+5*6
All I need is control over each operation (transformation).
Then I should be able to code function which will show full solution
for given math problem with explanation for each
Hi,
Okay, I got the domain thing figured out, but now I am running into a
separate problem when the polynomial in sdp form is inside of a
matrix.
All this is fine:
from sympy.polys.monomialtools import monomial_lex_key as O_lex
from sympy.polys.groebnertools import *
from sympy.polys.polytools
Hi,
On Mon, Apr 19, 2010 at 08:28:21AM -0700, Ben Goodrich wrote:
Hi,
Okay, I got the domain thing figured out, but now I am running into a
separate problem when the polynomial in sdp form is inside of a
matrix.
All this is fine:
from sympy.polys.monomialtools import monomial_lex_key
In polytools when two polys are multiplied, the two polys are unified
first:
def mul(f, g):
Multiply two polynomials `f` and `g`.
_, per, F, G = f.unify(g) === there
try:
result = F.mul(G)
except AttributeError: # pragma: no
Hi,
On Mon, Apr 19, 2010 at 12:09:08AM -0700, smichr wrote:
Do you want the computer to make the decision about which Add to do
next? If they choose the wrong op, do you just want to output the same
expression? e.g.
eq
2*3+4+5
eq.mul()
6+4+5
eq.add()
10+5
eq.add()
15
vs
eq
There is a program for the TI-89 called Symbolic Math Guide (you have to
download it from the computer software update tool) that does this. It works
by you selecting part of an expression and it applies a transformation on it.
At each step, it does minimal simplification, requiring the user
Hi,
On Mon, Apr 19, 2010 at 09:39:49AM -0700, smichr wrote:
In polytools when two polys are multiplied, the two polys are unified
first:
def mul(f, g):
Multiply two polynomials `f` and `g`.
_, per, F, G = f.unify(g) === there
try:
On Apr 7, 8:26 am, Brian Granger ellisonbg@gmail.com wrote:
Ok, I see that the Basic/Expr split has been merged, so I will work on
this stuff next week.
A patch has been sent to the list and is currently under review.
Vinzent
--
You received this message because you are subscribed to the
Hi Mateusz,
I think I understand but ...
On Apr 19, 12:13 pm, Mateusz Paprocki matt...@gmail.com wrote:
They look identical, but they're not. As you use F.as_dict(), then in
both cases c_i are of type Integer. However, keys of _50 and _51 are
different. In _50 M_i are tuples of Integer
FF = sdp_from_dict(Poly(F, *gens, domain = 'QQ').as_dict(), O_lex)
or specify any option after the *gens without getting the above syntax
error.
I am using Python 2.5.
See Mateusz's 11:50 comment above. It's the same reason you ran into
problems with my branch. I have fixed my branch,
On Apr 19, 8:44 am, smichr smi...@gmail.com wrote:
In trying to rebuild an expression piece by piece, I have generated
the following expression:
Add(*[Pow(*[y,2],evaluate=True),Mul(*[-1,Pow(*[y,2],evaluate=True)],evaluate=True)],evaluate=True)
y**2 - y**2
What do I need to do at this
hi,
i made the modifications.
__repr__, __str__ functions
examples indentation
import addition for __init.py__
tests and doctests passed and checked for white spaces,
thanks
kasun
On Mon, Apr 19, 2010 at 2:16 AM, David Joyner wdjoy...@gmail.com wrote:
On Sun, Apr 18, 2010 at 7:14 PM, Aaron
Lists are unhashable in every Python. If you want to use them as keys in a
dictionary, you have to use tuples instead. You can probably fix it by doing
dict([ (tuple(map(int, monom)), coeff) for monom, coeff in M[0,0] ])
(though I haven't tried it).
Aaron Meurer
On Apr 19, 2010, at 1:43 PM,
Hi,
On Mon, Apr 19, 2010 at 02:09:04PM -0600, Aaron S. Meurer wrote:
Lists are unhashable in every Python. If you want to use them as keys in a
dictionary, you have to use tuples instead. You can probably fix it by doing
dict([ (tuple(map(int, monom)), coeff) for monom, coeff in M[0,0]
Thanks Aaron, that works. One of these days, I will actually learn
Python and be able to come up with such fixes myself.
On Apr 19, 4:09 pm, Aaron S. Meurer asmeu...@gmail.com wrote:
Lists are unhashable in every Python. If you want to use them as keys in a
dictionary, you have to use tuples
Hi Chris,
On Apr 19, 3:48 pm, smichr smi...@gmail.com wrote:
FF = sdp_from_dict(Poly(F, *gens, domain = 'QQ').as_dict(), O_lex)
or specify any option after the *gens without getting the above syntax
error.
I am using Python 2.5.
See Mateusz's 11:50 comment above. It's the same reason
Some comments:
* Why did you make PrimeField an old-style class? Unless you have a very
good reason, it should be new-style (i.e. declare it with class
PrimeField(object):...)
* I don't like that str(PrimeField(5)) is {0, 1, 2, 3, 4}. For me, this
is the set of the 5 smallest natural integers,
On Apr 19, 2010, at 4:36 PM, Ronan Lamy wrote:
Some comments:
* Why did you make PrimeField an old-style class? Unless you have a very
good reason, it should be new-style (i.e. declare it with class
PrimeField(object):...)
* I don't like that str(PrimeField(5)) is {0, 1, 2, 3, 4}. For me,
Hi all,
I am aditya.cs.I know python.I want to contribut for sympy.Can
anyone please help me out.Please guide me how to contribute, what are
the steps ect..
--
You received this message because you are subscribed to the Google Groups
sympy group.
To post to this group, send email to
On Mon, Apr 19, 2010 at 10:21 PM, Ben Goodrich goodrich@gmail.com wrote:
Hi Chris,
On Apr 19, 3:48 pm, smichr smi...@gmail.com wrote:
FF = sdp_from_dict(Poly(F, *gens, domain = 'QQ').as_dict(), O_lex)
or specify any option after the *gens without getting the above syntax
error.
I
75 matches
Mail list logo