Sommaire
Installer ce fichier dans votre répertoire de travail.
fa.h
/* --------------------------------- */ /* save as fa.h */ /* --------------------------------- */ double a_n( int n) { return(( n / (3.*n+2.) )); } char a_neq[] = "n / (3*n+2)"; /* --------------------------------- */ /* --------------------------------- */
fb.h
/* --------------------------------- */ /* save as fb.h */ /* --------------------------------- */ double a_n( int n) { return(( (2.*n-1.)/(3.*n+2.) )); } char a_neq[] = "(2.*n-1.)/(3.*n+2.)"; /* --------------------------------- */ /* --------------------------------- */
fc.h
/* --------------------------------- */ /* save as fc.h */ /* --------------------------------- */ double a_n( int n) { return(( pow(1.+1./n,n) )); } char a_neq[] = "(1.+1./n)^n"; /* --------------------------------- */ /* --------------------------------- */
fd.h
/* --------------------------------- */ /* save as fd.h */ /* --------------------------------- */ double a_n( int n) { return(( pow(1./2.,n) )); } char a_neq[] = "(1./2.)^n"; /* --------------------------------- */ /* --------------------------------- */