close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#388 closed defect (fixed)

Problem with adding matrices

Reported by: Christian Paz Owned by: Víctor de Buen Remiro
Priority: normal Milestone:
Component: Math Version: head
Severity: critical Keywords:
Cc:

Description

Hi,

This code gives a very strange result in TOL:

Set ab=SetOfMatrix(Matrix a = Col(0,1), Matrix b = Col(2,3));
Matrix c = Col(2,3);

Matrix e = BinGroup("+", ab);

Up to here e= [2 4] That's ok

Matrix f = c + e;
Mistaken result: (4.718282 5.718282)!!!!

Matrix g = e + c;
Correct result..

I suppose it is concerned with another error:

Matrix d = c + BinGroup("+", ab);

Gives a "Text is not a valid type for Matrix" error message. I think the
BinGroup is the error because declaring the matrix directly as "Matrix
c=Col(2,4);" gives the expected result.

Thanks,
Christian

Change History (4)

comment:1 Changed 19 years ago by Víctor de Buen Remiro

Owner: changed from danirus to Víctor de Buen Remiro

We are working about this bug
Thanks to report it

comment:2 Changed 19 years ago by Víctor de Buen Remiro

Status: newassigned

comment:3 Changed 19 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: assignedclosed

Now Anything searches first by last known grammar

comment:4 Changed 18 years ago by Víctor de Buen Remiro

bug_file_loc: http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000388
Note: See TracTickets for help on using tickets.