matlab求解方程组,求代码!
方程请看图片,其中n=29和μ=0.5已知,数组xi=[1,2,4,7,9,13,14,15,17,19,20,23,28,29,31,33,37,38,40,44,46...
方程请看图片,其中n=29和μ=0.5已知,数组xi=[1,2,4,7,9,13,14,15,17,19,20,23,28,29,31,33,37,38,40,44,46,48,49,51,52,54,58,61,63]也知道了,求α和β,谢谢大神!
展开
1个回答
展开全部
n = 29;
u = 0.5;
x=[1 2 4 7 9 13 14 15 17 19 20 23 28 29 31 33 37 38 40 44 46 48 49 51 52 54 58 61 63];
syms a b
f1 = -n*b/a + b/a^(b+1)*sum((x-u).^b);
f2 = n/b + sum(log((x-u)/a)) - sum(((x-u)/a).^b.*log((x-u)/a));
[alpha,beta] = solve(f1,f2)
alpha =
33.444556872781631813678791755519
beta =
1.4561963619788803585531537634846
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询