#include "basicmath-snipmath.h" #include #include /* The printf's may be removed to isolate just the math calculations */ int main_basicmath_large(void) { double a1 = 1.0, b1 = -10.5, c1 = 32.0, d1 = -30.0; double x[3]; double X; int solutions; int i; unsigned long l = 0x3fed0169L; struct int_sqrt q; //long n = 0; /* solve soem cubic functions */ printf("********* CUBIC FUNCTIONS ***********\n"); /* should get 3 solutions: 2, 6 & 2.5 */ SolveCubic(a1, b1, c1, d1, &solutions, x); printf("Solutions:"); for(i=0;i0;b1-=.25) { for(c1=5;c1<15;c1+=0.61) { for(d1=-1;d1>-5;d1-=.451) { SolveCubic(a1, b1, c1, d1, &solutions, x); printf("Solutions:"); for(i=0;i