how do i find the intersections between two functions ?
Show older comments
i try to find how is the code for intersections between two functions ( with ''if'') plz ..i need help!
4 Comments
the cyclist
on 6 Dec 2016
This is not twitter. Please feel free to use more than 140 characters to give a more complete explanation of your problem. You have not given us close to enough information to help you.
maria_maths_
on 6 Dec 2016
Edited: Walter Roberson
on 7 Dec 2016
Walter Roberson
on 7 Dec 2016
Which of the 6 intersection points did you want?? I have put arrows and numbered them so that we can be sure that we are talking about the same intersections.
If you do not want all of these, then how are you selecting which ones you want?
Do you need them in a particular order?

maria_maths_
on 7 Dec 2016
Answers (1)
Walter Roberson
on 6 Dec 2016
0 votes
It has been proven that there cannot be any finite algorithm which can give you all of the intersections of two infinite functions (that does not mean that the functions have to be defined at infinity: it also covers continuous functions on a line segment, and covers functions of infinite subsets of the integers.)
For example let one of the functions be the Riemann Zeta function, and let the other function be the constant 0. If there were a finite algorithm that could find the intersections of any two infinite functions then you could apply that finite algorithm to find all the places where the Riemann Zeta function is 0. There is no known way to find all of the zeros of the Riemann Zeta function; any algorithm for doing so would give an answer to the Riemann Conjecture.
1 Comment
Walter Roberson
on 7 Dec 2016
http://www.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections looks like a possibility for your purposes.
Categories
Find more on Numeric Solvers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!