#include <stdio.h>
#include <math.h>

int main() {
	double base = 2.0;
	double exponent = 3.0;
	double number = 100.0;

	// Exp function
	printf("%.2lf to the power of %.2lf is %.2lf\n",
		base, exponent, pow(base, exponent));

	// Log10 function
	printf("The logarithm (base 10) of %.0lf is %.2lf\n",
		number, log10(number));

	// Log function
	printf("The natural logarithm of %.2lf is %.2lf\n", base, log(base));

	// Exp2 function
	printf("The exponential (base 2) of 6 is %.2lf\n", exp2(6));

	// Exp10 function
	printf("The exponential (base 10) of 2 is %.2lf\n", exp10(2));
}

/*
This program demonstrates the usage of the following exponential and
logarithmic functions from the math.h library:

    exp: calculates the exponential (e^x) of a number
    log10: calculates the logarithm (base 10) of a number
    log: calculates the natural logarithm (base e) of a number
    exp2: calculates the exponential (base 2) of a number
    exp10: calculates the exponential (base 10) of a number

The program uses these functions to demonstrate the calculation of exponential
and logarithmic values. The output will show the result of each function call.
*/

