newton raphson optimization for the following formula

8 Comments

And what is your question about MATLAB here, except for would somone please write some code for you?
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.
@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.
@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?
@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

Sign in to comment.

Answers (0)

Asked:

on 14 Jul 2023

Edited:

on 17 Jul 2023

Community Treasure Hunt

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

Start Hunting!