Hi, Since the determine is none zero for
$mcof="$m[1]\n"; $mdelcr="$mtfall[1]\n"; so, I add the follow line to my perl script to check it, $inverse=$cofm->inverse(); print "\ninverse\n $inverse\n"; $s1=$inverse*$delcr; print "\n s1 \n$s1\n"; $out1=$cofm*$s1; print "\n out1 \n$out1\n"; It turn out that solution is same but the when I try to get back the original value of $delcr variable, I failed to do so. Any reason why it happen? Thank you & best regards, ABC -----Original Message----- From: Boon Chong Ang Sent: Tuesday, June 01, 2004 6:11 PM To: '[EMAIL PROTECTED]' Subject: FW: matrix can't be solve or the solution is incorrect. Hi, I try using the matrixreal module. This time, I can automatically feed in the data but the problem is I either can't get any solution or the solution provided is wrong. Can anyone tell me what is dim and base meaning in solve_LR() For the matrixReal module, I download it from the following website: http://search.cpan.org/dist/Math-MatrixReal/ By modifying line 152 & 153 as shown below. $mcof="$m[0]\n"; $mdelcr="$mtfall[0]\n"; I can't get any solution $mcof="$m[1]\n"; $mdelcr="$mtfall[1]\n"; $mcof="$m[2]\n"; $mdelcr="$mtfall[2]\n"; I get the wrong solution Thank you & best regards, ABC