14 lines
713 B
C
14 lines
713 B
C
/*****************************************************/
|
|
/*HEADERFIL FÖR MATTEMANNEN */
|
|
/*****************************************************/
|
|
|
|
#include <iostream.h> //för in och utmatning
|
|
#include <string.h> //för strcmp()
|
|
#include <stdlib.h> //för atof()
|
|
#include <math.h> //för beräkningar
|
|
#include <conio.h> //för clrscr() och getch()
|
|
#define MAXGRAD 10 //maximal polynomgrad för Newton-Raphson
|
|
#define VARV 100 //max antal beräkningar Newton-Raphson gör
|
|
#define DIFF 0.01 //procentuell differans mellan x & xo i Newton-Raphson
|
|
#define BUFFERSIZE 100 //bufferstorlek för säker inmatning
|