try to find hessian matrix
이전 댓글 표시
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
KSSV
2023년 7월 13일
What have you tried? You are facing any problem or error?
Taniya
2023년 7월 13일
Dyuman Joshi
2023년 7월 13일
The expression you have written above is not clear. Please format it properly.
채택된 답변
추가 답변 (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)
카테고리
도움말 센터 및 File Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


