File:Somme tirages des polyedriques.svg
Original file (SVG file, nominally 514 × 396 pixels, file size: 42 KB)
Captions
Summary
[edit]DescriptionSomme tirages des polyedriques.svg |
Français : Fréquence d'apparition des valeurs pour la somme de tirage de dés polyédriques à 4, 6, 8, 10, 12 et 20 faces (d4 + d4 + d8 + d10 + d12 + d20). Illustration du théorème central limite. English: Frequency of occurrence of values for the sum of 4-, 6-, 8- 10- 12 and 20-sided polyheral dice (d4 + d4 + d8 + d10 + d12 + d20). Illustration of the central limit theorem. |
Date | |
Source | Own work |
Author | Cdang |
Scilab source
This media was created with Scilab, a free open-source software. Here is a listing of the Scilab source used to create this file. |
// Trace la fonction de densité de la moyenne de n tirages à pile ou face
// initialisation
clear;
des = [4, 6, 8, 10, 12, 20]; // liste des dés
N = prod(des); // nombre de tirages possibles
n = size(des, "c"); // nombre de dés
resultats = zeros(N, 1); // initialisation : résultats des tirages
nb_cases = N*n;
k = N; // pour chaque dé i, k est la taille d'une séries de valeurs identiques
l = 1; // pour chaque dé i, l est le nombre de séries
tic();
for i = 1:n // i-ème dé
d = des(i);
k = k/d;
for j = 1:l // j-ième série
indice_debut = (j-1)*k*d + 1
for m = 1:d // valeur m du dé
id1 = indice_debut + (m-1)*k;
resultats(id1:id1+k-1) = resultats(id1:id1+k-1) + m;
end
end
l = l*d;
end
disp(toc());
somme = resultats(:,1);
frequences_non_triees = tabul(somme);
frequences = gsort(frequences_non_triees, "lr", "i");
frequences(:,2) = frequences(:,2)/N; // normalisation des fréquences
// Programme principal
f1 = figure(1);
clf;
plot2d(frequences(:,1), frequences(:,2))
xtitle(["Tirages de dés polyédriques" ; "d4 + d6 + d8 + d10 + d12 + d20"],...
"Valeurs de la somme", "Fréquence")
Licensing
[edit]This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. | |
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 11:41, 18 June 2013 | 514 × 396 (42 KB) | Cdang (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on fr.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.
Short title | Fréquence des valeurs d'un tirage de dés polyédriques |
---|---|
Width | 514.09668 |
Height | 395.59564 |