How can I reduce the fsolve error?

Hi All
I'm solving a set of 9 second order equations with fsolve. It seems that it has a constant error on one of the variables even from the initial condition of the equations but then solving by variating the constants of the equations, the solution summary indicates a perfect solution with 1e-13 tolerance.
What can I do to resolve the initial error?

4 comentarios

Matt J
Matt J el 8 de Jun. de 2019
Best thing is if you post your code (so that we can run it too) and show us what you mean.
farzad
farzad el 8 de Jun. de 2019
Sorry I can't share the code
Matt J
Matt J el 8 de Jun. de 2019
Editada: Matt J el 8 de Jun. de 2019
Well, your post is really unclear. We can't tell what you mean without some sort of illustration. Maybe provide an alternative to your problem that produces the same issue?
dpb
dpb el 8 de Jun. de 2019
Editada: dpb el 8 de Jun. de 2019
Well, it's futile to expect anybody to answer such a detailed question that is entirely dependent upon the specifics of the function, its inputs and, quite possibly, the details of how the function is implemented. The crystal ball is often able to help, but this is far beyond even its power.
Only two questions
  1. If you substitute the final solution into the function as initial condition does the symptom reappear, and
  2. If you substitute the final solution into the function standalone, do you get zero (to near machine precision) as the result?
Altho from a practical standpoint, if it finds the solution, what difference does it make?

Respuestas (0)

La pregunta está cerrada.

Productos

Versión

R2007a

Preguntada:

el 8 de Jun. de 2019

Cerrada:

Jan
el 28 de Jun. de 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by