File:Euclid's_Orchard.svg
From Wikipedia, the free encyclopedia
![File:Euclid's Orchard.svg](http://upload.wikimedia.org/wikipedia/commons/thumb/9/9e/Euclid%27s_Orchard.svg/356px-Euclid%27s_Orchard.svg.png)
Size of this PNG preview of this SVG file: 356 × 356 pixels. Other resolutions: 240 × 240 pixels | 480 × 480 pixels | 768 × 768 pixels | 1,024 × 1,024 pixels | 2,048 × 2,048 pixels.
Original file (SVG file, nominally 356 × 356 pixels, file size: 34 KB)
![]() | This is a file from the Wikimedia Commons. Information from its description page there is shown below. Commons is a freely licensed media file repository. You can help. |
Summary
DescriptionEuclid's Orchard.svg |
English: Slice of one corner of Euclid's Orchard |
Date | |
Source | Own work |
Author | Glosser.ca |
SVG development InfoField | ![]() This vector image was created with Asymptote by dvisvgm. |
Source code InfoField | Asymptote codeint gcd(int a, int b) {
int t;
while(b > 0) {
t = a;
a = b;
b = t % b;
}
return a < 0 ? -a : a;
}
size(10cm,10cm);
int ndots = 6;
draw((0,0)--(ndots - 0.5,0),Arrow);
draw((0,0)--(0,ndots - 0.5),Arrow);
for(int i = 1; i < ndots; ++i) {
for(int j = 1; j < ndots; ++j) {
//Loop needed to ensure lines go behind all other objects
pair tree = (i, j);
if (gcd(i,j) == 1 ) {
draw((0,0)--tree,dotted);
}
}
}
for(int i = 1; i < ndots; ++i) {
for(int j = 1; j < ndots; ++j) {
pair tree = (i, j);
path circ = circle(tree, 0.04);
if(gcd(i, j) == 1) {
draw(circ, heavyblue);
fill(circ, heavyblue);
} else {
draw(circ, heavyred);
fill(circ, heavyred);
}
label("$\frac{"+string(i)+"}{"+string(i+j)+"}$", tree, NE);
}
}
|
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
![w:en:Creative Commons](https://upload.wikimedia.org/wikipedia/commons/thumb/7/79/CC_some_rights_reserved.svg/90px-CC_some_rights_reserved.svg.png)
![attribution](https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Cc-by_new_white.svg/24px-Cc-by_new_white.svg.png)
![share alike](https://upload.wikimedia.org/wikipedia/commons/thumb/d/df/Cc-sa_white.svg/24px-Cc-sa_white.svg.png)
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported 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.
Captions
Add a one-line explanation of what this file represents
Items portrayed in this file
depicts
29 December 2012
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 04:32, 29 December 2012 | ![]() | 356 × 356 (34 KB) | Rayhem | User created page with UploadWizard |
File usage
The following pages on the English Wikipedia use this file (pages on other projects are not listed):
Global file usage
The following other wikis use this file:
- Usage on fr.wikipedia.org
- Usage on ja.wikipedia.org
- Usage on pt.wikipedia.org
- Usage on uk.wikipedia.org
Metadata
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
If the file has been modified from its original state, some details may not fully reflect the modified file.
Width | 284.528pt |
---|---|
Height | 284.528pt |
Retrieved from "https://en.wikipedia.org/wiki/File:Euclid%27s_Orchard.svg"