![]() |
Java Newton's Method HELP PLEASE
Hey I'm a total beginner to Java and I could really use some help with this program please!
This is part of the code I wrote. I put a do-while loop but this only takes care of the rootEstimate value, the powerRider value is also changing. Basically I need to end up with my answer for the root Estimate then after I got the answer with the first power, switch to the second power. The powerRider variable is declared as an array. I was thinking of possibly having a loop with an increment encasing the do-while loop which would increase whenever the while part is not met, but I'm not 100% sure how to approach this and some help would be appreciated! Code:
function = -n*powerRider + 0.5*(rho*cD*area*(Math.pow(initialRootEstimate,3))) + (cR*m*g*initialRootEstimate); |
Re: Java Newton's Method HELP PLEASE
post the mathematics problem you are trying to solve.
|
Re: Java Newton's Method HELP PLEASE
i m sending u a newton class..post ur sum...will let u know d solution...
Code:
class Newton { |
Re: Java Newton's Method HELP PLEASE
Hey sorry I've been working on it so haven't had a chance to check back. Thanks for the help! So far I've written this:
Code:
import java.io.*;thanks again |
| All times are GMT +5.5. The time now is 08:50. |