| ||||
Testons avec une expression : ./generatednumberlibdynamic f(x) drawer Expression de la fonction f(x) : x*x-2.0 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 parfaitement, comme tout à l'heure. Nous pouvons tester si les fichiers .c et .so du plugin ont bien été créé : ls autoPlugin.c autoPlugin.so CMakeCache.txt CMakeFiles cmake_install.cmake generatednumberlibdynamic Makefile Notre plugin a bien été créé et compilé. Testons avec une autre expression : ./generatednumberlibdynamic f(x) drawer Expression de la fonction f(x) : x*sin(x) x = -10 => f(x) = -5.44021 x = -9.8 => f(x) = -3.5915 x = -9.6 => f(x) = -1.67354 x = -9.4 => f(x) = 0.232889 x = -9.2 => f(x) = 2.05059 x = -9 => f(x) = 3.70907 x = -8.8 => f(x) = 5.14727 x = -8.6 => f(x) = 6.31582 x = -8.4 => f(x) = 7.17863 x = -8.2 => f(x) = 7.71399 x = -8 => f(x) = 7.91487 x = -7.8 => f(x) = 7.78864 x = -7.6 => f(x) = 7.35619 x = -7.4 => f(x) = 6.65044 x = -7.2 => f(x) = 5.71441 x = -7 => f(x) = 4.59891 x = -6.8 => f(x) = 3.35997 x = -6.6 => f(x) = 2.05617 x = -6.4 => f(x) = 0.745915 x = -6.2 => f(x) = -0.515154 x = -6 => f(x) = -1.67649 x = -5.8 => f(x) = -2.69469 x = -5.6 => f(x) = -3.53509 x = -5.4 => f(x) = -4.17293 x = -5.2 => f(x) = -4.59396 x = -5 => f(x) = -4.79462 x = -4.8 => f(x) = -4.78159 x = -4.6 => f(x) = -4.57098 x = -4.4 => f(x) = -4.18705 x = -4.2 => f(x) = -3.66062 x = -4 => f(x) = -3.02721 x = -3.8 => f(x) = -2.32506 x = -3.6 => f(x) = -1.59307 x = -3.4 => f(x) = -0.86884 x = -3.2 => f(x) = -0.186797 x = -3 => f(x) = 0.42336 x = -2.8 => f(x) = 0.937967 x = -2.6 => f(x) = 1.3403 x = -2.4 => f(x) = 1.62111 x = -2.2 => f(x) = 1.77869 x = -2 => f(x) = 1.81859 x = -1.8 => f(x) = 1.75293 x = -1.6 => f(x) = 1.59932 x = -1.4 => f(x) = 1.37963 x = -1.2 => f(x) = 1.11845 x = -1 => f(x) = 0.841471 x = -0.8 => f(x) = 0.573885 x = -0.6 => f(x) = 0.338785 x = -0.4 => f(x) = 0.155767 x = -0.2 => f(x) = 0.0397339 x = 0 => f(x) = 0 x = 0.2 => f(x) = 0.0397339 x = 0.4 => f(x) = 0.155767 x = 0.6 => f(x) = 0.338785 x = 0.8 => f(x) = 0.573885 x = 1 => f(x) = 0.841471 x = 1.2 => f(x) = 1.11845 x = 1.4 => f(x) = 1.37963 x = 1.6 => f(x) = 1.59932 x = 1.8 => f(x) = 1.75293 x = 2 => f(x) = 1.81859 x = 2.2 => f(x) = 1.77869 x = 2.4 => f(x) = 1.62111 x = 2.6 => f(x) = 1.3403 x = 2.8 => f(x) = 0.937967 x = 3 => f(x) = 0.42336 x = 3.2 => f(x) = -0.186797 x = 3.4 => f(x) = -0.86884 x = 3.6 => f(x) = -1.59307 x = 3.8 => f(x) = -2.32506 x = 4 => f(x) = -3.02721 x = 4.2 => f(x) = -3.66062 x = 4.4 => f(x) = -4.18705 x = 4.6 => f(x) = -4.57098 x = 4.8 => f(x) = -4.78159 x = 5 => f(x) = -4.79462 x = 5.2 => f(x) = -4.59396 x = 5.4 => f(x) = -4.17293 x = 5.6 => f(x) = -3.53509 x = 5.8 => f(x) = -2.69469 x = 6 => f(x) = -1.67649 x = 6.2 => f(x) = -0.515154 x = 6.4 => f(x) = 0.745915 x = 6.6 => f(x) = 2.05617 x = 6.8 => f(x) = 3.35997 x = 7 => f(x) = 4.59891 x = 7.2 => f(x) = 5.71441 x = 7.4 => f(x) = 6.65044 x = 7.6 => f(x) = 7.35619 x = 7.8 => f(x) = 7.78864 x = 8 => f(x) = 7.91487 x = 8.2 => f(x) = 7.71399 x = 8.4 => f(x) = 7.17863 x = 8.6 => f(x) = 6.31582 x = 8.8 => f(x) = 5.14727 x = 9 => f(x) = 3.70907 x = 9.2 => f(x) = 2.05059 x = 9.4 => f(x) = 0.232889 x = 9.6 => f(x) = -1.67354 x = 9.8 => f(x) = -3.5915 Fermeture du plugin Tout cela fonctionne très bien. | ||||
|