int main () {
    double * log = natural_log ();
    double * approx = approximation ();
    double * percent = percentage(log, approx);
    file_output (log, approx, percent);
    return 0;
}
int main()
{
	float x;
	float error_range;

	printf("enter the value of 1<=x<=2: ");
	scanf("%f", &x);
	if (x > 2 || x < 1)
	{
		printf("Incorrect input");	
		return -1;
	}
		
	printf("maximum allowed error: ");
	scanf("%f", &error_range);

	natural_log(x, error_range);	
	
	printf("");
	/* output ln(x) */
	return 0;
}
Esempio n. 3
0
double my_pow_f ( double base, double exp )
{
    return exponential ( exp * natural_log(base) );
}