Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Solving Simultaneous Equations with Matrices

by zentara (Archbishop)
on Apr 24, 2004 at 19:16 UTC ( [id://347877]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    $s->print("Solutions s\n");
    $a->multiply($s)->print("A*s\n");
    
  2. or download this
    OUTPUT
    det-> 0
    ...
    18.00000
    19.00000
    20.00000
    
  3. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    
    my $out = $A * $solution;
    print $out,"\n";
    
  4. or download this
    OUTPUT:
    det-> 0
    ...
    [  1.800000000000E+01 ]
    [  1.900000000000E+01 ]
    [  2.000000000000E+01 ]
    
  5. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    $s->print("Solutions s\n");
    $a->multiply($s)->print("A*s\n");
    
  6. or download this
    OUTPUT:
    det-> -1104
    ...
    18.00000
    19.00000
    20.00000
    
  7. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    
    my $out = $A * $solution;
    print $out,"\n";
    
  8. or download this
    det-> -1104
    dim->0
    ...
    [  1.800000000000E+01 ]
    [  1.900000000000E+01 ]
    [  2.000000000000E+01 ]
    
  9. or download this
    [1  0  0  0],
    [0  1  0  0],
    [0  0  1  0],
    [0  0  0  1]
    
  10. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    
    print "solution->\n$c\n";
    
  11. or download this
    OUTPUT:
    [  1.000000000000E+00 -2.000000000000E+00  3.000000000000E+00  4.00000
    +0000000E+00 ]
    ...
    [  1.803260869565E+01 ]
    [  1.602898550725E+01 ]
    [  8.804347826087E-01 ]
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://347877]
Approved by Mr. Muskrat
Front-paged by matija
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-25 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found