Mathc initiation/Fichiers c : c45c1a


Sommaire


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

Crystal Clear mimetype source c.png c181a.c
'
/* ---------------------------------- */
/* save as c181a.c                   */
/* ---------------------------------- */
#include "x_hfile.h"
#include      "fa.h"
/* ---------------------------------- */
int main(void)
{
double   a =  0.;
double   b =  PI/2;
int      n =  2*10;

double   j =  H;


 clrscrn();

 printf(" Evaluate the line integral\n\n");

 printf("    (\n" 
        " int(   f(x,y) ds = \n" 
        "    (C\n\n\n" 
        
        " is C has the parametrization :   \n\n" 
        " x = g(t);     y = h(t);     a < t =< b \n\n\n" 

        "    (                (b\n" 
        " int( f(x,y) ds = int(  f(g(t),h(t))  sqrt([g(t)'**2 + h(t)'**2]) dt \n"
        "    (C               (a\n\n\n");
 stop();

 clrscrn();

 printf(" Evaluate :\n\n");

 printf("    (\n");
 printf(" int(   (%s) ds = \n", feq);
 printf("    (C\n\n\n");

 printf(" is C has the parametrization :\n\n\n");
 printf(" x = %s;     y = %s;      %.1f < t =< %.1f \n\n\n", geq, heq, a, b);

 printf("    (b\n" 
        " int(   f(g(t),h(t))  sqrt([g(t)'**2 + h(t)'**2]) dt =  %+.3f\n"
        "    (a\n\n\n",  
      
         lineintegral_ds( f,g,h,
                          a,b,n,
                          j) );
 stop();

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


Évaluer l'intégrale curviligne en ds.


Exemple de sortie écran :

 Evaluate the line integral

    (
 int(   f(x,y) ds = 
    (C


 is C has the parametrization :   

 x = g(t);     y = h(t);     a < t =< b 


    (                (b
 int( f(x,y) ds = int(  f(g(t),h(t))  sqrt([g(t)'**2 + h(t)'**2]) dt 
    (C               (a


 Press return to continue.

Exemple de sortie écran :

 Evaluate :

    (
 int(   (x*y**2) ds = 
    (C


 is C has the parametrization :


 x = cos(t);     y = sin(t);      0.0 < t =< 1.6 


    (b
 int(   f(g(t),h(t))  sqrt([g(t)'**2 + h(t)'**2]) dt =  +0.333
    (a


 Press return to continue.