- #26

olgranpappy

Homework Helper

- 1,271

- 3

okey dokey

You are using an out of date browser. It may not display this or other websites correctly.

You should upgrade or use an alternative browser.

You should upgrade or use an alternative browser.

- Thread starter lxd
- Start date

- #26

olgranpappy

Homework Helper

- 1,271

- 3

okey dokey

- #27

HallsofIvy

Science Advisor

Homework Helper

- 41,833

- 964

Actually there is no "symantical argument", just a typographical error. The equation I was referring to is the original equation, cos(ax)+ bx= 0, not cos(ax)+ b= 0. Olgranpappy got me!?

x = Arccos(-b/a)/a

- #28

- 154

- 0

y= sin(ax) +bx. Increase x in small amounts (1e-6) and find y. If y<= epsilon where epsilon is the matlab operator 1e-15 (you can set this depending on your accuracy) you know that you have found a root of the equation.

It is a brute force method and can get accurate results, but more time consuming than NR. However the time taken to code the NR may be equal to the time required to solve it the above mentioned way.

BTW thanks to Halls_of_Ivy. Good to be shaken once in a while for not thinking straight.

- #29

HallsofIvy

Science Advisor

Homework Helper

- 41,833

- 964

Share: