לדלג לתוכן

קובץ:RationalRepresentation.pdf

תוכן הדף אינו נתמך בשפות אחרות.
מתוך ויקיפדיה, האנציקלופדיה החופשית

לקובץ המקורי(1,047 × 1,047 פיקסלים, גודל הקובץ: 7 ק"ב, סוג MIME‏: application/pdf)

ויקישיתוף זהו קובץ שמקורו במיזם ויקישיתוף. תיאורו בדף תיאור הקובץ המקורי (בעברית) מוצג למטה.

תקציר

תיאור
English: Representation of rational numbers (Q) as pairs of integers, equivalent pairs on the same line.
Français : Représentation des nombres rationnels comme des paires de nombres entiers, les paires équivalentes sur le même ligne.
תאריך יצירה
מקור נוצר על־ידי מעלה היצירה
יוצר TomT0m
קיימת תמונה חדשה תמונה זו בגרסה וקטורית בפורמט "SVG". יש להחליף את התמונה הנוכחית בתמונה החדשה.

File:RationalRepresentation.pdf → File:Rational Representation.svg


בשפות אחרות
Alemannisch  Bahasa Indonesia  Bahasa Melayu  British English  català  čeština  dansk  Deutsch  eesti  English  español  Esperanto  euskara  français  Frysk  galego  hrvatski  Ido  italiano  lietuvių  magyar  Nederlands  norsk bokmål  norsk nynorsk  occitan  Plattdüütsch  polski  português  português do Brasil  română  Scots  sicilianu  slovenčina  slovenščina  suomi  svenska  Tiếng Việt  Türkçe  vèneto  Ελληνικά  беларуская (тарашкевіца)  български  македонски  нохчийн  русский  српски / srpski  татарча/tatarça  українська  ქართული  հայերեն  বাংলা  தமிழ்  മലയാളം  ไทย  한국어  日本語  简体中文  繁體中文  עברית  العربية  فارسی  +/−
New SVG image

Source of the file, in the en:asymptote graphic programming language: fr:Utilisateur:TomT0m/RationalRepresentation.asy

import settings;
import graph;
import math;
 
 
pdfviewer="/usr/bin/evince";
psviewer="evince";
 

// parameters

int num=10;
 
 
int gcd(int a,int b){
	if(b==0){
		return a;
	}else{
		return gcd(b,a-quotient(a,b)*b);
	}
}
bool isPrimeWith(int a,int b){
	return gcd(a,b)==1;
}

 
pen color_rational(int x,int y){

	if(y==0){
		return white;
	}else{
		real ratio = x
/y;
		return rgb(0.5*(1+ratio),0.7*(1+ratio),0.3*(1-ratio));
	}
}
unitsize(2,2);
 
picture damier;
// unitsize(damier,1,1);
size(damier,5000,5000,(-100,-100),(100,100));
 
dot(damier,(0,0));
dot(damier,(-num,-num),invisible);
dot(damier,(num,num),invisible);
 
 
 
for(int x=-num; x<=num;++x){	
 
	for(int y=-num; y<=num;++y){
 
		
		pen p=color_rational(x,y);
 
		if(y>0){
			pair far;
			if(isPrimeWith(abs(x),abs(y)) ){
				far=(x*100,y*100);
				drawline(damier,(0,0),far,p);
			}
		}

		if(y==0){
 
			dot(damier,(x,y));
			dot(damier,(x,y),rgb(0.9,0.9,0.9));

		}else
			dot(damier,(x,y),p);
 
	}
}

dot(damier,(0,0));
dot(damier,(0,0),rgb(0.9,0.9,0.9));
add(damier.fit(),(0,0));
// drawing the equivalent classes

רישיון

Public domain ברצוני, בעלי זכויות היוצרים על יצירה זו, לשחרר יצירה זו לנחלת הכלל. זה תקף בכל העולם.
יש מדינות שבהן הדבר אינו אפשרי על פי חוק, אם כך:
אני מעניק לכל אחד את הזכות להשתמש בעבודה זו לכל מטרה שהיא, ללא תנאים כלשהם, אלא אם כן תנאים כאלה נדרשים על פי חוק.

כיתובים

נא להוסיף משפט שמסביר מה הקובץ מייצג

פריטים שמוצגים בקובץ הזה

מוצג

היסטוריית הקובץ

ניתן ללחוץ על תאריך/שעה כדי לראות את הקובץ כפי שנראה באותו זמן.

תאריך/שעהתמונה ממוזערתממדיםמשתמשהערה
נוכחית00:59, 12 בדצמבר 2009תמונה ממוזערת לגרסה מ־00:59, 12 בדצמבר 2009‪1,047 × 1,047‬ (7 ק"ב)TomT0m{{Information |Description={{en|1=Representation of rational numbers (Q) as pairs of integers, equivalent pairs on the same line.}} {{fr|1=Représentation des nombres rationnels comme des paires de nombres entiers, les paires équivalentes sur le même li

אין בוויקיפדיה דפים המשתמשים בקובץ זה.

שימוש גלובלי בקובץ

אתרי הוויקי השונים הבאים משתמשים בקובץ זה:

מטא־נתונים