Aller au contenu

Mathc initiation/002e

Un livre de Wikilivres.


Application

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

c00a.c
/* --------------------------------- */
/* save as c00a.c                    */
/* --------------------------------- */
#include  "x_hfile.h"
#include       "fa.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("        (%+.1f (%s  (%s               \n", bx, teq, veq);
 printf(" A = int(  int( int( %s  dzdydx = %.2f\n",feq, M);
 printf("        (%+.1f (%s  (%s           \n\n\n", ax, seq, ueq);
 
 printf(" Code Mathematica:\n\n"
        " integral (x**3 z**2 + x y**2 z + x*y*z) dz dy dx"
        " from (-1) to (+1) from (-1) to (+4) from (2) to (5)\n\n");

 stop();

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

Verifier avec mathematica : Free: wolframalpha.com

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

Exemple de sortie écran :

 f : x,y,z -> x**3 z**2 + x y**2 z + x*y*z

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

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

An odd function with respect to x

        (+1.0 (+4  (+5               
 A = int(  int( int( x**3 z**2 + x y**2 z + x*y*z  dzdydx = 0.00
        (-1.0 (-1  (+2           


 Code Mathematica:

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

 Press return to continue.