Glen Whitney
4e2375b709
This is a stub/very preliminary implementation of calling JSXGraph for 3D Joyce applets. The only element/construction method implemented so far is a free point. NOTE: This implementation is so far extremely buggy. Loading a page with a 3D applet such as http://aleph0.clarku.edu/~djoyce/java/elements/bookXI/defXI9.html appears to enter a loop in which the div containing the JSXGraph Board progressively grows larger and larger, while using a tremendous amount of cpu.
2 lines
9.1 KiB
JavaScript
2 lines
9.1 KiB
JavaScript
$wnd.webSimple.runAsyncCallback11("function rrc(){}\nfunction w2b(){ic.call(this)}\nfunction KFd(a){ZEd.call(this,a)}\nfunction Boc(a){Coc.call(this,a,1.0E-11)}\nfunction joc(a){this.g=qac(a,a.length)}\nfunction gRf(){this.g=new rfc}\nfunction Nbc(a){Mbc();return a==Jbc?null:a}\nfunction j3h(){var a;return nmc((a=this.g,Cdc(),a))}\nfunction k9d(a,b){return new mae(a.r,a,(Idg(),Ncg),b)}\nfunction R7d(a){return new mae(a.r,a,(Idg(),Jbg),null)}\nfunction Olc(a,b){w2b.call(this);this.g=new omc;mmc(this.g,a,b)}\nfunction lEd(a,b){xxc.call(this,a);this.g=b;this.j=new y1e(a);kEd(this);jEd(this)}\nfunction fRf(a,b){var c;if(ff(b)){c=ohg((Jic(b),b));qrc(a,c);return}qrc(a,b)}\nfunction nrc(a,b){var c;c=prc(a);if(yqb(c,0)==0){return NaN}return Sqb(mrc(a,b))/Sqb(c)}\nfunction orc(a,b){var c;c=prc(a);if(yqb(c,0)==0){return NaN}return Sqb(lrc(a,b))/Sqb(c)}\nfunction mhf(a,b){var c,d;d=new gac;for(c=0;c<b.s.q.length;c++){R9b(d,V9b(b.s,c))}lhf(a,d)}\nfunction hbc(a,b){gbc();var c,d,e,f,g;g=false;for(d=b,e=0,f=d.length;e<f;++e){c=d[e];g=g|a.add(c)}return g}\nfunction u4e(a,b,c){lJc();var d,e;d=Hpf(a.Hz(),b.Hz());e=Hpf(a.Hz(),c.Hz());return !Zof(d,e)}\nfunction $4d(a,b){var c;return c=sEb(a.i,d4b(b)),!c||c.get(d4b(6))==null?-1:c.get(d4b(6)).g}\nfunction _4d(a,b){var c;return c=sEb(a.i,d4b(b)),!c||c.get(d4b(5))==null?-1:c.get(d4b(5)).g}\nfunction X4d(a,b){var c;c=sEb(a.i,d4b(b));if(!!c&&c.get(d4b(1))!=null){return J3b(c.get(d4b(1)))}return -1}\nfunction Z4d(a,b,c){var d;d=sEb(a.i,d4b(b));if(d){if(d.get(d4b(2))==null){return c}return d.get(d4b(2))}return c}\nfunction lrc(a,b){var c,d;if(cf(b,279)){return lrc(a,k4b(b.g))}d=0;c=m9b(a.g,b);!!c&&(d=c.g);return d}\nfunction qrc(a,b){var c,d;d=b;cf(b,279)&&(d=k4b(b.g));c=m9b(a.g,d);!c?ifc(a.g,d,k4b(1)):ifc(a.g,d,k4b(wqb(c.g,1)))}\nfunction kEd(a){p1e(a.j,a.g.S);a.ab=je(BY,Wsh,14,1,0,1);a.ab[0]=a.g;mxc(a,a.j);ixc(a)}\nfunction ite(b,c,d){try{return gte(b,c,d,new mZf)}catch(a){a=uqb(a);if(cf(a,42)){return null}else throw vqb(a)}}\nfunction iEd(a,b){var c,d;c=false;for(d=0;d<a.s.q.length;d++){if(b.$m(V9b(a.s,d))==(Ghg(),Ehg)){c=true;break}}c||Y_e(a,b.Tk(a.Qc))}\nfunction prc(a){var b,c,d,e;e=0;c=(d=(new e9b(a.g)).g.ee().yd(),new f9b(d));while(c.g.rf()){e=wqb(e,(b=c.g.sf(),b.nf()).g)}return e}\nfunction F4e(a,b,c,d,e,f,g,h){lJc();var i,j,k,l;i=a.Hz();j=b.Hz();k=c.Hz();l=Bof(Bof(bpf(Gof(i),d/g),j,e/g),k,f/g);Q3e(h,l,false)}\nfunction Rnc(a,b,c){var d,e;Hoc(a,b);e=a.i==null?0:a.i.length;if(c.length!=e){throw vqb(new Goc(c.length,1,e,1))}for(d=0;d<e;++d){$nc(a,d,b,c[d])}}\nfunction Snc(a,b,c){var d,e;Joc(a,b);e=a.i==null||a.i[0]==null?0:a.i[0].length;if(c.length!=e){throw vqb(new Goc(1,c.length,1,e))}for(d=0;d<e;++d){$nc(a,b,d,c[d])}}\nfunction gwc(a,b,c){Vvc();var d,e,f;f=mf((a.i>>16&255)*(1-c)+(b.i>>16&255)*c);e=mf((a.i>>8&255)*(1-c)+(b.i>>8&255)*c);d=mf((a.i&255)*(1-c)+(b.i&255)*c);return hwc(f,e,d,255)}\nfunction _tc(a,b){var c,d,e,f;if(a==0){return b}else if(b==0){return a}c=c4b(a);a>>=c;d=c4b(b);b>>=d;f=$wnd.Math.min(c,d);while(a!=b){e=a-b;b=$wnd.Math.min(a,b);a=$wnd.Math.abs(e);a>>=c4b(a)}return a<<f}\nfunction Y4d(a,b){var c,d,e,f,g;f=sEb(a.i,d4b(b));d=null;!!f&&(d=f.get(d4b(0)));if(d){return d}if(a.g!=null){e=a.g[(b-1)%a.g.length];c=kwc(e);g=(b-1)/a.g.length|0;return gwc((Vvc(),Svc),c,$wnd.Math.pow(0.6,g))}return null}\nfunction Eoc(a,b){var c,d,e,f,g,h,i;h=a.i.length;if(b.g.length!=h){throw vqb(new Llc(b.g.length,h))}if(a.j){throw vqb(new Xoc)}c=je(pf,Keh,5,h,15,1);for(i=0;i<h;i++){c[i]=hoc(b,a.i[i])}for(f=0;f<h;f++){d=c[f];for(g=f+1;g<h;g++){c[g]-=d*a.g[g][f]}}for(e=h-1;e>=0;e--){c[e]/=a.g[e][e];d=c[e];for(g=0;g<e;g++){c[g]-=d*a.g[g][e]}}return new koc(c)}\nfunction mrc(a,b){var c,d,e,f,g,h,i;if(Bqb(prc(a),0)){return 0}if(cf(b,279)){return mrc(a,k4b(b.g))}c=Nbc(a.g.g);!c&&(c=new rrc);g=0;h=m9b(a.g,b);!!h&&(g=h.g);if(c.kf(b,o9b(_ec(a.g)))<0){return 0}if(c.kf(b,o9b(afc(a.g)))>=0){return prc(a)}i=(e=(new r9b(a.g)).g.ee().i.dg(),new s9b(e));while(i.g.rf()){f=(d=i.g.sf(),d.mf());if(c.kf(b,f)>0){g=wqb(g,lrc(a,f))}else{return g}}return g}\nfunction $tc(a,b){var c,d,e,f,g,h;c=a;e=b;if(c==0||e==0){if(c==Cah||e==Cah){throw vqb(new Olc((Enc(),Jmc),me(fe(du,1),Gah,1,5,[d4b(a),d4b(b)])))}return $wnd.Math.abs(c+e)}d=c;f=e;h=false;if(c<0){Cah==c?(h=true):(c=-c);d=Kqb(d)}if(e<0){Cah==e?(h=true):(e=-e);f=Kqb(f)}if(h){if(yqb(d,f)==0){throw vqb(new Olc((Enc(),Jmc),me(fe(du,1),Gah,1,5,[d4b(a),d4b(b)])))}g=f;f=d;d=Iqb(g,d);if(yqb(d,0)==0){if(yqb(f,yah)>0){throw vqb(new Olc((Enc(),Jmc),me(fe(du,1),Gah,1,5,[d4b(a),d4b(b)])))}return Tqb(f)}g=f;e=Tqb(d);c=Tqb(Iqb(g,d))}return _tc(c,e)}\nfunction jEd(a){var b,c,d,e,f,g,h,i;if(!a.g.A||a.g.s.q.length==0){_0e(a.j,false);return}_0e(a.j,true);g0e(a.j);if(!(a.g.r==(O7f(),I7f)||a.g.r==l7f)){for(e=0;e<a.g.s.q.length;e++){iEd(a.j,o0e(a.g,e))}return}!a.i&&(a.i=new gRf);Zec(a.i.g);for(d=0;d<a.g.s.q.length;d++){a.g.r==I7f&&fRf(a.i,d8e(o0e(a.g,d),(Gwd(),cwd)));a.g.r==l7f&&fRf(a.i,new dfe(a.Sc,o0e(a.g,d).O))}if(a.g.r==I7f){f=(c=(new r9b(a.i.g)).g.ee().i.dg(),new s9b(c));while(f.g.rf()){h=(b=f.g.sf(),b.mf());i=new j8e(a.Qc);$7e(i,h);Y_e(a.j,i)}}else{f=(c=(new r9b(a.i.g)).g.ee().i.dg(),new s9b(c));while(f.g.rf()){g=(b=f.g.sf(),b.mf());__e(a.j,g.s,a)}}}\nfunction lhf(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,A,B,C,D,F,G,H;if(mf($wnd.Math.sqrt(9+8*b.q.length))!=$wnd.Math.sqrt(9+8*b.q.length)){a.k=false;_gf(a);return}d=mf(0.5*$wnd.Math.sqrt(8*(1+b.q.length)))-1;A=d;e=new coc(b.q.length,b.q.length+1);t=new coc(b.q.length,b.q.length);c=he(pf,[Tnh,Keh],[18,5],15,[d+1,d+1],2);u=je(pf,Keh,5,b.q.length+1,15,1);for(g=0;g<b.q.length;g++){G=(Iic(g,b.q.length),b.q[g]).Iz();H=(Iic(g,b.q.length),b.q[g]).Jz();for(n=0,s=0;n<d+1;n++){for(r=0;n+r!=d+1;r++){u[s++]=$wnd.Math.pow(G,n)*$wnd.Math.pow(H,r)}}Snc(e,g,u)}D=0;v=b.q.length;do{if(D>v){v=v-A-1;if(v<2){a.k=false;_gf(a);return}e=new coc(v,v+1);A-=1;u=je(pf,Keh,5,v+1,15,1);for(h=0;h<v;h++){G=(Iic(h,b.q.length),b.q[h]).Qz();H=(Iic(h,b.q.length),b.q[h]).Rz();for(n=0,s=0;n<A+1;n++){for(r=0;n+r!=A+1;r++){u[s++]=$wnd.Math.pow(G,n)*$wnd.Math.pow(H,r)}}Snc(e,h,u)}t=new coc(v,v);D=0}B=Qnc(e,D);for(i=0,o=0;i<v+1;i++){if(i==D){continue}Rnc(t,o++,Qnc(e,i))}++D;F=Aoc(new Boc(t))}while(F.j);for(j=0;j<B.length;j++){B[j]*=-1}w=Eoc(F,new joc(B)).g;C=je(pf,Keh,5,w.length+1,15,1);for(k=0,p=0;k<C.length;k++){if(k==D-1){C[k]=1}else{C[k]=Bhg(w[p])?0:w[p];++p}}for(l=0,q=0;l<A+1;l++){for(m=0;l+m<A+1;m++){c[l][m]=C[q++]}}bhf(a,c);a.k=true;for(f=0;f<b.q.length;f++){if(!Ygf(a,(Iic(f,b.q.length),b.q[f]))){a.k=false;_gf(a);return}}}\nvar iRh={16:1,636:1,118:1,24:1,89:1,14:1,119:1},TRh={3:1,15:1,4:1,8:1,1021:1,127:1,7:1},VRh={3:1,4:1,8:1,7:1,74:1},ZRh={3:1,4:1,8:1,7:1,59:1},$Rh=4284,cSh=0.3183098861837907,hSh=' and ',gTh={3:1,994:1};brb(652,308,Yqh,Olc);_.fd=j3h;_.gd=j3h;var Vx=p3b(652);brb(924,4254,Urh);_.hh=function(){var a,b,c,d;a=he(pf,[Tnh,Keh],[18,5],15,[this.jh(),this.fh()],2);for(c=0;c<a.length;++c){b=a[c];for(d=0;d<b.length;++d){b[d]=this.ih(c,d)}}return a};brb(265,924,Vrh);_.hh=function(){return Ync(this)};brb(503,1600,Wrh,joc);brb(644,924,Vrh);_.hh=function(){var a,b,c,d,e,f,g,h,i,j,k,l;b=he(pf,[Tnh,Keh],[18,5],15,[this.n,this.k],2);g=this.k-(this.g-1)*52;for(e=0;e<this.i;++e){k=e*52;j=$wnd.Math.min(k+52,this.n);l=0;h=0;for(i=k;i<j;++i){c=b[i];a=e*this.g;d=0;for(f=0;f<this.g-1;++f){U5b(this.j[a++],l,c,d,52);d+=52}U5b(this.j[a],h,c,d,g);l+=52;h+=g}}return b};brb(635,1,{},Boc);brb(994,1,gTh);_.Zc=function(a){var b;if(this===a){return true}if(!cf(a,994)){return false}b=a;if(!this.g){if(b.g){return false}}else if(!iEb(this.g,b.g)){return false}return true};_.$c=function(){var a;a=1;a=31*a+(!this.g?0:jbc(new yfc(this.g)));return a};_._c=function(){var a,b,c,d,e;d=new Q5b;d.g+='Value \\t Freq. \\t Pct. \\t Cum Pct. \\n';c=(b=(new r9b(this.g)).g.ee().i.dg(),new s9b(b));while(c.g.rf()){e=(a=c.g.sf(),a.mf());d.g+=''+e;d.g+='\\t';C5b(d,lrc(this,e));d.g+='\\t';A5b(d,orc(this,e));d.g+='\\t';A5b(d,nrc(this,e));d.g+=_bh}return d.g};var uz=p3b(994);brb(4097,1,Nch,rrc);_.kf=function(a,b){return K2b(a,b)};_.Zc=function(a){return this===a};_.lf=function(){return new Rbc(this)};var tz=p3b(4097);brb(636,14,iRh);var dF=p3b(636);brb(1525,17,Xsh,lEd);_.$i=function(){return bKe(),wJe};_.Wi=function(){jEd(this)};_.vj=function(){kEd(this)};var HI=p3b(1525);brb(972,21,ADh);_.Yu=function(a,b){var c;c=PEd(this,a,new HKe(false));if(c.length!=1){throw vqb(FEd(this,a,a.j.q.length))}if(!cf(c[0],38)){throw vqb(CEd(this,a.q,c[0]))}return me(fe(BY,1),Wsh,14,0,[this.dv(c[0],Jcd(a))])};var YV=p3b(972);brb(100,129,fGh);_.ow=function(a,b){return bce(this,a,b)};brb(36,14,nHh);_.ow=function(a,b){return this.O};brb(57,14,bIh);_.ow=function(a,b){if(P4b(DYe(this,(Gwd(),cwd)),'y')){return uZe(this,b)}return !this.n?NaN:this.n.Og(a)};brb(124,14,eIh);_.ow=function(a,b){return UZe(this,a,b)};brb($Rh,1,{});var z2=p3b($Rh);brb(3963,17,xJh);_.g=0;_.n=0;var F4=p3b(3963);brb(3960,17,xJh);var u4=p3b(3960);brb(3966,17,xJh);var v4=p3b(3966);brb(3961,17,xJh);var z4=p3b(3961);brb(3968,17,xJh);_.g=0;_.i=false;_.j=false;_.k=0;_.n=0;_.o=0;_.p=0;_.q=0;_.r=false;_.u=0;_.v=0;_.A=0;_.B=0;_.D=0;_.F=0;_.H=0;_.I=0;var A4=p3b(3968);brb(3964,17,xJh);_.j=0;var B4=p3b(3964);brb(3962,17,xJh);var D4=p3b(3962);brb(3967,17,xJh);_.g=0;_.i=0;_.j=0;_.k=0;_.n=false;_.q=0;_.r=0;var E4=p3b(3967);brb(1585,994,gTh,gRf);var M8=p3b(1585);rah(Qc)(11);\n//# sourceURL=webSimple-11.js\n")
|