C++ problem

hi ppl..i m facing some problem in c++. hope you all can help..my problem is on this code:

tripTime = 32 * log(pow(currentInAmps, 2) - (0.5 * pow(I_preload, 2))/((pow(currentInAmps, 2))-(pow(m_nominalCurrentInAmps, 2))));

i get a positive values when the currentInAmps,I_preload and m_nominalCurrentInAmps are more than 1, but a negative value for trip time whn they are less than 1. Please help me out, how to get trip time as positive value even if those currentInAmps and etc are less than 1. thank you

deepak
tripTime = 42; That should work, regardless of the value of the others variables.
Topic archived. No new replies allowed.