// Mathematical Functions

#include<iostream>
#include<cmath>     // Include math library

using namespace std;

int main ()
{
    double x = 0.50;

    cout << "x = " << x << endl;

    // calculates x^3
    cout << "pow(x, 3) = " << pow(x, 3)<< endl;

    // square root of x
    cout << "sqrt(x) = " << sqrt(x) << endl;

    // sine of x, x is assumed radian
    cout << "sin(x) = " << sin(x) << endl;

    // sine inverse of x, answer is in radian also
    cout << "asin(x) = " << asin(x) << endl;

    // log base e of x
    cout << "log(x) = " << log(x) << endl;

    // log base 10 of x
    cout << "log10(x) = " << log10(x) << endl;

    return 0;
}
