<body> <div class='jumbotron'> <h1>Le résultat de l'équation !</h1> </div> <main> <?php /** * @Author: cnicolas * @Date: 2014-08-06 14:29:39 * @Last Modified by: cnicolas * @Last Modified time: 2015-07-02 11:34:07 */ include 'fonctions.php'; $matA = parseMatrice($_POST, "A"); $matAOld = $matA; $matY = parseMatrice($_POST, "Y"); $matYOld = $matY; echelonner(); echelonnerRev(); for ($i = 0; $i < count($matA); $i++) { $tmp = round($matY[$i][0] / $matA[$i][$i]); if ($tmp == 0) { $tmp = 1; } $res[] = $tmp; } $matRes; for ($i = 0; $i < count($res); $i++) { $matRes[] = array($res[$i]); } echo "<div class='col-sm-offset-2 col-sm-8 panel-success'>";
<link rel="stylesheet" type="text/css" href="../css/bootstrap-spacelab.min.css"> <link rel="stylesheet" href="../css/maths.css"> </head> <body> <div class='jumbotron'> <h1>Le résultat de la trace !</h1> </div> <main> <?php /** * @Author: cnicolas * @Date: 2014-08-05 16:55:42 * @Last Modified by: cnicolas * @Last Modified time: 2015-07-08 16:20:26 */ include 'fonctions.php'; $matA = parseMatrice($_POST, "A"); $res = 0; for ($i = 0; $i < sizeof($matA); $i++) { $res += $matA[$i][$i]; } echo "<div class='col-sm-2'><h2>Trace : </h2></div>"; echo printMatrice($matA, "matA", "A"); echo "<div class='col-sm-1'><h2>=</h2></div>"; echo "<div class=' col-sm-1'><h2>" . $res . "</h2></div>\n"; ?> </main> <script type="text/javascript" src="../js/jquery-2.1.1.min.js"></script> <script type="text/javascript" src="../js/bootstrap.min.js"></script> </body> </html>
<link rel="stylesheet" href="../css/maths.css"> </head> <body> <div id="pcarres" class='jumbotron'> <h1>Voici les résultats !</h1> </div> <main> <?php include_once 'fonctions.php'; include_once 'fonctionsMatrices.php'; include_once 'Monome.php'; include_once 'Polynome.php'; $time_start = microtime(true); echo "<div class='row' style='text-align: center;'>"; $I3 = [[1, 0, 0], [0, 1, 0], [0, 0, 1]]; $A = parseMatrice($_POST); echo printMatrice($A, "matriceF0", "A"); $trA = trace($A); $matF0tmp = multMatriceNumber($I3, $trA); $matF0tmp2 = subMatrices($A, $matF0tmp); $F1 = multMatrices($A, $matF0tmp2); echo printMatrice($F1, "F1", "F1"); $trF1 = trace($F1) / 2; $matF1tmp = multMatriceNumber($I3, $trF1); $matF1tmp2 = subMatrices($F1, $matF1tmp); $F2 = multMatrices($A, $matF1tmp2); echo printMatrice($F2, "F2", "F2"); $trF2 = trace($F2) / 3; echo "</div>"; $monomeCube = new Monome(-1, 3); $monomeCarre = new Monome($trA, 2);
</head> <body> <div class='jumbotron'> <h1>Le résultat de la somme !</h1> </div> <main> <?php /** * @Author: cnicolas * @Date: 2014-08-05 12:09:51 * @Last Modified by: cnicolas * @Last Modified time: 2015-07-02 11:34:06 */ include 'fonctions.php'; $matA = parseMatrice($_POST, "A"); $matB = parseMatrice($_POST, "B"); echo printMatrice($matA, "matA", "A"); echo "<div class='col-sm-1'><h2>+</h2></div>"; echo printMatrice($matB, "matB", "B"); echo "<div class='col-sm-1'><h2>=</h2></div>"; echo "<div class='mat col-sm-3'>\n"; echo "<label for='res'>Resulat</label>\n"; echo "<table id='res' class='matrice table-bordered'>\n"; for ($i = 0; $i < sizeof($matA); $i++) { echo "<tr>\n"; for ($j = 0; $j < sizeof($matA[$i]); $j++) { echo "<td class='casemat'>" . ($matA[$i][$j] + $matB[$i][$j]) . "</td>\n"; } echo "</tr>\n"; } echo "</table>\n";