Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latex matmul #1

Closed
wants to merge 1 commit into from
Closed

Latex matmul #1

wants to merge 1 commit into from

Conversation

smichr
Copy link

@smichr smichr commented Mar 25, 2012

Since scalars cannot be added to Matrices, the preamble of matAdd
was removed. Also, tests were added to cover all lines of matMul
and matAdd and changes made accordingly.

Since scalars cannot be added to Matrices, the preamble of matAdd
was removed. Also, tests were added to cover all lines of matMul
and matAdd and changes made accordingly.
assert l._print_MatMul(2*A) == '2 A'
assert l._print_MatMul(2*x*A) == '2 x A'
assert l._print_MatMul(-2*A) == '- 2 A'
assert l._print_MatMul(-2*A*(A+2*B)) == '- 2 A \left(A + 2 B\right)'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests fail on this one.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try change the 2*B to B...does that work?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's about ordering of A + 2 B versus 2 B + A. I fixed it in sympy#1166

@jrioux jrioux closed this Mar 26, 2012
jrioux pushed a commit that referenced this pull request Dec 5, 2012
3532: Pow.is_real fix for base = -1
jrioux pushed a commit that referenced this pull request Feb 6, 2013
jrioux pushed a commit that referenced this pull request Mar 4, 2013
delay im(a) calculation
jrioux pushed a commit that referenced this pull request Jun 12, 2013
Make erfc and erfi functions available to MeijerG integration code
jrioux pushed a commit that referenced this pull request Jun 12, 2013
Make erfc and erfi functions tractable for Gruntz algorithm
jrioux pushed a commit that referenced this pull request Jul 2, 2013
More review on PR 2081: Merged in to PR sympy#2081
jrioux pushed a commit that referenced this pull request Aug 11, 2013
jrioux pushed a commit that referenced this pull request Jun 13, 2014
jrioux pushed a commit that referenced this pull request Jun 13, 2014
test flyback removal in Polygon"
jrioux pushed a commit that referenced this pull request Jun 13, 2014
Add carstimon to AUTHORS/aboutus. Welcome to SymPy!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants