x finds y using newtons method

2 次查看(过去 30 天)
Ryan Elway
Ryan Elway 2017-11-10
回答: Jan 2017-11-10
I'm a little confused on how I would go about this problem. The function y=f(x) which given x finds y such that x=y+1/8cos(y^2) by performing 5 iterations using newtons method. The code should be within function definition.
Given:
function y=f(x)
y=x
[code goes here]
endfunction
any help with this would help me out tremendously!

回答(1 个)

Jan
Jan 2017-11-10
This is your homework. We can expect, that you have learned the details of the Newton method in the lessons, or you can find them at least in your text book or at https://en.wikipedia.org/wiki/Newton%27s_method. The WikiPedia article contains a "pseudo code" example, which can be converted to Matlab very easily.
Please try it and ask a specific question in case of problems.

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by