Matrix addition: 2x2 + 2x3
10-17-2014, 06:23 AM
Post: #5
 parisse Senior Member Posts: 1,318 Joined: Dec 2013
RE: Matrix addition: 2x2 + 2x3
The design philosophy of giac is: the user knows what he does, it's important to provide features to advanced users.
If you have 2 lists of different sizes to add, you can
a/ forbid addition
b/ add them by adding 0 at the right of the shortest
c/ add them by adding 0 at the left of the shortest
On the Prime, if you add two matrices with different sizes that are tagged as matrices a/ happens. For example matrix[[1,2],[3,4]]+identity(3)
Otherwise and in Xcas, b/ applies if the list are tagged as 1-dimensional polynomials (poly1[1,2]+poly1[1,2,3]) because coefficients are written in decreasing order and c/ applies otherwise.
 « Next Oldest | Next Newest »

 Messages In This Thread Matrix addition: 2x2 + 2x3 - DrD - 10-14-2014, 02:41 PM RE: Matrix addition: 2x2 + 2x3 - Tim Wessman - 10-14-2014, 03:44 PM RE: Matrix addition: 2x2 + 2x3 - resolved - 10-17-2014, 03:01 AM RE: Matrix addition: 2x2 + 2x3 - DrD - 10-14-2014, 04:00 PM RE: Matrix addition: 2x2 + 2x3 - parisse - 10-17-2014 06:23 AM RE: Matrix addition: 2x2 + 2x3 - DrD - 10-17-2014, 06:37 AM

User(s) browsing this thread: 1 Guest(s)