Aller au contenu

Mathc initiation/002f

Un livre de Wikilivres.


Application

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

c00b.c
/* --------------------------------- */
/* save as c00b.c                    */
/* --------------------------------- */
#include  "x_hfile.h"
#include       "fb.h"
/* --------------------------------- */
int main(void)
{
double  M =  simpson_dzdydx(f,
                            uz, vz, LOOP,
                            sy, ty, LOOP,
                            ax, bx, LOOP);
 
 clrscrn();
 printf(" f : x,y,z -> %s\n\n", feq);

 printf(" v : x,y   -> %s  \n", veq); 
 printf(" u : x,y   -> %s\n\n", ueq);

 printf(" t : x     -> %s  \n", teq); 
 printf(" s : x     -> %s\n\n", seq);

 printf("An odd function with respect to x\n\n");
 
 printf("        (%+.0f  (%s  (%s    \n", bx, teq, veq);
 printf(" A = int( int( int( %s dzdydx = %.2f\n",feq, M);
 printf("        (%+.0f  (%s  (%s\n\n\n", ax, seq, ueq);

 printf(" Code Mathematica:\n\n"
        " integral x tan(x) sin(x) y z+tan(x) y**2 dz dy dx"
        " from (-1) to (+1) from (-2) to (+4) from (2) to (5)\n\n");

 stop();

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

Verifier avec mathematica : Free: wolframalpha.com

integral x tan(x) sin(x) y z+tan(x) y**2 dz dy dx from (-1) to (+1) from (-2) to (+4) from (2) to (5)

Exemple de sortie écran :

 f : x,y,z -> x tan(x) sin(x) y z+tan(x) y**2

 v : x,y   -> +5  
 u : x,y   -> +2

 t : x     -> +4  
 s : x     -> -2

An odd function with respect to x

        (+1  (+4  (+5    
 A = int( int( int( x tan(x) sin(x) y z+tan(x) y**2 dzdydx = -0.00
        (-1  (-2  (+2


 Code Mathematica:

 integral x tan(x) sin(x) y z+tan(x) y**2 dz dy dx from (-1) to (+1) from (-2) to (+4) from (2) to (5)

 Press return to continue.