#include <stdio.h>
#include <math.h>
void shisuu_kansu(double a, double x);
double value1, value2;
int main(void){
FILE *out;
double a, x;
double xs, xe, dx;
int n, i;
n=1000;
printf("a?\t");
scanf("%lf",&a);
printf("xの開始\t");
scanf("%lf",&xs);
printf("xの終わり\t");
scanf("%lf",&xe);
dx = (xe-xs)/n;
out=fopen("data.txt","w");
for(i=0; i<=n; i++){
x = xs+i*dx;
shisuu_kansu(a, x);
fprintf(out, "%f\t%f\t%f\n", x, value1, value2);
}
fclose(out);
return 0;
}
void shisuu_kansu(double a, double x){
value1=pow(a,x);
value2=pow(a,-x);
}