mirror of
https://github.com/BreizhHardware/TD-R.git
synced 2026-01-18 16:47:34 +01:00
- Added exercise sheets for Bernoulli experiments including probability of success, failure, and simulation of multiple experiments. - Added exercise sheets for calculating integrals using different methods such as rectangles, Simpson's rule, and the integrate function. - Added exercise sheets for binomial distribution including probability calculations and cumulative probability. - Added exercise sheets for calculating the cardinality of sets including unique elements and empty sets.
22 lines
493 B
Plaintext
22 lines
493 B
Plaintext
/* Fonction qui crée une requête de type XMLHttpRequest */
|
|
|
|
function getXMLHttpRequest() {
|
|
var xhr = null;
|
|
|
|
if (window.XMLHttpRequest || window.ActiveXObject) {
|
|
if (window.ActiveXObject) {
|
|
try {
|
|
xhr = new ActiveXObject("Msxml2.XMLHTTP");
|
|
} catch(e) {
|
|
xhr = new ActiveXObject("Microsoft.XMLHTTP");
|
|
}
|
|
} else {
|
|
xhr = new XMLHttpRequest();
|
|
}
|
|
} else {
|
|
alert("Votre navigateur ne gère par l'ajout dans une feuille d'exercices");
|
|
return null;
|
|
}
|
|
|
|
return xhr;
|
|
} |