How to use bisection method to approximate values?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Okay so I have a function that spits out y values for a range of x values. For example I'm numerically integrating the function y = integral( x^2 + 2x + 6) using trapezoidal method from 0 to 2. So for say, x = 0:0.05:2 I have the corresponding y values. But now using this result, I want to find x values for a range of y values. Does anybody know how to write the code for this using the bisection method? Your help will be greatly appreciated :)
0 Commenti
Risposte (1)
Nalini Vishnoi
il 24 Apr 2015
Can you provide more information about the problem? As I understand it, if you are integrating over x and it ranges from 0 to 2, that would mean that there is a single unique value of y. The value would not change as long as the limits of the integration are fixed. Could you please clarify the following information:
1. Do the limits of the integral change?
2. How does y depend on x if the limits of integration are constant?
3. Is the relationship one to one meaning one x value correspond to one unique y value and vice versa?
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!