- #1

- 434

- 3

## Homework Statement

These are textbook solutions to sample problems, how would one solve these numerically (they are two different problems)?

1)

and

2)

- Thread starter goonking
- Start date

- #1

- 434

- 3

These are textbook solutions to sample problems, how would one solve these numerically (they are two different problems)?

1)

and

2)

- #2

SteamKing

Staff Emeritus

Science Advisor

Homework Helper

- 12,796

- 1,668

There aren't any obvious trig identities which apply to either problem, so one is left with either making a plot of each function versus the angle θ and finding an approximate solution, or choosing different values of θ and inserting these into each equation and seeing if a solution is obtained in that manner.## Homework Statement

These are textbook solutions to sample problems, how would one solve these numerically (they are two different problems)?

1)

View attachment 96911

and

2)

View attachment 96912

## Homework Equations

## The Attempt at a Solution

- #3

- 434

- 3

so it is just a long process of trial and error?There aren't any obvious trig identities which apply to either problem, so one is left with either making a plot of each function versus the angle θ and finding an approximate solution, or choosing different values of θ and inserting these into each equation and seeing if a solution is obtained in that manner.

- #4

SteamKing

Staff Emeritus

Science Advisor

Homework Helper

- 12,796

- 1,668

Pretty much. It's one of the reasons computers were invented, because a lot of problems can be solved only by trial and error, and computers can be programmed to do this until a numerical solution is obtained within a specified tolerance.so it is just a long process of trial and error?

- #5

Simon Bridge

Science Advisor

Homework Helper

- 17,857

- 1,654

Ideally you want to be systematic about your trial and error, so you use the result of the last guess to make the next guess better - what have you tried?

- #6

- 434

- 3

basically what you said, I just start from a degree and go around in intervals of 15 or 30 degrees. Just like playing a game of hot or cold I guess.

Ideally you want to be systematic about your trial and error, so you use the result of the last guess to make the next guess better - what have you tried?

- #7

Simon Bridge

Science Advisor

Homework Helper

- 17,857

- 1,654

For the second one you'd plot ##y=\sin(\frac{\pi}{180} x)-(0.703)\frac{\pi}{180}x## (because computers work in radians and you want x in degrees).

Your solution is every value of x where the plot crosses the x axis.

The trivial solution at x=0 should be obvious.

A common systematic approach is called "Newton-Raphson" or "Newton's method" ... look it up.

If this is coursework, then there should have been a discussion of how to get numerical solutions already ... though the course may be set up so your first experience is blind so you will appreciate the systems.

- #8

ehild

Homework Helper

- 15,539

- 1,905

Not quite.so it is just a long process of trial and error?

You might try the method of iterations. In case of the first problem, you can write the original equation in form tan(θ)=0.75 + sin(θ), and calculate approximations by the procedure tan(θ

You can apply a similar procedure for the second problem but you have to calculate the angle in rad.

- #9

- 34,840

- 6,113

- #10

Ray Vickson

Science Advisor

Homework Helper

Dearly Missed

- 10,706

- 1,728

No, not really. Various methods of "controlled search" are available. For more information, use the following terms as search keywords: bisecting search, secant method, regula falsi, Newton's method, etc.so it is just a long process of trial and error?

- #11

NascentOxygen

Staff Emeritus

Science Advisor

- 9,244

- 1,072

For general iteration, rearrange this in as many ways as needed into the form: θ = f(θ)tan θ - sin θ = 0.75

There are two obvious ways to isolate a θ from the above equation, but in general you may need to look for more (sometimes deviously) before finding arrangements that converge to all the solutions you are looking for.

e.g., your equation is equivalently

sinθ / cosθ - sinθ = 0.75

sinθ (1/cosθ - 1) = 0.75

isolating the red θ leads to a third rearrangement.

Starting with an initial guess of 70° this latter arrangement shows an oscillatory convergence to the solution, whereas the earlier arrangement converged monotonically.

In the absence of a fancy calculator, to see the convergence step-by-step you can code the calculation into one cell of a spreadsheet, so that every time you click on "recalculate" it calculates the next iteration.

- Replies
- 3

- Views
- 37K

- Replies
- 1

- Views
- 6K

- Last Post

- Replies
- 33

- Views
- 3K

- Last Post

- Replies
- 5

- Views
- 1K

- Replies
- 3

- Views
- 3K

- Last Post

- Replies
- 2

- Views
- 3K

- Last Post

- Replies
- 3

- Views
- 3K

- Last Post

- Replies
- 4

- Views
- 759

- Replies
- 2

- Views
- 1K

- Last Post

- Replies
- 9

- Views
- 2K