|
@ -22,4 +22,16 @@ float expIN(int e, int num){ |
|
|
printf("%f\n", 1.0 / (float) expI((e*-1), num)); |
|
|
printf("%f\n", 1.0 / (float) expI((e*-1), num)); |
|
|
return (1.0 / (float) expI((e*-1), num)); |
|
|
return (1.0 / (float) expI((e*-1), num)); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
float expF(int e, float num){ |
|
|
|
|
|
float prod = 1; |
|
|
|
|
|
if(e==0){ |
|
|
|
|
|
return 1; |
|
|
|
|
|
}else{ |
|
|
|
|
|
for(int i = 1; i <=e; i++){ |
|
|
|
|
|
prod *= num; |
|
|
|
|
|
} |
|
|
|
|
|
return prod; |
|
|
|
|
|
} |
|
|
} |
|
|
} |