Files
2d_Polynomials/polynome.h
ALittlePatate fdcdabebc1 added args to the program
you can turn on/off colors, and set the graph size
2022-09-03 16:32:19 +02:00

33 lines
636 B
C

typedef struct Poly {
float a;
float b;
float c;
float delta;
float sx; //sommet x
float sy; //sommet y
float x1;
float x2;
float x0;
} Poly;
enum STATUS {
OK,
FAIL
};
enum STATUS Calcul_Delta(Poly* poly);
enum STATUS Calcul_x1_x2(Poly* poly);
enum STATUS Calcul_x0(Poly* poly);
enum STATUS Calcul_Sommet(Poly* poly);
enum STATUS Calcul_Fonction(Poly* poly, float x, float *out);
enum STATUS Calcul_Derivee(Poly* poly, float x, float *out);
int LONGUEUR_X = 20;
int LONGUEUR_Y = 20;
void Dessiner_Separateur();
int use_colors = false;
enum STATUS Dessiner_Graph(Poly* poly);
int main();