Orihinal na file(SVG na file, nominal na 512 × 384 (na) pixel, pakadakula: 141 KB)
An sagunson na ini naggikan sa Wikimedia Commons asin mapuwedeng gamiton kan ibang mga proyekto. Pinapahiling tabi sa ibaba an deskripsyon na yaon sa sagunsong deskripsyon kan pahina.
Hali sa Wikimedia Commons an file na ito asin pwedeng magamit sa ibang proyekto. Mahihiling sa baba an paglaladawan sa pahina kan paglaladawan kan file kaini duman.
// Author: Ika, Date: 08/04/2015 -->// The following code can be used to generate the SVG image of ordinals \omega^2.// Anyone can copy and revise this code without any copyright concern.importjava.io.File;importjava.io.FileInputStream;importjava.io.FileOutputStream;importjava.io.FileWriter;importjava.io.PrintWriter;publicclassOrdinal{publicstaticvoidmain(String[]args){try{Fileoutput=newFile("ordinal_ww.svg");FileWriterfw=newFileWriter(output);PrintWriterpw=newPrintWriter(fw);pw.println("<?xml version=\"1.0\" standalone=\"no\"?>");pw.println("<!-- Author: Ika, Date: 08/04/2015 -->");pw.println("<!-- Anyone can copy and revise this code without any copyright concern. -->");pw.println("<svg width=\"512\" height=\"384\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">");pw.println("\n\t<g style=\"stroke:black; stroke-width:1\" >");// Draw the vertical lines...doublemagic_frac=0.875;// the length ratio between each pair of segmentsdoublemin_l=0.1;// the least length of each segmentdoublex=1.0,y=0.0,l=384.0;doubleL=l;// restored length after each loopdo{do{pw.println("\t\t<path d=\"m"+x+" "+y+" v"+l+"\" />");x+=l*(1-magic_frac)/6;y+=l*(1-magic_frac)/2;l*=magic_frac;}while(l>min_l);l=L*=magic_frac;y=(384-l)/2;}while(L>min_l);pw.println("\t</g>");pw.println("\n</svg>");fw.close();}catch(Exceptione){}}}
Paglisensya
I, the copyright holder of this work, hereby publish it under the following license:
maihiras – makokopya, maipapanao, asin maipapahiling an gibo
i-remix – ma-adapt an gibo
Sa irarom kan mga kondisyon na ini:
atribusyon – Dapat mong i-credit, itao an link kan lisensya, at itukdo kun may binago ini. Pwede mo ining gibuhon sa dawa anong rasonableng paagi, pero bako sa paaging ineendorso ka o an paggamit mo kan naglisensya.
share alike – Kun ire-remix mo, babaguhon, o madagdag sa materyal, kaipuhan mong ipanao an mga ambag mo sa irarom kan parehas o katulad na lisensya.