Image:1d choisi parmi 3 differents.png
Un article de Wikipédia, l'encyclopédie libre.

1d_choisi_parmi_3_differents.png (610 × 461 pixels • taille du fichier : 6 ko • type MIME : image/png)
Ce fichier et les informations de sa page de description sont présents sur Wikimedia Commons. |
![]() |
This Math image should be recreated using vector graphics as an SVG file. This has several advantages; see Commons:Images for cleanup for more information. If an SVG form of this image is already available, please upload it. After uploading an SVG, replace this template with template {{SupersededSVG|new image name.svg}} in this image. |
Català | Česky | Dansk | Deutsch | English | Esperanto | Español | Français | Italiano | 日本語 | 한국어 | Nederlands | Polski | Português | Русский | العربية | 正體中文 | +/- |
[edit] Summary
On jette trois dés pouvant être différents (par exemple 1d4, 1d6 et 1d8), et on retient le meilleur score (système utilisé dans le jeu de rôle Usagi Yojimbo). Le graphique du haut indique la probabilité de faire une valeur. Le graphique du bas indique la probabilité d'atteindre ou de dépasser une valeur.
Three dice, possibly different (e.g. 1d4, 1d6 and 1d8), are thrown and only the best result is kept (system used in the Usagi Yojimbo roleplaying game). The top figure shows the probability to get a value. The bottom figure shows the probability to have a result equal or better than a value.
Auteur/author : Christophe Dang Ngoc Chan (cdang)
réalisé avec/made with Scilab
clear; clf; resultat=zeros(12,12,12,12); for imax=4:2:12 for jmax=imax:2:12 for kmax=jmax:2:12 for i=1:imax for j=1:jmax for k=1:kmax ijkmax=max(i,j,k); resultat(imax,jmax,kmax,ijkmax) = resultat(imax,jmax,kmax,ijkmax) +1; end end end end end end // 3d4 somme444 = sum(resultat(4,4,4,:)); for i=1:4 y444(i)=100*resultat(4,4,4,i)/somme444; end z444(4)=y444(4); for i=3:-1:1 z444(i)=z444(i+1)+y444(i); end // 2d4+1d6 somme446 = sum(resultat(4,4,6,:)); for i=1:6 y446(i)=100*resultat(4,4,6,i)/somme446; end z446(6)=y446(6); for i=5:-1:1 z446(i)=z446(i+1)+y446(i); end // 1d4+2d6 somme466 = sum(resultat(4,6,6,:)); for i=1:6 y466(i)=100*resultat(4,6,6,i)/somme466; end z466(6)=y466(6); for i=5:-1:1 z466(i)=z466(i+1)+y466(i); end // 1d4+1d6+1d8 somme468 = sum(resultat(4,6,8,:)); for i=1:8 y468(i)=100*resultat(4,6,8,i)/somme468; end z468(8)=y468(8); for i=7:-1:1 z468(i)=z468(i+1)+y468(i); end // Tracé subplot(2,1,1) plot2d(1:4,y444,rect=[1,0,8,60],style=1) plot2d(1:6,y446,rect=[1,0,8,60],style=2) plot2d(1:6,y466,rect=[1,0,8,60],style=3) plot2d(1:8,y468,rect=[1,0,8,60],style=4) xstring(4.1,55,'3d4') xstring(6,12,'2d4+1d6') xstring(6,32,'1d4+2d6') xstring(7,15,'1d4+1d6+1d8') xtitle('Probabilité d''obtenir une valeur','rés.','%') subplot(2,1,2) plot2d(1:4,z444,rect=[1,0,8,100],style=1) plot2d(1:6,z446,rect=[1,0,8,100],style=2) plot2d(1:6,z466,rect=[1,0,8,100],style=3) plot2d(1:8,z468,rect=[1,0,8,100],style=4) xstring(3.5,55,'3d4') xstring(6,10,'2d4+1d6') xstring(5.7,25,'1d4+2d6') xstring(7,30,'1d4+1d6+1d8') xtitle('Probabilité d''atteindre ou de dépasser une valeur','rés.','%')
[edit] Licensing
Pages contenant l’image
Les pages ci-dessous contiennent cette image :