I need to make this formula c++ compatible, ive spent quite a while trying to figure this out, looking for some help!

WindChill = 35.74 + 0.6215T - 35.75(V^0.16) + 0.4275T(V^0.16)

Thanks!

windchill = 35.74 + (0.6215 * t) - 35.75 * pow(v,0.16) + 0.4275 * t * pow(v,0.16);

Thats what I had before, it complies but I don't think its working right.

windchill = 35.74 + (0.6215 * t) - 35.75 * pow(v,0.16) + 0.4275 * t * pow(v,0.16);

Thats what I had before, it complies but I don't think its working right.

Actually, I think it is working.

Im retarted.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.