Hi,
I've written a few calcuators for software metrics, effort etc. and at the moment I'm trying to write a small utility to calculate Putnam's software equation, but I'm not quite sure how best to represent this in my code. Math isn't my strong point, and the stuff I've done so far is fairly simple, but for this one any brians out there want to give me some advice? I'm sure its not as bad as it looks, but Algebra isn't my strong point
The equation is...
E = [LOC x B 0.333 / P]3 x (1/t4)
The user will input LOC, B, P and t. LOC, P and t are integers, B is a float with a possible range of 0.16 to 0.39... my first attempt went bang becuase I had difficulty using input to enter a float, then converting that string into a real number. I sorted of needed a float(string) command, a bit like int(string), unless I'm doing that all wrong
[edit] actually, I think t needs to be a float.
So, the idea so far once I had the data entered (using test date for now), to do something like, E#=(loc*(b#*0.333)/P) for the first bit then 3*(1/(t*4)) for the next part... but I imagine EXP() could be used.
Cheers in advance.