try to find hessian matrix
Mostrar comentarios más antiguos
f(k) = n*ln(k)-n*ln(1/n*sum(i=1 to n)xi^k+(k-1)sum of (1to n)ln(xi))-n
3 comentarios
KSSV
el 13 de Jul. de 2023
What have you tried? You are facing any problem or error?
Taniya
el 13 de Jul. de 2023
Dyuman Joshi
el 13 de Jul. de 2023
The expression you have written above is not clear. Please format it properly.
Respuesta aceptada
Más respuestas (1)
The vector of independent variables is (x1,x2,...,xn):
syms i k
n = 3;
x = sym('x',[1 n])
f = n*log(k) - n*log(1/n*sum(x.^k) + (k-1)*sum(log(x))) - n
df = gradient(f,x)
d2f = hessian(f,x)
Categorías
Más información sobre Numerical Integration and Differential Equations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


