-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinfo.php
More file actions
144 lines (100 loc) · 3.92 KB
/
info.php
File metadata and controls
144 lines (100 loc) · 3.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="main2.css">
<link rel="stylesheet" href="maind.css">
</head>
<body>
<div class="nav">
<div id="i"><a href="navigbar.html">
<img src="brack.png" id="p"/></a>
</div>
<div class="container">
<ul class="pull-left" >
<li><a href="navigbar.html" >HOME</a></li>
<li>|</li>
<li><a href="det.php">DETERMINANT</a></li>
<li>|</li>
<li><a href="info.php" class="act">INFO</a></li>
<li>|</li>
<li><a href="inv.php">INVERSE</a></li>
<li>|</li>
<li><a href="ech.php">ECHELON</a></li>
</ul>
<ul class="pull-right">
<li><a href="gloss.html">GLOSSARY</a></li>
<li>|</li>
<li><a href="contacts.html">CONTACT</a></li>
</ul>
</div>
</div>
<?php
error_reporting(0); // Turn off all error reporting
?>
<div class="neighborhood-guides">
<div class="container">
<h1>Information</h1>
</div>
</div>
<br>
<br>
<br>
<br>
<div class="container">
<div class="row">
<div class="col-md-6">
<h2>Your matrix was</h2>
<br>
<form action="inv.php" method="get">
<div class="matrix">
<input type="number" name="one" value="<?php $one = $_GET["one"]; ?><?php echo $one ?>" required>
<input type="number" name="two" value="<?php $two =$_GET["two"]; ?><?php echo $two ?>" required>
<input type="number" name="three" value="<?php $three = $_GET["three"]; ?><?php echo $three ?>" required>
<br>
<input type="number" name="four" value="<?php $four =$_GET["four"]; ?><?php echo $four ?>" required>
<input type="number" name="five" value="<?php $five = $_GET["five"]; ?><?php echo $five ?>" required>
<input type="number" name="six" value="<?php $six =$_GET["six"]; ?><?php echo $six ?>" required>
<br>
<input type="number" name="seven" value="<?php $seven = $_GET["seven"]; ?><?php echo $seven ?>" required>
<input type="number" name="eight" value="<?php $eight =$_GET["eight"]; ?><?php echo $eight ?>" required>
<input type="number" name="nine" value="<?php $nine = $_GET["nine"]; ?><?php echo $nine ?>" required>
<br><br>
<button type="reset" class="btn">Reset to Default</button>
</div>
</div>
<div class="col-md-4">
<div class="det">
<h2>The order of the matrix is:</h2>
<p style="border: 2px dashed; font-size: 40px">3X3</p>
<h2>Invertiblity:</h2>
<p style="border: 2px dashed; font-size: 40px"><a href="gloss.html" style="color: black"><?php $one = $_GET["one"]; ?><?php $two =$_GET["two"]; ?><?php $three = $_GET["three"]; ?><?php $four =$_GET["four"]; ?><?php $five = $_GET["five"]; ?><?php $six =$_GET["six"]; ?><?php $seven = $_GET["seven"]; ?><?php $eight =$_GET["eight"]; ?><?php $nine = $_GET["nine"]; ?><?php $det = $one*($five*$nine-$eight*$six)-$two*($four*$nine-$seven*$six)+$three*($four*$eight-$seven*$five); ?><?php if($det==0){ echo "Not Invertible";}else{echo "Invertible";}?></a></p>
<h2>Special Property:</h2>
<p style="border: 2px dashed; font-size: 40px"><a href="gloss.html" style="color: black"><?php if($two==0 && $three==0 && $four==0 && $six==0 && $seven==0 && $eight==0){echo "Diagonal";}else if($two==$four && $seven==$three && $six==$eight){echo "Symmetric";}else if($two==(-$four) && $seven==(-$three) && $six==(-$eight)){echo "Skew-Symmetric";}else{echo "None";}?></a></p>
<br>
<br>
<br>
<button type="submit" class="btn">See Inverse -}</button>
<br>
<br>
<br>
<br>
<br>
</div>
</form>
</div>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<hr width="50%" align="centre" size="10px">
<p id="copy"> BRĀKETS PVT LTD</p>
</body>
</html>