Mathc gnuplot/Animation : Tangente
Apparence
Soleil
[modifier | modifier le wikicode]N'oubliez pas les fichiers h de la librairie.
![]() |
c00a.c |
---|
/* ------------------------------------ */
/* Save as : c00a.c */
/* ------------------------------------ */
#include "v_a.h"
#include "y_o.h"
/* ------------------------------------ */
void fun(
double **U,
double step
)
{
int i=113;
int a=0;
for(;i--;)
{
(a) ? (a-=2):(a=60);
GO(U, step);
GO(U,-step);
TU(U, a*.1);
}
}
/* ------------------------------------ */
int main(void)
{
double **U = GINIT(-10.,10.,-10.,10.);
clrscrn();
fun(U,8.);
F_mR(U);
printf(" * open the file main.plt with Gnuplot.\n\n\n");
fflush(stdout);
getchar();
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Résultat dans gnuplot |
---|
![]() |