// Coordinates System : SetCoords(361.8125,15.7109375,66.16380604210697,true,1301,792); // Geometry : P1=Point("P1",-2.294494665306675,-4.221175884625789); X=Point("X","[1,0,0]","1"); Y=Point("Y","[0,1,0]","1"); Z=Point("Z","[0,0,1]","1"); P2=Point("P2",-1.3691188262133065,-7.437219766842352); P3=Point("P3","[0,0,1.5]","1"); P4=Point("P4",2.232543192639647,-10.090127275983622); S11=Segment("S11",P1,X); S21=Segment("S21",P1,Y); S31=Segment("S31",P1,Z); C1=Circle1("C1",P2,2.456227883561446); n=Expression("n","","3","40","16","-4.712735234752985","-0.6693850482515202"); P5=Point("P5","[P4[0]+1,P4[1]]","0"); A=PointOn("A",C1,0.10318443034489153); B=PointOn("B",C1,2.3073784870197036); L1=Line("L1",P4,P5); A1=Angle("A1",B,P2,A); S1=Segment("S1",P2,B); S2=Segment("S2",P2,A); P6=PointOn("P6",L1,0.6262441933739471); Perp1=Perpendicular("Perp1",L1,P4); blk_turtle_exp_P3=Expression("blk_turtle_exp_P3","","","","var bl_ijdfaijdc=function(){\nTURTLE_INIT(\"P3\",P3);\nfor (var blockly_var_count = 1 ; blockly_var_count <= (n) ; blockly_var_count++){\n TURTLE_ROTATE((Math.acos(Math.quotient((A1),360))),false);\n TURTLE_MV((Math.quotient(Math.times((C1),Math.times(Math.quotient((A1),180),Math.PI)),(n))),false);\n TURTLE_TURN((Math.plus(90,Math.quotient(Math.quotient((A1),2),(n)))));\n TURTLE_MV((C1),false);\n TURTLE_TURN((Math.minus(180,Math.quotient((A1),(n)))));\n TURTLE_MV((C1),false);\n TURTLE_TURN((Math.plus(90,Math.quotient(Math.quotient((A1),2),(n)))));\n TURTLE_ROTATE(-(Math.acos(Math.quotient((A1),360))),false);\n TURTLE_MV((Math.quotient(Math.times((C1),Math.times(Math.quotient((A1),180),Math.PI)),(n))),false);\n TURTLE_TURN((Math.quotient(360,(n))));\n};\nreturn TURTLE_RESULT()\n};\nbl_ijdfaijdc()","-4.7127352347529845","-0.5182450126611259"); P7=PointOn("P7",Perp1,49.30799070190619); P8=Point("P8","var bl_bfcibbjjehhgg=function(){\nblockly_var_k = Math.quotient((A1),360);\nblockly_var_V = Math.times(Math.sqrt(Math.minus(1,Math.power(blockly_var_k,2))),Math.power(blockly_var_k,2));\nreturn ((Math.plus((P4),Math.plus(Math.times(Math.quotient((A1),20),Math.minus((P6),(P4))),Math.times(Math.times(blockly_var_V,20),Math.minus((P7),(P4)))))));\n};\nbl_bfcibbjjehhgg()","0"); blk_turtle_exp_P4=Expression("blk_turtle_exp_P4","","","","var bl_efaabdjjd=function(){\nTURTLE_INIT(\"P4\",P4);\nTURTLE_ROTATE_PT((P6));\nTURTLE_FONT('Arial',18,'normal','center');\nfor (var blockly_var_i = 1 ; blockly_var_i <= 18 ; blockly_var_i = blockly_var_i + 1){\n TURTLE_MV((d((P6),(P4))),false);\n TURTLE_TURN((90));\n TURTLE_MV(10,true);\n TURTLE_UP(true);\n TURTLE_MV(-30,true);\n TURTLE_TURN(-(90));\n TURTLE_PRINT((Math.times(blockly_var_i,20)));\n TURTLE_TURN((90));\n TURTLE_MV(20,true);\n TURTLE_TURN(-(90));\n TURTLE_UP(false);\n};\nTURTLE_MV(-(Math.times(18,(d((P6),(P4))))),false);\nTURTLE_TURN((90));\nfor (var blockly_var_i = 1 ; blockly_var_i <= 10 ; blockly_var_i = blockly_var_i + 1){\n TURTLE_MV((d((P7),(P4))),false);\n TURTLE_TURN(-(90));\n TURTLE_MV(10,true);\n TURTLE_UP(true);\n TURTLE_MV(-30,true);\n TURTLE_PRINT((Math.quotient(blockly_var_i,20)));\n TURTLE_MV(20,true);\n TURTLE_TURN((90));\n TURTLE_UP(false);\n};\nreturn TURTLE_RESULT()\n};\nbl_efaabdjjd()","-4.7127352347529845","-0.5182450126611259"); blk_turtle_list_P3=List("blk_turtle_list_P3",blk_turtle_exp_P3); blk_turtle_list_P4=List("blk_turtle_list_P4",blk_turtle_exp_P4); Perp2=Perpendicular("Perp2",L1,P8); Par1=Parallel("Par1",L1,P8); P9=OrderedIntersection("P9",L1,Perp2,0); P10=OrderedIntersection("P10",Perp1,Par1,0); S3=Segment("S3",P10,P8); S4=Segment("S4",P8,P9); // Styles : STL(P1,"c:#0000b2;s:6;f:30;fl:true"); STL(X,"c:#0000b2;o:1;s:4;sn:true;f:24"); STL(Y,"c:#0000b2;o:1;s:4;sn:true;f:24"); STL(Z,"c:#0000b2;o:1;s:4;sn:true;f:24"); STL(P2,"c:#0000b2;h:1;s:6;sn:true;f:30;fl:true"); STL(P3,"c:#0000b2;s:6;f:30"); STL(P4,"c:#760012;o:0.35;s:6;f:30;fl:true"); STL(S11,"c:#117dad;s:1;f:24"); STL(S21,"c:#117dad;s:1;f:24"); STL(S31,"c:#117dad;s:1;f:24"); STL(C1,"c:#cc66cc;s:1;f:30;p:0"); STL(n,"c:#496c78;s:7;sn:true;f:24;p:2;i:1;cL:200;cPT:YzojNzgwMDEzO3M6MTA7ZjozMDtpOjE="); STL(P5,"c:#0000b2;h:1;s:6;f:30"); STL(A,"c:#760012;s:6;f:30"); STL(B,"c:#760012;s:6;f:30;fl:true"); STL(L1,"c:#780013;h:1;s:1;f:30;p:0"); STL(A1,"c:#006633;s:4;f:24;p:1;am:true"); STL(S1,"c:#006633;s:1;f:24"); STL(S2,"c:#006633;s:1;f:24"); STL(P6,"c:#760012;s:6;f:30"); STL(Perp1,"c:#780013;h:1;s:1;f:30;p:0"); STL(blk_turtle_exp_P3,"c:#780013;h:2;s:7;f:24;p:2;cL:200;cPT:YzojNzgwMDEzO2g6MjtzOjEwO2Y6MzA="); STL(P7,"c:#760012;s:6;f:30"); STL(P8,"c:#0000b2;s:1;f:30;tk:true"); STL(blk_turtle_exp_P4,"c:#780013;h:2;s:7;f:24;p:2;cL:200;cPT:YzojNzgwMDEzO2g6MjtzOjEwO2Y6MzA="); STL(blk_turtle_list_P3,"c:#0000b2;s:0;f:30;p:0;nmi:true;sg:1"); STL(blk_turtle_list_P4,"c:#0000b2;s:0;f:30;p:0;nmi:true;sg:1"); STL(Perp2,"c:#780013;h:1;s:1;f:30;p:0"); STL(Par1,"c:#780013;h:1;s:1;f:30;p:0"); STL(P9,"c:#0000b2;h:1;s:6;f:30"); STL(P10,"c:#0000b2;h:1;s:6;f:30"); STL(S3,"c:#006633;s:1;f:24;dh:true"); STL(S4,"c:#006633;s:1;f:24;dh:true"); SetCoordsStyle("3Dmode:true;isAxis:false;isGrid:true;isOx:true;isOy:true;isLockOx:false;isLockOy:false;centerZoom:true;onlyPositive:false;color:#111111;fontSize:18;axisWidth:1;gridWidth:0.1"); SetGeneralStyle("background-color:#F8F8F8;degree:true;dragmoveable:true"); // Blockly : BLK(P3,{"onlogo":{"xml":"nrotate_right90ACOSDIVIDEA1360moveForwardun60DIVIDEMULTIPLYC1MULTIPLYDIVIDEA1180PInturnLeft60ADD90DIVIDEDIVIDEA12nmoveForwardun60C1turnLeft60MINUS180DIVIDEA1nmoveForwardun60C1turnLeft60ADD90DIVIDEDIVIDEA12nrotate_left90ACOSDIVIDEA1360moveForwardun60DIVIDEMULTIPLYC1MULTIPLYDIVIDEA1180PInturnLeft90DIVIDE360n","sync":"for (var blockly_var_count = 1 ; blockly_var_count <= (n) ; blockly_var_count++){\n TURTLE_ROTATE((Math.acos(Math.quotient((A1),360))),false);\n TURTLE_MV((Math.quotient(Math.times((C1),Math.times(Math.quotient((A1),180),Math.PI)),(n))),false);\n TURTLE_TURN((Math.plus(90,Math.quotient(Math.quotient((A1),2),(n)))));\n TURTLE_MV((C1),false);\n TURTLE_TURN((Math.minus(180,Math.quotient((A1),(n)))));\n TURTLE_MV((C1),false);\n TURTLE_TURN((Math.plus(90,Math.quotient(Math.quotient((A1),2),(n)))));\n TURTLE_ROTATE(-(Math.acos(Math.quotient((A1),360))),false);\n TURTLE_MV((Math.quotient(Math.times((C1),Math.times(Math.quotient((A1),180),Math.PI)),(n))),false);\n TURTLE_TURN((Math.quotient(360,(n))));\n};","parents":["n","A1","C1"]},"current":"onlogo"}); BLK(P4,{"onlogo":{"xml":"P6Arial18normalcenteri1181moveForwardun60P6P4turnLeft90moveForwardpx10penUpmoveBackwardpx30turnRight90un texteMULTIPLYi20turnLeft90moveForwardpx20turnRight90penDownmoveBackwardun60MULTIPLY18P6P4turnLeft90i1101moveForwardun60P7P4turnRight90moveForwardpx10penUpmoveBackwardpx30un texteDIVIDEi20moveForwardpx20turnLeft90penDown","sync":"TURTLE_ROTATE_PT((P6));\nTURTLE_FONT('Arial',18,'normal','center');\nfor (var blockly_var_i = 1 ; blockly_var_i <= 18 ; blockly_var_i = blockly_var_i + 1){\n TURTLE_MV((d((P6),(P4))),false);\n TURTLE_TURN((90));\n TURTLE_MV(10,true);\n TURTLE_UP(true);\n TURTLE_MV(-30,true);\n TURTLE_TURN(-(90));\n TURTLE_PRINT((Math.times(blockly_var_i,20)));\n TURTLE_TURN((90));\n TURTLE_MV(20,true);\n TURTLE_TURN(-(90));\n TURTLE_UP(false);\n};\nTURTLE_MV(-(Math.times(18,(d((P6),(P4))))),false);\nTURTLE_TURN((90));\nfor (var blockly_var_i = 1 ; blockly_var_i <= 10 ; blockly_var_i = blockly_var_i + 1){\n TURTLE_MV((d((P7),(P4))),false);\n TURTLE_TURN(-(90));\n TURTLE_MV(10,true);\n TURTLE_UP(true);\n TURTLE_MV(-30,true);\n TURTLE_PRINT((Math.quotient(blockly_var_i,20)));\n TURTLE_MV(20,true);\n TURTLE_TURN((90));\n TURTLE_UP(false);\n};","parents":["P6","P7"]},"current":"onlogo"}); BLK(P8,{"oncompute":{"xml":"kDIVIDEA1360VMULTIPLYROOTMINUS1POWERk2POWERk2ADDP4ADDMULTIPLYDIVIDEA120MINUSP6P4MULTIPLYMULTIPLYV20MINUSP7P4","sync":"blockly_var_k = Math.quotient((A1),360);\nblockly_var_V = Math.times(Math.sqrt(Math.minus(1,Math.power(blockly_var_k,2))),Math.power(blockly_var_k,2));\nreturn ((Math.plus((P4),Math.plus(Math.times(Math.quotient((A1),20),Math.minus((P6),(P4))),Math.times(Math.times(blockly_var_V,20),Math.minus((P7),(P4)))))));","parents":["A1","P4","P6","P7"]},"current":"oncompute"});