-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
320 lines (303 loc) · 8.63 KB
/
index.html
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script>
alert('By entering into this site, you agree that the owner of the website is not responsible for anything you do with this. This website is intended for educational purposes only.');
</script>
<script
src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha256-4+XzXVhsDmqanXGHaHvgh1gMQKX40OUvDEBTu8JcmNs="
crossorigin="anonymous"
></script>
<script src="index.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/9.0.0/math.js"></script>
<link rel="stylesheet" href="style.css" />
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet">
<title>Maths</title>
</head>
<body>
<!-- Unit3 Starts here -->
<section id="unit3">
<h2 class="unit"> UNIT III</h2>
<div id="calculation">
<div id="GCD">
<h2>GCD</h2>
<!-- GCD -->
<input
type="number"
pattern="\d*"
name="gcd1"
id="gcd1"
class="text-box"
/>
<input
type="number"
pattern="\d*"
name="gcd2"
id="gcd2"
class="text-box"
/>
<input
type="number"
pattern="\d*"
name="gcd3"
id="gcd3"
class="text-box"
/>
<input
type="number"
pattern="\d*"
name="gcd4"
id="gcd4"
class="text-box"
/>
<button id="gcd-button" onclick="gcdcalc()" class="hbtn hb-fill-middle2">
Calculate gcd
</button>
<label id="gcdlabel" class="ans">   </label>
<!-- /GCD -->
</div>
<!-- LCM -->
<div id="LCM">
<h2>LCM</h2>
<input
type="number"
pattern="\d*"
name="lcm1"
id="lcm1"
class="text-box"
/>
<input
type="number"
pattern="\d*"
name="lcm2"
id="lcm2"
class="text-box"
/>
<input
type="number"
pattern="\d*"
name="lcm3"
id="lcm3"
class="text-box"
/>
<button id="lcm-button" onclick="lcmcalc()" class="hbtn hb-fill-middle2">
Calculate lcm
</button>
<label id="lcmlabel" class="ans">  </label>
</div>
<!-- prime -->
<div id="prime">
<h2>No of Prime</h2>
<input
type="number"
pattern="\d*"
name="prime1"
id="prime1"
class="text-box"
/>
<input
type="number"
pattern="\d*"
name="prime2"
id="prime2"
class="text-box"
/>
<button id="prime-button" onclick="primecalc()" class="hbtn hb-fill-middle2">
Calculate No of Prime Numbers
</button>
<label id="primelabel" class="ans"> </label>
</div>
<div id="factorial">
<h2>Factorial</h2>
<input
type="number"
pattern="\d*"
name="fact"
id="fact"
class="text-box"
/>
<button id="fact-button" onclick="fact()" class="hbtn hb-fill-middle2">
Calculate factorial
</button>
<label id="factlabel" class="ans"> </label>
</div>
<div id="findremainder">
<h2>Quotient and Remainder</h2>
<input
type="number"
pattern="\d*"
name="dividend"
id="dividend"
class="text-box"
placeholder="dividend"
/>
<input
type="number"
pattern="\d*"
name="divisor"
id="divisor"
class="text-box"
placeholder="divisor"
/>
<button type="submit" onclick="qandr();" class="hbtn hb-fill-middle2">
Calculate Q and R
</button>
<label class="ans" id="q_qandr"> </label>
</div>
<div id="trailingzero">
<h2>Trailing Zeroes</h2>
<input type="number"
pattern="\d*"
name="trailing"
id="trailing"
class="text-box"
/>
<button class="hbtn hb-fill-middle2" type="submit" onclick="trailingzeroes()">Calculate trailing zeroes (approx)</button>
<label id="trailing_ans"class="ans"> </label>
</div>
<div id="converter">
<h2>Base Converter</h2>
<input type="number"
pattern="\d*"
name="deci"
id="deci"
class="text-box converter"
placeholder="DECIMAL"
/>
<input type="number"
pattern="\d*"
name="bina"
id="bina"
class="text-box converter"
placeholder="BINARY"
/>
<input type="number"
pattern="\d*"
name="octa"
id="octa"
class="text-box converter"
placeholder="OCTAL"
/>
<input type="text"
name="hexa"
id="hexa"
class="text-box converter"
placeholder="HEXA DECIMAL"
/>
<button class="hbtn hb-fill-middle2" type="submit" onclick="convert()">Convert</button>
<button class="hbtn hb-fill-middle2" type="submit" onclick="Clear()">clear</button>
</div>
</section>
<hr>
<!-- Unit3 Ends here -->
<!-- Unit4 Starts here -->
<section id="unit4">
<h2 class="unit"> UNIT IV</h2>
<div id="exponentdivision">
<h2> Exponent Division</h2>
<input type="number"
pattern="\d*"
name="number_ed"
id="number_ed"
class="text-box"
placeholder="base"
/>
<input type="number"
pattern="\d*"
name="exponent_ed"
id="exponent_ed"
class="text-box"
placeholder="exponent"
/>
<input type="number"
pattern="\d*"
name="divisor_ed"
id="divisor_ed"
class="text-box"
placeholder="divisor"
/>
<button type="Submit" class="hbtn hb-fill-middle2" onclick="exponentdivision()"> Calculate remainder</button>
<label class="ans" id="ans_ed"> </label>
</div>
<div id="invmodulo">
<h2>Inverse modulo</h2>
<input type="number"
pattern="\d*"
name="firstmodulo"
id="firstmodulo"
class="text-box"
/>
<input type="number"
pattern="\d*"
name="secondmodulo"
id="secondmodulo"
class="text-box"
/>
<button type="submit" onclick="modinverse();" class="hbtn hb-fill-middle2">calculate inverse modulo</button>
<label class="ans" id="invmoduloans"> </label>
</div>
<div class="divcheck">
<h2> Divisibility Check</h2>
<input type="number"
pattern="\d*"
name="divisible"
id="divisible"
class="text-box"
/>
<button type="submit" onclick="divcheck();" class="hbtn hb-fill-middle2">Check Divisibility</button>
<label id="divisibility" class="ans"> </label>
</div>
</section>
<hr>
<!-- Unit4 Ends here -->
<!-- Unit5 Starts here -->
<section id="unit5">
<h2 class="unit"> UNIT V</h2>
<div id="phi">
<h2>PHI (φ)</h2>
<input
type="number"
pattern="\d*"
name="phi1"
id="phi1"
class="text-box"
/>
<button id="phi-button" onclick="phi()" class="hbtn hb-fill-middle2">
Calculate phi
</button>
<label id="philabel" class="ans"> </label>
</div>
<div id="tau">
<h2>TAU (τ)</h2>
<input
type="number"
pattern="\d*"
name="tau1"
id="tau1"
class="text-box"
/>
<button id="tau-button" onclick="tau()" class="hbtn hb-fill-middle2">Calculate Tau</button>
<lable id="taulabel" class="ans"> </lable>
</div>
<div id="sigma">
<h2>Sigma (σ)</h2>
<input
type="number"
pattern="\d*"
name="sigma1"
id="sigma1"
class="text-box"
/>
<button id="sigma-button" onclick="sigma()" class="hbtn hb-fill-middle2">Calculate Sigma</button>
<lable id="sigmalabel" class="ans"> </lable>
</div>
</section>
<!-- Unit5 Ends here -->
<hr>
</div>
</body>
</html>