/////////////////////////////////// // Modifications for Theta Graph // /////////////////////////////////// // The following contains an example for Cell7_0 combinatorial type of the modified tropical theta graphs in R^3. The curve can be visualized by means of projections. // We use the parameters b5, b4, b34, b2, where b3 = b34+b4, a5 = -b5^2, a4 = b4^2, a3 = b3^2, a2 = b2^2. we use this strategy since the modifications involve square roots. // The parameters w5,w3, w34, w2 satisfy: // PiecesTypeIICone[1][0].Hrepresentation() // (An inequality (1, -1, 0, 0) x + 0 >= 0, // An inequality (0, 0, -1, 1) x + 0 >= 0, // An inequality (-1, 2, 0, -1) x + 0 >= 0) // We want a cancellation, so we need in(b4^2) = in(b2*b5). /////////////////////////////// // Case 7_0: [0, -2, -5, -4] // /////////////////////////////// LIB "all.lib"; LIB "poly.lib"; LIB "tropical.lib"; LIB "elim.lib"; ring rr = (0,t), (b2,b34,b4,b5, x,y,z),dp; poly f=y^2-x*(x-b2^2)*(x-(b4+b34)^2)*(x-b4^2)*(x+b5^2); // f; // b2^2*b34^2*b4^2*b5^2*x+2*b2^2*b34*b4^3*b5^2*x+b2^2*b4^4*b5^2*x+b2^2*b34^2*b4^2*x^2+2*b2^2*b34*b4^3*x^2+b2^2*b4^4*x^2-b2^2*b34^2*b5^2*x^2-2*b2^2*b34*b4*b5^2*x^2-2*b2^2*b4^2*b5^2*x^2-b34^2*b4^2*b5^2*x^2-2*b34*b4^3*b5^2*x^2-b4^4*b5^2*x^2-b2^2*b34^2*x^3-2*b2^2*b34*b4*x^3-2*b2^2*b4^2*x^3-b34^2*b4^2*x^3-2*b34*b4^3*x^3-b4^4*x^3+b2^2*b5^2*x^3+b34^2*b5^2*x^3+2*b34*b4*b5^2*x^3+2*b4^2*b5^2*x^3+b2^2*x^4+b34^2*x^4+2*b34*b4*x^4+2*b4^2*x^4-b5^2*x^4-x^5+y^2 setring(rr); poly B5 = (1+t^2); poly B4 = (2*t^2+t^5); poly B34 = (t^5+t^10); poly B2 = (4*t^4+t^16); map P2 = rr, B2, B34, B4, B5, x, y, z; poly ff = P2(f); ring r = (0,t),(x,y),dp; map newP2 = rr, 0,0,0,0,x,y,0; poly f2 = newP2(ff); // f2; // -x5+(t32+9t20+4t15+4t12+5t10+16t8+12t7+7t4-2t2-1)*x4+(-t52-4t47-4t44-5t42-8t40-12t39-7t36-32t35+2t34-31t32-41t30-16t28-100t27-4t25-59t24-64t23-2t22-59t20-28t19-80t18-16t17-12t16-188t15-39t14-98t12-36t11+37t10+24t9+8t8+12t7+16t6+8t4)*x3+(t62+4t59+4t57+3t56+18t54+3t52+28t51+8t50+16t49+12t48+28t47+39t46+32t45+10t44+36t43+139t42-24t41+32t40+212t39+128t37+88t36+32t35+311t34+64t33-66t32+284t31+247t30-204t29+108t28+340t27-156t26+252t25+80t24-96t23+596t22-88t21-244t20+496t19-164t18-408t17+8t16-240t15-308t14-96t13-144t12-48t11-32t10-16t8)*x2+y2+(t66+2t64+4t63+t62+12t61+4t60+12t59+28t58+4t57+48t56+32t55+36t54+88t53+36t52+112t51+92t50+120t49+152t48+144t47+276t46+128t45+400t44+304t43+272t42+704t41+208t40+704t39+688t38+384t37+1024t36+576t35+864t34+832t33+896t32+896t31+704t30+1408t29+448t28+1280t27+1344t26+384t25+1920t24+768t23+832t22+1536t21+256t20+768t19+512t18+256t16)*x drawTropicalCurve(f2,"max"); /////////////////// // XZ-projection // /////////////////// poly B5 = newP2(B5); poly B4 = newP2(B4); poly B34 = newP2(B34); poly B2 = newP2(B2); poly B3 = B34 + B4; poly g2 = substitute(f2, y, y+B3*B4*B5*x-B5*x^2); // g2; // -x5+(t32+9t20+4t15+4t12+5t10+16t8+12t7+8t4)*x4+(-t52-4t47-4t44-5t42-8t40-12t39-7t36-32t35+2t34-31t32-41t30-16t28-100t27-4t25-59t24-64t23-2t22-59t20-30t19-80t18-20t17-16t16-190t15-51t14-110t12-48t11+33t10)*x3+(-2t2-2)*x2y+(t62+4t59+4t57+3t56+18t54+3t52+28t51+8t50+16t49+12t48+28t47+39t46+32t45+10t44+36t43+139t42-24t41+32t40+212t39+128t37+88t36+32t35+312t34+64t33-64t32+288t31+248t30-192t29+112t28+352t27-128t26+256t25+128t24-64t23+624t22-224t20+576t19-80t18-384t17+128t16-192t15-256t14-128t12)*x2+(2t17+2t15+4t14+8t12+4t10+12t9+12t7+8t6+8t4)*xy+y2+(t66+2t64+4t63+t62+12t61+4t60+12t59+28t58+4t57+48t56+32t55+36t54+88t53+36t52+112t51+92t50+120t49+152t48+144t47+276t46+128t45+400t44+304t43+272t42+704t41+208t40+704t39+688t38+384t37+1024t36+576t35+864t34+832t33+896t32+896t31+704t30+1408t29+448t28+1280t27+1344t26+384t25+1920t24+768t23+832t22+1536t21+256t20+768t19+512t18+256t16)*x drawTropicalCurve(g2,"max"); /////////////////// // ZY-projection // /////////////////// ring s = (0,t),(x,y,z),dp; map P = r, x,y; poly ff= P(f2); poly B5 = P(B5); poly B4 = P(B4); poly B3 = P(B3); poly B34 = P(B34); ideal I = (ff,z-y+B3*B4*B5*x-B5*x^2); poly fnox= eliminate(I,x)[1]; // Replace z by y and y by x so that the pictures are not flipped. ring r2 = (0,t),(x,y),dp; setring(r2); map PP = s,0,x,y; poly newfnox = PP(fnox); // newfnox; // x5-5*x4y+10*x3y2-10*x2y3+5*xy4-y5+(t66+t64+16t54+16t52-t49-t47-2t46-4t44+95t42-6t41+97t40-6t39-2t38-t37+2t36-t35-4t34-6t32+258t30-18t29+256t28+t27-2t26+3t25+76t24-16t23+71t22+28t21-39t20+54t19+224t18-66t17+270t16-92t15-14t14+38t12+98t10+32t8)*x4+(-4t66-4t64-64t54-64t52+4t49+4t47+8t46+16t44-380t42+24t41-388t40+24t39+12t38+4t37+4t36+4t35+28t34+28t32-1032t30+72t29-1024t28-4t27+44t26-12t25-196t24+64t23-176t22-106t21+192t20-198t19-900t18+282t17-1092t16+374t15+108t14-12t13+36t12-36t11-208t10-36t9-88t8-12t7-24t6-8t4)*x3y+(6t66+6t64+96t54+96t52-6t49-6t47-12t46-24t44+570t42-36t41+582t40-36t39-22t38-6t37-18t36-6t35-54t34-46t32+1548t30-108t29+1536t28+6t27-102t26+18t25+186t24-96t23+156t22+153t21-324t20+279t19+1354t18-441t17+1650t16-567t15-214t14+30t13-242t12+90t11+132t10+90t9+112t8+30t7+100t6+60t4+20t2+4)*x2y2+(-4t66-4t64-64t54-64t52+4t49+4t47+8t46+16t44-380t42+24t41-388t40+24t39+16t38+4t37+16t36+4t35+40t34+32t32-1032t30+72t29-1024t28-4t27+80t26-12t25-88t24+64t23-68t22-100t21+228t20-180t19-904t18+300t17-1104t16+380t15+160t14-24t13+224t12-72t11-28t10-72t9-68t8-24t7-88t6-56t4-20t2-4)*xy3+(t66+t64+16t54+16t52-t49-t47-2t46-4t44+95t42-6t41+97t40-6t39-4t38-t37-4t36-t35-10t34-8t32+258t30-18t29+256t28+t27-20t26+3t25+22t24-16t23+17t22+25t21-57t20+45t19+226t18-75t17+276t16-95t15-40t14+6t13-56t12+18t11+7t10+18t9+17t8+6t7+22t6+14t4+5t2+1)*y4+(t108+2t106+t104+7t103+14t101+6t100+7t99+30t98+58t96+30t95+50t94+79t93+28t92+179t91+66t90+241t89+197t88+136t87+523t86+70t85+757t84+520t83+493t82+1202t81+316t80+1669t79+936t78+1624t77+1912t76+967t75+3466t74+636t73+4214t72+3075t71+2111t70+6937t69+1037t68+7438t67+4864t66+4714t65+8879t64+2711t63+11001t62+2556t61+10674t60+8177t59+3525t58+17945t57-592t56+15838t55+10876t54+3044t53+21793t52+366t51+16547t50+7562t49+7022t48+12688t47+142t46+15220t45-1191t44+7373t43+10626t42-6108t41+19118t40-1610t39+6840t38+13240t37-2932t36+9711t35+5726t34-4780t33+12307t32-6180t31+4858t30+3180t29-2673t28+7814t27+628t26+2660t25+7327t24-3232t23+7878t22-3120t21+3457t20-768t19+528t18)*x3+(-3t108-6t106-3t104-21t103-42t101-18t100-21t99-90t98-174t96-90t95-150t94-237t93-84t92-537t91-198t90-723t89-591t88-408t87-1569t86-210t85-2271t84-1560t83-1479t82-3606t81-948t80-5007t79-2808t78-4872t77-5736t76-2895t75-10398t74-1884t73-12630t72-9189t71-6261t70-20787t69-2943t68-22248t67-14400t66-13872t65-26501t64-7605t63-32775t62-7056t61-31374t60-24005t59-9279t58-53325t57+3584t56-46436t55-30928t54-6540t53-64135t52+2808t51-47833t50-19190t49-17326t48-35944t47+4878t46-44400t45+8709t44-20509t43-29150t42+22532t41-58878t40+11492t39-23152t38-36658t37+12056t36-33371t35-9198t34+9842t33-34081t32+21344t31-19258t30-3634t29+4071t28-22122t27-352t26-10150t25-18513t24+9504t23-21462t22+11988t21-8623t20+4920t19+616t18+1116t17+1776t16+192t15+744t14+128t12)*x2y+(3t108+6t106+3t104+21t103+42t101+18t100+21t99+90t98+174t96+90t95+150t94+237t93+84t92+537t91+198t90+723t89+591t88+408t87+1569t86+210t85+2271t84+1560t83+1479t82+3606t81+948t80+5007t79+2808t78+4872t77+5736t76+2892t75+10398t74+1872t73+12624t72+9171t71+6225t70+20775t69+2859t68+22215t67+14304t66+13737t65+26433t64+7341t63+32661t62+6750t61+31050t60+23742t59+8631t58+53070t57-4488t56+45897t55+30078t54+5244t53+63513t52-4761t51+46929t50+17442t49+15456t48+34884t47-7530t46+43770t45-11277t44+19704t43+27786t42-24636t41+59640t40-14823t39+24468t38+35127t37-13686t36+35490t35+5208t34-7593t33+32661t32-22746t31+21600t30+681t29-2097t28+21462t27-414t26+11235t25+16779t24-9408t23+20376t22-13302t21+7749t20-6228t19-1716t18-1674t17-2664t16-288t15-1116t14-192t12)*xy2+(-t108-2t106-t104-7t103-14t101-6t100-7t99-30t98-58t96-30t95-50t94-79t93-28t92-179t91-66t90-241t89-197t88-136t87-523t86-70t85-757t84-520t83-493t82-1202t81-316t80-1669t79-936t78-1624t77-1912t76-964t75-3466t74-624t73-4208t72-3057t71-2075t70-6925t69-953t68-7405t67-4768t66-4579t65-8811t64-2447t63-10887t62-2250t61-10350t60-7914t59-2877t58-17690t57+1496t56-15299t55-10026t54-1748t53-21171t52+1587t51-15643t50-5814t49-5152t48-11628t47+2510t46-14590t45+3759t44-6568t43-9262t42+8212t41-19880t40+4941t39-8156t38-11709t37+4562t36-11830t35-1736t34+2531t33-10887t32+7582t31-7200t30-227t29+699t28-7154t27+138t26-3745t25-5593t24+3136t23-6792t22+4434t21-2583t20+2076t19+572t18+558t17+888t16+96t15+372t14+64t12)*y3+(-t135-3t133-6t132-3t131-26t130-12t129-42t128-85t127-36t126-213t125-145t124-255t123-541t122-282t121-986t120-846t119-1150t118-2070t117-1563t116-3438t115-2994t114-4743t113-5942t112-5925t111-11026t110-7902t109-15830t108-15964t107-16311t106-30491t105-20002t104-39474t103-38568t102-40466t101-63232t100-49300t99-82363t98-69202t97-97049t96-105774t95-93837t94-166140t93-95792t92-188418t91-175886t90-139954t89-276725t88-147539t87-268815t86-247230t85-226254t84-307926t83-217355t82-356967t81-174796t80-368547t79-265014t78-152139t77-488944t76-21511t75-360004t74-300237t73-25112t72-409171t71-86192t70-163817t69-153776t68-162019t67+39504t66-88602t65-138756t64+337658t63-289214t62+203422t61+188956t60-262334t59+277508t58-59288t57-161428t56-1608t55+12576t54-471936t53+103968t52-155104t51-657776t50+468832t49-756640t48-116320t47+175904t46-893968t45+372832t44-503984t43-341504t42+120800t41-603456t40+43552t39-268512t38-223648t37-35904t36-214112t35-26816t34-92672t33-38208t32-23552t31-22528t30-3072t29-7168t28-1024t26)*x2+(2t135+6t133+12t132+6t131+52t130+24t129+84t128+170t127+72t126+426t125+290t124+510t123+1082t122+564t121+1972t120+1692t119+2300t118+4140t117+3126t116+6876t115+5988t114+9486t113+11884t112+11850t111+22052t110+15804t109+31660t108+31926t107+32622t106+60972t105+39992t104+78928t103+77060t102+80888t101+126264t100+98362t99+164430t98+137572t97+193532t96+209962t95+185716t94+330220t93+186694t92+373128t91+344172t90+270334t89+543974t88+276212t87+521826t86+467940t85+420404t84+582612t83+379968t82+665062t81+274078t80+655008t79+437496t78+172820t77+860998t76-136212t75+546722t74+396608t73-215172t72+591208t71-167938t70+24042t69-49564t68-96322t67-440240t66-323444t65-125516t64-1185794t63+95960t62-850542t61-967920t60+182102t59-1160720t58-273690t57-46808t56-604618t55-140760t54+368604t53-468768t52+162180t51+759988t50-847204t49+1125416t48+58084t47-285448t46+1409568t45-591128t44+872632t43+601840t42-95384t41+1065904t40+37784t39+551392t38+449536t37+172800t36+417168t35+116912t34+211504t33+94048t32+78256t31+50592t30+21568t29+18848t28+4288t27+4736t26+576t25+896t24+128t22)*xy+(-t135-3t133-6t132-3t131-26t130-12t129-42t128-85t127-36t126-213t125-145t124-255t123-541t122-282t121-986t120-846t119-1150t118-2070t117-1563t116-3438t115-2994t114-4743t113-5942t112-5925t111-11026t110-7902t109-15830t108-15963t107-16311t106-30486t105-19996t104-39464t103-38530t102-40444t101-63132t100-49181t99-82215t98-68786t97-96766t96-104981t95-92858t94-165110t93-93347t92-186564t91-172086t90-135167t89-271987t88-138106t87-260913t86-233970t85-210202t84-291306t83-189984t82-332531t81-137039t80-327504t79-218748t78-86410t77-430499t76+68106t75-273361t74-198304t73+107586t72-295604t71+83969t70-12021t69+24782t68+48161t67+220120t66+161722t65+62758t64+592897t63-47980t62+425271t61+483960t60-91051t59+580360t58+136845t57+23404t56+302309t55+70380t54-184302t53+234384t52-81090t51-379994t50+423602t49-562708t48-29042t47+142724t46-704784t45+295564t44-436316t43-300920t42+47692t41-532952t40-18892t39-275696t38-224768t37-86400t36-208584t35-58456t34-105752t33-47024t32-39128t31-25296t30-10784t29-9424t28-2144t27-2368t26-288t25-448t24-64t22)*y2+(-t156-6t154-8t153-15t152-58t151-44t150-180t149-247t148-342t147-935t146-817t145-2079t144-2902t143-3445t142-7864t141-7412t140-14389t139-20127t138-22542t137-43780t136-44138t135-72401t134-97592t133-111172t132-185227t131-195058t130-295566t129-369109t128-440627t127-653088t126-690081t125-1021872t124-1177588t123-1445498t122-1995385t121-2071504t120-3007533t119-3292005t118-4042105t117-5275480t116-5467708t115-7601676t114-8058950t113-9931469t112-12060694t111-12757334t110-16910502t109-17192900t108-21691934t107-24330784t106-26121424t105-33603192t104-32463148t103-41715055t102-44050896t101-47245488t100-58909784t99-55252568t98-70320072t97-70542672t96-76744536t95-89728472t94-83759216t93-105361416t92-97409872t91-111559048t90-119945056t89-109787056t88-141077888t87-116418232t86-140942768t85-142369088t84-123816608t83-163552528t82-122321984t81-151842384t80-143861888t79-122419376t78-157276320t77-107041056t76-141701984t75-112574400t74-103061440t73-125806464t72-64991744t71-116503280t70-62702848t69-64338688t68-89258624t67-14652160t66-79497472t65-24594304t64-19483392t63-55593344t62+15693568t61-36451328t60-5487616t59+10030208t58-23360512t57+21174016t56-4521984t55+3574784t54+15853056t53-2522624t52+13775360t51+5044224t50+4703232t49+8304640t48+1996800t47+4999424t46+2404352t45+1761280t44+1845248t43+573440t42+802816t41+260096t40+204800t39+114688t38+24576t37+32768t36+4096t34)*x+(t156+6t154+8t153+15t152+58t151+44t150+180t149+247t148+342t147+935t146+817t145+2079t144+2902t143+3445t142+7864t141+7412t140+14389t139+20127t138+22542t137+43780t136+44138t135+72401t134+97592t133+111172t132+185227t131+195058t130+295566t129+369109t128+440627t127+653088t126+690081t125+1021872t124+1177588t123+1445498t122+1995385t121+2071504t120+3007533t119+3292005t118+4042105t117+5275480t116+5467708t115+7601676t114+8058950t113+9931469t112+12060694t111+12757334t110+16910502t109+17192900t108+21691934t107+24330784t106+26121424t105+33603192t104+32463148t103+41715055t102+44050896t101+47245488t100+58909784t99+55252568t98+70320072t97+70542672t96+76744536t95+89728472t94+83759216t93+105361416t92+97409872t91+111559048t90+119945056t89+109787056t88+141077888t87+116418232t86+140942768t85+142369088t84+123816608t83+163552528t82+122321984t81+151842384t80+143861888t79+122419376t78+157276320t77+107041056t76+141701984t75+112574400t74+103061440t73+125806464t72+64991744t71+116503280t70+62702848t69+64338688t68+89258624t67+14652160t66+79497472t65+24594304t64+19483392t63+55593344t62-15693568t61+36451328t60+5487616t59-10030208t58+23360512t57-21174016t56+4521984t55-3574784t54-15853056t53+2522624t52-13775360t51-5044224t50-4703232t49-8304640t48-1996800t47-4999424t46-2404352t45-1761280t44-1845248t43-573440t42-802816t41-260096t40-204800t39-114688t38-24576t37-32768t36-4096t34)*y drawTropicalCurve(newfnox,"max");