Glad you are making progress.
Type: Posts; User: Norm
Glad you are making progress.
Sorry, if you didn't find someone to do your work for you. I thought you were interested in learning programming techniques. Among those techniques is debugging. That's what I've been suggesting...
Start on the inside and work out: aIR/12, Math.pow()
There aren't an infinite number of subexpressions so I expect you can do it in a few minutes.
You need to verify that all the subexpressions are working correctly.
You need to find where the error is in that compound expression.
You need to continue breaking the compound expressions down into single expressions and printing their values.
Can you post the code for "the bottom" expression and the value it returned?
also print out the values of the variables used in "the bottom" expression.
Which expression returns the wrong value? and what value does it return?
Which ones were wrong?
What are the the correct values?
Which simple, single expression computed the wrong value?
When you look at the values that were printed out, were they correct?
Yes, that is exactly what I'm saying.
Did you do what I suggested to find the problem? I don't see it in the posted code.
Try debugging the code by breaking the compound expression up into separate single expressions and printing the...
Try debugging the code by breaking the compound expression up into separate single expressions and printing the results of each. The print out should show you where the code is going wrong.
Try debugging the code by breaking the compound expression up into separate single expressions and printing the results of each. The print out should show you where the code is going wrong.