File:Ordinal ww.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 512 × 384 pixels. Other resolutions: 320 × 240 pixels | 640 × 480 pixels | 1,024 × 768 pixels | 1,280 × 960 pixels | 2,560 × 1,920 pixels.
Original file (SVG file, nominally 512 × 384 pixels, file size: 141 KB)
File information
Structured data
Captions
Summary
[edit]DescriptionOrdinal ww.svg | |
Date | |
Source | Own work based on: Ordinal ww.svg |
Author |
Original: Vector: |
SVG development InfoField | This vector image was created with an unknown SVG tool. |
Java Source Code
[edit]// 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.
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.PrintWriter;
public class Ordinal
{
public static void main(String[] args)
{
try{
File output = new File("ordinal_ww.svg");
FileWriter fw = new FileWriter(output);
PrintWriter pw = new PrintWriter(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...
double magic_frac = 0.875; // the length ratio between each pair of segments
double min_l = 0.1; // the least length of each segment
double x=1.0, y=0.0, l=384.0;
double L=l; // restored length after each loop
do{
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 (Exception e){}
}
}
Licensing
[edit]I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 09:22, 4 August 2015 | 512 × 384 (141 KB) | IkamusumeFan (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
The following 3 pages use this file:
File usage on other wikis
The following other wikis use this file:
- Usage on ca.wikipedia.org
- Usage on en.wikipedia.org
- Usage on fi.wikipedia.org
- Usage on ko.wikipedia.org
- Usage on meta.wikimedia.org
- Usage on th.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Width | 512 |
---|---|
Height | 384 |