File:Numeri Coprimi.svg
Size of this PNG preview of this SVG file: 731 × 551 pixels. Other resolutions: 319 × 240 pixels | 637 × 480 pixels | 1,019 × 768 pixels | 1,280 × 965 pixels | 2,560 × 1,930 pixels.
Original file (SVG file, nominally 731 × 551 pixels, file size: 339 KB)
File information
Structured data
Captions
Summary
editDescriptionNumeri Coprimi.svg |
Italiano: Grafico di tutte le coppie (x,y) per cui (x ed y sono coprimi)
Realizzato con Python e MatPlotLib. #!/usr/bin/python
from pylab import *
def gcd(a,b):
r = a%b
while r!=0:
a,b,r = b,r,b%r
return b
def Coprime(x,y):
return gcd(x,y)==1
X,Y = [],[]
for i in range(1,51):
for j in range(1,51):
if Coprime(i,j):
X.append(i)
Y.append(j)
plot(X,Y,'b.')
show()
|
Date | |
Source | Own work |
Author | Gabry |
Licensing
editI, the copyright holder of this work, hereby publish it under the following license:
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.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 12:22, 11 February 2012 | 731 × 551 (339 KB) | Gabry (talk | contribs) |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.