$(function(){
try {
var separateur = "<br/><br/>";
dvjh.separateur(separateur);
var s = [];
s.push(dvjh.infos() + "<br/>");
s.push(dvjh.math.infos());
$("#affiche").append("<p>" + s.join(separateur) + "</p>");
$("#affiche").append("<br/><p>Nombre de Fibonacci :<br/> dvjh.math.fib(100) = " + dvjh.math.fib(100) + "</p>");
$("#affiche").append("<br/><p>Nombre d'or à la puissance n (utilise dvjh.math.fib) :<br/> dvjh.math.phi(2) = " + dvjh.math.phi(2) +
"<br/>dvjh.math.phi(20) = " + dvjh.math.phi(20) + "</p>");
var a = -7;
var b = 3;
var k = 8;
$("#affiche").append("<br/><p>Pour a = -7, b = 3 et k = 8 :<br/> dvjh.math.modulo(a,b) = " +
dvjh.math.modulo(a,b) + "<br/>a%b = " + a%b + "</p>");
$("#affiche").append("<br/><p>mod(x, n) = mod(x + k.n, n), quel que soit l'entier k (positif ou négatif).</p>");
$("#affiche").append("<br/><p>Pour a = -7, b = 3 et k = 8 :<br/> dvjh.math.modulo(a+k*b,b) = " +
dvjh.math.modulo(a+k*b,b) + "<br/>(a+k*b)%b = " + (a+k*b)%b + "</p>");
s = [];
s.push(dvjh.math.statistic.infos());
$("#affiche").append("<p>" + s.join(separateur) + "</p>");
$("#affiche").append("<br/><p>dvjh.math.statistic.fact(100) = " +
dvjh.math.statistic.fact(100) + "</p>");
$("#affiche").append("<br/><p>dvjh.math.statistic.arran(100,3) = " +
dvjh.math.statistic.arran(100,3) + "</p>");
$("#affiche").append("<br/><p>dvjh.math.statistic.combi(100,3) = " +
dvjh.math.statistic.combi(100,3) + "</p>");
}
catch(exc){
if (typeof dvjh == "undefined") {
//affiche soit l'erreur classique soit dvjh.exception()
alert(exc + '\n' + exc.message);
} else {
//affiche soit l'erreur classique soit dvjh.exception()
dvjh.displayException(exc);
}
}
});