|
From: Josh M. <mrl...@gm...> - 2005-10-31 03:25:27
|
It looks to me like you want this:
Power =3D Weight / pow((ET / 5.825), 3);
Remember, the first parameter of pow() is the number you want raised
to a certain exponent.
On 10/30/05, Scott <fre...@ve...> wrote:
>
> Should of mentioned
>
> I used 3500 pounds (weight)
> 12.8 seconds (ET)
>
> Should give me 330 (Power)
> However power is giving me 1.38
>
> Power =3D Weight/ET/pow(time,3);
> The formula is: hp =3D weight / (ET / 5.825)3*
>
> So what stupid thing am i doing wrong?
>
> Cheers
> Scott.
>
>
>
> #include <stdio.h>
> #include <math.h>
> #define time 5.825
> /*The formula is: hp =3D weight / (ET / 5.825)3*/
> main()
> {
> float Weight, ET, Power;
> printf("Enter the weight in pounds : ");
> scanf("%f",&Weight);
> printf("Enter the ET in Seconds : ");
> scanf("%f",&ET);
> Power =3D Weight/ET/pow(time,3);
> printf("Power EST is %3.2f",Power);
> }
>
>
>
>
--
Cheers,
Josh
|