-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
43 lines (41 loc) · 1.32 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
function main(){
const contenu=document.getElementById("contenu");
let imgisremoved=false;
$("#Matrices-Multiplication").click('click',function(){
// execute une des fct form2() pour afficher le contenu dans div #contenu,
removeimg(imgisremoved);
contenu.innerHTML="";
Form2("Multiplication AxB: ","multiplyMatrices");
})
$("#Matrice-inverse").click('click',function(){
removeimg(imgisremoved);
contenu.innerHTML="";
Form1("Inverse :","inverser");
})
$("#Matrices-add").click('click',function(){
removeimg(imgisremoved);
contenu.innerHTML="";
Form2("Addition A+B:","add");
})
$("#Matrice-Subtract").click('click',function(){
removeimg(imgisremoved);
contenu.innerHTML="";
Form2("Substraction A-B:","substract");
})
$("#Matrice-Transpose").click('click',function(){
removeimg(imgisremoved);
contenu.innerHTML="";
Form1("Transpose tA:","Transpose");
})
$("#Decomp-QR").click('click',function(){
removeimg(imgisremoved);
contenu.innerHTML="";
Form1("QR Decomposition :","qr");
})
$("#Solve").click('click',function(){
removeimg(imgisremoved);
contenu.innerHTML="";
Form3("Solve AX=b :","Solve");
})
}
main();