|
@ -1,3 +1,5 @@ |
|
|
|
|
|
#include <stdio.h> |
|
|
|
|
|
|
|
|
#include "exponent.h" |
|
|
#include "exponent.h" |
|
|
|
|
|
|
|
|
int expI(unsigned int e, int num){ |
|
|
int expI(unsigned int e, int num){ |
|
@ -16,6 +18,8 @@ float expIN(int e, int num){ |
|
|
if(e>0){ |
|
|
if(e>0){ |
|
|
return (float) expI(e, num); |
|
|
return (float) expI(e, num); |
|
|
}else{ |
|
|
}else{ |
|
|
return 1.0 / (float) expI(e, num); |
|
|
|
|
|
|
|
|
printf("%d, %d\n", e, num); |
|
|
|
|
|
printf("%f\n", 1.0 / (float) expI((e*-1), num)); |
|
|
|
|
|
return (1.0 / (float) expI((e*-1), num)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |