Jump to content

File:Ordinal ww.svg

Page contents not supported in other languages.
Frae Wikipedia, the free beuk o knawledge

Oreeginal file (SVG file, nominallie 512 × 384 pixels, file size: 141 KB)

This file is fae Wikimedia Commons n micht be uised bi ither waurks. The descreeption oan its file descreeption page thaur is shawn ablo.

Ootline

Descreeption
English: svg version of Omega squared.png by Gro-Tsen.
Date
Soorce Own work based on: Ordinal ww.svg
Author
Original:
Vector:
SVG genesis
InfoField
 
The SVG code is valid.
 
This vector image was created with unknown tool.

Java Source Code

// 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){}
	}
}

Licensin

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alik
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
Ye are free:
  • tae share – tae copy, distribute an transmit the wirk
  • tae remix – tae adapt the wirk
Unner the follaein condeetions:
  • attribution – Ye must attribute the wirk in the manner specified bi the author or licensor (but nae in ony way that suggests that thay endorse ye or yer uise o the wirk).
  • share alik – If ye alter, transform, or big upon this wirk, ye mey distribute the resultin wirk anly unner the same or seemilar license tae this ane.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

File history

Clap oan ae date/time fer tae see the file aes it kithed at that time.

Date/TimeThummnailDimensionsUiserComment
current09:22, 4 August 2015Thumbnail fer version aes o 09:22, 4 August 2015512 × 384 (141 KB)IkamusumeFanUser created page with UploadWizard

The'r nae pages airts tae this eimage.

Global file uisage

The follaein ither wikis uise this file:

Metadata