newton raphson optimization for the following formula

8 comentarios

And what is your question about MATLAB here, except for would somone please write some code for you?
Torsten
Torsten el 14 de Jul. de 2023
Editada: Torsten el 14 de Jul. de 2023
It was shown here how to build gradient and hessian of a scalar-valued function:
@Taniya is not a person like that. In her past questions, there were codes supplied.
Taniya
Taniya el 17 de Jul. de 2023
@John D'Errico I want to know how the equation can write in matlab, as when i try it by writing sum it was not considered the summation.
Taniya
Taniya el 17 de Jul. de 2023
@Sam Chak yes it was, and i am a researcher, some time got stuck in such a situation that may be full question pictured wrongly. thank you.
I want to know how the equation can write in matlab, as when i try it by writing sum it was not considered the summation.
syms k
n = 10;
x = sym ('x',[1 n])
x = 
s = sum(x.^k)
s = 
Are you trying to deal to the equation symbolically?
Or, are you trying to numerically compute the values of and its derivative using the for-loop method?
Taniya
Taniya el 17 de Jul. de 2023
Editada: Taniya el 17 de Jul. de 2023
@Sam Chak, x is the value of observation, where n is the length of data, need to find out k by newton raphson method. but i could not programe it

Iniciar sesión para comentar.

Respuestas (0)

Preguntada:

el 14 de Jul. de 2023

Editada:

el 17 de Jul. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by