-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalgebra vertex.html
More file actions
109 lines (108 loc) · 4 KB
/
Copy pathalgebra vertex.html
File metadata and controls
109 lines (108 loc) · 4 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
<!DOCTYPE html>
<html>
<head>
<title>vertex</title>
<style>
input{width:60px;background-color:#d4efd8}p{overflow:scroll;font-size:20px;letter-spacing:1.4px;font-weight:bold;font-family:Ariel,monospace}div,button,input{user-select:none}.av{font-size:15px;vertical-align:top}.ag{font-size:12px;vertical-align:top}legend{margin:0 auto;font-weight:900}
</style>
</head>
<body bgcolor=#d4efd8>
<center>
<div><u>a</u>x<span class=ag>2</span> + <u>b</u>x + <u>c</u><br>where <b><u>a</u></b> must be a real number</div><br><br>
<fieldset>
<legend>Getting vertex</legend>
a=<input id=a maxlength=9/>,
b=<input id=b maxlength=9/>,
c=<input id=c maxlength=9/>
<br><br><p id=d></p><br>Standard Form:<br><p id=e></p>
</fieldset>
<fieldset align=left>
<legend>Getting vertex form</legend>
Step 1:Get the standard form<br>
<p id=f></p>
Step 2:Use completing the square method<br>
<p id=g></p>
Step 3:Factoring<br>
<p id=h></p>
</fieldset>
</center>
<script>
var a0=Math,
b0='c',
c0='<span class=av>2</span>',
d0='Standard Form:<br>',
e0='x',
f0='pow',
g0=(-0x2*-0x211+0x30+-0x31d)*(-0x1ff8+-0x1*-0x204+0x1df9*0x1)+-(-0x2*0xbce+0x1c1d+0x9e*0x19)+-(-0xf0c+0x263b+-0x172e)*-(-0x520+-0x2366+-0x6c*-0x81),
h0=parseInt,
i0='toString'
j0='length',
k0='b',
l0=console
m0='replace'
n0=document,
o0='getElementById',
p0='value',
q0='Vertex',
r0='(h,k)',
s0=' = ',
t0='d',
u0='1',
v0=-(0x1*0x2e39+0x3cd*-0xc+0x4f*0x5e+-(0x4*-0x17+-0x2a*0x56+0x5*0x329)*-(0x2*-0xd7f+0x1*-0x5ad+0x1057*0x2)+-(-0x29d2+-0x1115*-0x1+0x3a5a)),
w0=b0[j0],
x0='indexOf',
y0='\.',
z0='\/',
a1='innerHTML',
b1='e',
c1=f0[j0],
d1='--',
e1='\+',
f1='\=',
g1='a',
h1='log',
i1='toLowerCase',
j1='',
k1=d1?.i,
l1=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
m1=d0[j0],
n1=(g0[i0]+(!e0?'look at this skid':e0)),
o1=eval,
p1='not a valid equation',
q1='toLocaleString',
r1='forEach',
s1='',
t1='f',
u1='g',
v1='(',
w1=')',
x1='-',
y1='h',
A_=(a,b,c,h,k,v,m,n,o,p)=>{
h=(v0*h0(b))/(w0*h0(a))[i0]()
v[m]=((h[i0]()[x0](y0)<=v0&&j0)?h:B_(v0*h0(b),(w0*h0(a)))?j1:s1)
k=(((a0[f0](w0,w0)*h0(a)*h0(c))-a0[f0](h0(b),w0))/(a0[f0](w0,w0)*h0(a)))[i0]()
v[n]=((k[i0]()[x0](y0)<=v0)?h0(k):B_(((a0[f0](w0,w0)*h0(a)*h0(c))-a0[f0](h0(b),w0)),(a0[f0](w0,w0)*h0(a)))?j1:s1)
n0[o0](b1)[a1]=(a?(h0(a)[q1]()+e0+c0+(b?(b>=g0?e1+h0(b)[q1]():h0(b)[q1]()):j1)+(b?e0:j1)+(c?(c>=g0?e1+h0(c)[q1]():h0(c)[q1]()):j1)+f1+g0):p1)[i0]()[m0]((u0+e0),e0)
n0[o0](t0)[a1]=q0+r0+s0+v
n0[o0](b1)[a1]=n0[o0](b1)[a1][m0]((u0+e0)[i0](),e0)
n0[o0](t1)[a1]=(a?(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[p0]=n0[o0](g1)[p0][i1]()[m0](a,j1)
n0[o0](k0)[p0]=n0[o0](k0)[p0][i1]()[m0](a,j1)
n0[o0](b0)[p0]=n0[o0](b0)[p0][i1]()[m0](a,j1)
})
A_(o1(n0[o0](g1)[p0]||g0),o1(n0[o0](k0)[p0]||g0),o1(n0[o0](b0)[p0]||g0),k1,k1,[],h0(u0)+v0,u0)
},-(n1+m1[i0](m1)))
</script>
</body>
</html>