Anyone have any samples for trial and error solving.
Basically I have two equations. I solve for the value of the first one and then use trial and error for a variable in the second one until it equals the solution of the first equation.
A brute force in increments of 0.0001 gives me the precision I need but the time is noticable.
My first thought is to solve in increments of 1 until the value is above and below the solution I'm looking for. Then narrow that down by 0.1 and so on until I reach the precision I need.
Is this an efficient method or is there a "most" efficient method already documented out there some where.
Thanks in advance,
swu
Basically I have two equations. I solve for the value of the first one and then use trial and error for a variable in the second one until it equals the solution of the first equation.
A brute force in increments of 0.0001 gives me the precision I need but the time is noticable.
My first thought is to solve in increments of 1 until the value is above and below the solution I'm looking for. Then narrow that down by 0.1 and so on until I reach the precision I need.
Is this an efficient method or is there a "most" efficient method already documented out there some where.
Thanks in advance,
swu