Math functions transforming into one another. Double click to disable non-continuous functions.
for(_='g.BerD),OBsetPropDty("--Q",jiOQyj$m.#(1+#sqrt(5)GonFy.KKfFtSJjb[S]ZA[N][YwidthW)jVXV#Uen`an_a=>^Xj^sin(#3*a="sitiF)**(2*aco0%#pow(a,tyle.s,left)/2s(.height1x[i]"\\u221AXj#.backgroundt.innDHTML=vminj b.app`dChild(],["2)X"+,i=-4;4>i;i+=.01).poabsolutejcalc(5 - (var(--=d.createElem`t("div"O(XV^1/#for(m=Math,p=#PI,r=#r_dom,Ssjs=^"<sup>"+a+"</sup>ZblackZ.ovDflowhidd`jty=tyy0 KW8jK1jJize10 KlorwhitejKtextAlignc`tDjKbottom5 0,tOx=[]g=BW=g ghsl("+i+"rad,8,8VgBtopy25vh)VBx12.5vw)VBtr_ 3s, top 3sjQxj$0OBbordDRadius5j);setIntDval(functiF(){for(N=~~(r((M?13:A.l`gth))g=C=Y1](-$null==C||isNaN(C)?3:C);Y0]},4e3OA=[["0j()=>0a|X|j^#aba)--aUsUsin-X"+2O^-2O^3O^3)],[3)+cbrtX)/)/a/1.6Xa/1.4fibFaccisqrt(5((G)-(2/G)#2*a*#PI)][(sqrt)t_(Ut_tt_(a)secacsca1/1/a]],M=0,d.Fdblclick=()=>{M=!M,J=M?"italic":""};';G=/[-^-`U-WYZJKFG#$jQODB]/.exec(_);)with(_.split(G))_=join(shift());eval(_)
Zm9yKF89J2cuQmVyRCksT0JzZXRQcm9wRHR5KCItLVEiLGppT1F5aiRtLiMoMSsjc3FydCg1KUdvbkZ5LktLZkZ0U0pqYltTXVpBW05dW1l3aWR0aFcpalZYViNVZW5gYW5fYT0+XlhqXh9zaW4oHh8jHjMqYR09IhxzaXRpRhwbKSoaGiooMiphGWNvGDAlFyNwb3coYSwWdHlsZRUucxUsFGxlZnQTKS8yEnMoES5oZWlnaHQcMRB4W2ldDyJcXHUyMjFBWGojDi5iYWNrZ3JvdW5kHAx0LmlubkRIVE1MPQt2bWluagliLmFwcGBkQ2h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i=>'<sup>'+i+'</sup>';
b[S].background='black';
b[S].overflow='hidden';
t=d.createElement('div');
y=t.style;
y.position = 'absolute';
y.height='10vmin';
y.width='80%';
y.left='10%';
y.fontSize = '10vmin';
y.color='white';
y.textAlign = 'center';
y.bottom='5vmin';
t.innerHTML=0;
b.appendChild(t);
x=[];
for(i=-4;i<4;i+=.01)
{
x[i]=d.createElement('div');
g=x[i].style;
g.width=g.height='1vmin';
//g.background='white';
g.background='hsl('+i+'rad,80%,80%)';
g.position='absolute';
g.top = 'calc(50% - (var(--y)*25vh))';
g.left = 'calc(50% - (var(--x)*12.5vw))';
g.transition='left 3s, top 3s';
g.setProperty('--x', i);
g.setProperty('--y', 0);
g.borderRadius='50%';
b.appendChild(x[i]);
}
setInterval(function(){
N=~~(r()*(M?13:F.length));
for(i=-4;i<4;i+=.01)
{
g=x[i].style;
j=F[N][1](-i);
g.setProperty('--y', (j==undefined||isNaN(j))?3:j);
}
t.innerHTML = F[N][0];
},4000);
F=[
['0',i=>0],
['X',i=>i],
['|X|',i=>m.abs(i)],
['-X',i=>-i],
['cos(X)',m.cos],
['sin(X)',m.sin],
['-X'+s(2),i=>-m.pow(i,2)],
['X'+s(2),i=>m.pow(i,2)],
['X'+s(3),i=>m.pow(i,3)],
[s(3)+'√X',m.cbrt],
['sin(X)/X',i=>m.sin(i*3)/i/1.6],
['sin(X)*X',i=>m.sin(i*3)*i/1.4],
['fibonacci(X)',x=>((1/m.sqrt(5)) * ((((1 + m.sqrt(5)) / 2) ** (x*2)) - ((2 / (1 + m.sqrt(5))) ** (x*2)) * m.cos((x*2) * m.PI))) / 2]
['√X',m.sqrt],
['tan(X)',m.tan],
['cot(X)',i=>1/m.tan(i)],
['sec(X)',i=>1/m.cos(i)/2],
['csc(X)',i=>1/m.sin(i)/2],
['1/X',i=>1/i],
];
M=0;
d.ondblclick=e=>{M=!M;y.fontStyle=M?'italic':''};