how can i find When function is zero without Functions like fzero solve ...?
Show older comments
help me please
10 Comments
Jan
on 28 Jun 2018
Please mention the background of this question. Maybe all you want is index = (x==0) or find(y==0), or you want to write a pseudo-newton method with a line-search and an internal numerical approximation of the 2nd derivatives. There are many different solutions with different properties.
arkadi ak
on 28 Jun 2018
Jan
on 28 Jun 2018
@arkadi ak: Now it matters if this is a homework of a lesson of the beginners course of numerical maths, or if this is a PhD thesis. It matters if you want a cheap solution of 1D functions, or if you talking about a mutli-dimensional case.
I ask you again for posting more details. Give us a chance to help you.
OCDER
on 28 Jun 2018
Before anyone can help, you'll have to be more clear about these:
What are the two functions and their inputs and outputs? Do you mean to find the intersection point(s) of two "equations"? And why can't you use fsolve? Is this an assignment to make an algorithm like fsolve? If so, what matlab code have you written or are having trouble with? What "answer" do you want from the forum - pseudo code or hints about matlab functions to use?
arkadi ak
on 28 Jun 2018
arkadi ak
on 28 Jun 2018
Guillaume
on 28 Jun 2018
Because The teacher wants that we ...
Most likely, the teacher also wants that you come up with and write the algorithm yourself, not copy/paste it off some website.
arkadi ak
on 28 Jun 2018
Steven Lord
on 28 Jun 2018
Even if it is a small part of an assignment, it's still part of an assignment and it's probably part of that assignment because your professor thinks it valuable for you to do.
If you show us what you've tried so far and ask a specific question about where you're having difficulty we can offer suggestions. If you're not sure even how to get started, you should speak to your professor and/or your teaching assistant for help with the initial setup.
arkadi ak
on 28 Jun 2018
Answers (1)
Jan
on 28 Jun 2018
0 votes
I'm sure you have heard something about method to find roots of functions. Perhaps a Newton-Raphson method? Or Regula-False, bisection method, etc. Then it is likely that your teacher wants you to implement the method you have learned in the lessons. The forum can, will and should not do this for you, because it is not our homework and we did not know, what you have been taught.
Categories
Find more on Matrix Indexing 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!