| New Reply |
Repeat the loop for a few intervals |
Share Thread |
| Jul24-12, 10:23 PM | #1 |
|
|
Repeat the loop for a few intervals
I am trying to find the three roots from x=0 to x=2∏ for this equation: x*Sin[x] + 1.5 x - 3. I want to divide the graph into intervals of say from x=1.0 to x=2.0 as one interval and so on and so forth. How do I go about inserting that code into my existing codes? I am using the bisection method to solve this equation. I thought of just replacing the intervals one by one but I don't think it's very feasible. Could anyone of you guide me on how to go about doing it? I'm using Mathematica 8. Thanks!
|
| Jul26-12, 02:38 AM | #2 |
|
|
I'm not exactly sure what you need. Will this help?
For[high = 1, high ≤ 7, high++, low = high - 1; yourbisectioncodeusinglowandhighendpoints; ] If that isn't what you need then provide some more detail. |
| New Reply |
| Tags |
| mathematica, mathematics, programming, software, trigonometry |
Similar discussions for: Repeat the loop for a few intervals
|
||||
| Thread | Forum | Replies | ||
| [SOLVED] Riding a Loop the Loop (velocity at the bottom of the loop) | Introductory Physics Homework | 13 | ||
| How do you write positive and negative intervals, increasing/decreasing intervals | Precalculus Mathematics Homework | 1 | ||
| Loop-the-loop find height object falls out of the loop | Introductory Physics Homework | 13 | ||
| intervals of increase and the intervals of decrease? | Introductory Physics Homework | 3 | ||
| This is probably a repeat, but... | Current Events | 8 | ||