Testons l'exécution du programme :
./test
f(x) drawer
x = -10 => f(x) = 98
x = -9.8 => f(x) = 94.04
x = -9.6 => f(x) = 90.16
x = -9.4 => f(x) = 86.36
x = -9.2 => f(x) = 82.64
x = -9 => f(x) = 79
x = -8.8 => f(x) = 75.44
x = -8.6 => f(x) = 71.96
x = -8.4 => f(x) = 68.56
x = -8.2 => f(x) = 65.24
x = -8 => f(x) = 62
x = -7.8 => f(x) = 58.84
x = -7.6 => f(x) = 55.76
x = -7.4 => f(x) = 52.76
x = -7.2 => f(x) = 49.84
x = -7 => f(x) = 47
x = -6.8 => f(x) = 44.24
x = -6.6 => f(x) = 41.56
x = -6.4 => f(x) = 38.96
x = -6.2 => f(x) = 36.44
x = -6 => f(x) = 34
x = -5.8 => f(x) = 31.64
x = -5.6 => f(x) = 29.36
x = -5.4 => f(x) = 27.16
x = -5.2 => f(x) = 25.04
x = -5 => f(x) = 23
x = -4.8 => f(x) = 21.04
x = -4.6 => f(x) = 19.16
x = -4.4 => f(x) = 17.36
x = -4.2 => f(x) = 15.64
x = -4 => f(x) = 14
x = -3.8 => f(x) = 12.44
x = -3.6 => f(x) = 10.96
x = -3.4 => f(x) = 9.56
x = -3.2 => f(x) = 8.24
x = -3 => f(x) = 7
x = -2.8 => f(x) = 5.84
x = -2.6 => f(x) = 4.76
x = -2.4 => f(x) = 3.76
x = -2.2 => f(x) = 2.84
x = -2 => f(x) = 2
x = -1.8 => f(x) = 1.24
x = -1.6 => f(x) = 0.56
x = -1.4 => f(x) = -0.04
x = -1.2 => f(x) = -0.56
x = -1 => f(x) = -1
x = -0.8 => f(x) = -1.36
x = -0.6 => f(x) = -1.64
x = -0.4 => f(x) = -1.84
x = -0.2 => f(x) = -1.96
x = 0 => f(x) = -2
x = 0.2 => f(x) = -1.96
x = 0.4 => f(x) = -1.84
x = 0.6 => f(x) = -1.64
x = 0.8 => f(x) = -1.36
x = 1 => f(x) = -1
x = 1.2 => f(x) = -0.56
x = 1.4 => f(x) = -0.04
x = 1.6 => f(x) = 0.56
x = 1.8 => f(x) = 1.24
x = 2 => f(x) = 2
x = 2.2 => f(x) = 2.84
x = 2.4 => f(x) = 3.76
x = 2.6 => f(x) = 4.76
x = 2.8 => f(x) = 5.84
x = 3 => f(x) = 7
x = 3.2 => f(x) = 8.24
x = 3.4 => f(x) = 9.56
x = 3.6 => f(x) = 10.96
x = 3.8 => f(x) = 12.44
x = 4 => f(x) = 14
x = 4.2 => f(x) = 15.64
x = 4.4 => f(x) = 17.36
x = 4.6 => f(x) = 19.16
x = 4.8 => f(x) = 21.04
x = 5 => f(x) = 23
x = 5.2 => f(x) = 25.04
x = 5.4 => f(x) = 27.16
x = 5.6 => f(x) = 29.36
x = 5.8 => f(x) = 31.64
x = 6 => f(x) = 34
x = 6.2 => f(x) = 36.44
x = 6.4 => f(x) = 38.96
x = 6.6 => f(x) = 41.56
x = 6.8 => f(x) = 44.24
x = 7 => f(x) = 47
x = 7.2 => f(x) = 49.84
x = 7.4 => f(x) = 52.76
x = 7.6 => f(x) = 55.76
x = 7.8 => f(x) = 58.84
x = 8 => f(x) = 62
x = 8.2 => f(x) = 65.24
x = 8.4 => f(x) = 68.56
x = 8.6 => f(x) = 71.96
x = 8.8 => f(x) = 75.44
x = 9 => f(x) = 79
x = 9.2 => f(x) = 82.64
x = 9.4 => f(x) = 86.36
x = 9.6 => f(x) = 90.16
x = 9.8 => f(x) = 94.04
Fermeture du plugin
Tout fonctionne normalement.
|