Sommaire


Installer et compiler ces fichiers dans votre répertoire de travail.

c00c.c
/* ---------------------------------- */
/* save as c00c.c                     */
/* ---------------------------------- */
#include "x_afile.h"
#include      "fc.h"
/* ---------------------------------- */
int main(void)
{
double i;

 clrscrn();
 printf(" Ratio Test for Absolute Convergence.        \n\n");
 printf(" Let S.a_n be with non zero-term series.     \n\n");
 printf(" lim n->oo |a_n+1|/|a_n| < 1      The series converges absolutely\n"
        "                                      and therefore converges.\n");
 printf(" lim n->oo |a_n+1|/|a_n| > 1, +oo The series diverge \n");
 printf(" lim n->oo |a_n+1|/|a_n| = 1      Use another test \n\n");
 stop();

 clrscrn();
 printf(" |a_n|   : n-> |%s|           \n",     a_neq);
 printf(" |a_n+1| : n-> |%s|         \n\n", a_npls1eq);
 printf(" c_n     : n-> |a_n+1|/|a_n|\n\n");

 for(i=1; i<10; i++)
     printf(" c_%.0f = %5.3f || c_%.0f = %5.3f ||\n", 
     i,    fabs(a_npls1(i   ))/fabs(a_n(i   )),
     i+10, fabs(a_npls1(i+10))/fabs(a_n(i+10)));
 
 printf(" \n\n\n"   
        " lim n->oo |a_n+1|/|a_n| > 1, +oo The series a_n diverge.\n\n");
 stop();

 return 0;
}
/* ---------------------------------- */
/* ---------------------------------- */


Exemple de sortie écran :

 Ratio Test for Absolute Convergence.                                       

 Let S.a_n be with non zero-term series.               

 lim n->oo |a_n+1|/|a_n| < 1      The series converges absolutely
                                      and therefore converges.
 lim n->oo |a_n+1|/|a_n| > 1, +oo The series diverge 
 lim n->oo |a_n+1|/|a_n| = 1      Use another test 

 Press return to continue.


Exemple de sortie écran :

 |a_n|   : n-> |(-1)**n *   (n    -3)!/  8**n|           
 |a_n+1| : n-> |(-1)**n *   ((n+1)-3)!/ 8**(n+1)|         

 c_n     : n-> |a_n+1|/|a_n|

 c_1 = 0.125 || c_11 = 1.125 ||
 c_2 = 0.125 || c_12 = 1.250 ||
 c_3 = 0.125 || c_13 = 1.375 ||
 c_4 = 0.250 || c_14 = 1.500 ||
 c_5 = 0.375 || c_15 = 1.625 ||
 c_6 = 0.500 || c_16 = 1.750 ||
 c_7 = 0.625 || c_17 = 1.875 ||
 c_8 = 0.750 || c_18 = 2.000 ||
 c_9 = 0.875 || c_19 = 2.125 ||
 


 lim n->oo |a_n+1|/|a_n| > 1, +oo The series a_n diverge.

 Press return to continue.