Function (How Can You Put a Predefined Power function in a function)

What I am trying to do with this function is determine the calories required for the Basal Metabolic Rate using this formula.

Basal Metabolic Rate : Calories Required = 70 * (Persons_weight/2.2)^0.756

I don't know how else to raise a number to a power besides the power function but this problem has to be in a function . HAS TOO!
Please Help
1
2
3
4
5
6
7
8
9
10
long double BMR(double persons_weight)
{
    #include<cmath>
    //function determines Basal Metabolic Rate using
    // calories needed = 70 * (p/2.2) ^ 0.756
    double temp, temp_2;
    temp == ( (persons_weight) / (2.2) );
    temp_2 == pow(temp , 0.756);
    return ( temp_2 * 70 );
}

What's your problem exactly?
Problem is it doesn't work!
This outputs 2.2281e-309, when i input my values to test my program. I Type this in a Scientific calculator and it results to the value of 0. Its not supposed to do that its supposed to output an actual number with a higher value.
I can Post my whole program if it would help you help me?
did you initialize p with some value?
yes the user inputs their weight in pounds.. p=persons_weight.
I figured it out! thanks anyways!
Topic archived. No new replies allowed.