求解ABX=b,直接计算与先计算Ay=b,再计算Bx=y,差距特别大?!!
mathematica吧
全部回复
仅看楼主
level 6
2018年05月13日 03点05分 1
level 12
具体例子是什么?MWE
2018年05月13日 04点05分 6
在楼下,百度一直吞帖,发了快二十遍
2018年05月13日 07点05分
你好,能加个qq吗,另外一段代码发了无数次不管怎么发,百度一直吞楼
2018年05月14日 00点05分
level 5
2018年5月13日,天气晴
prod[n_, r_, q_] :=
Block[{mat, $MaxPrecision = 16, $MinPrecision = 16},
mat[idx_] :=
SparseArray[{Band[{1, 1}] -> 1,
Band[{1, 2}] ->
Table[r^(idx - i) - q^(n - idx), {i, idx, 1, -1}]}, n + 1];
Array[mat, n - 1, 1, Dot]];
Transpose[prod[20, 1`16, 0.5`16]];
马上就6月了
P1 = Dot[A, M, Transpose[prod[20, 1`16, 0.5`16]], Dq];
b = {899, -1986, 3562, -4847, 106, -564, 9041, -849, 691, -619,
418, -1592, 691, -238, 379, -168, 621, -651, 559, -242, 930}
x1 = LinearSolve[P1, b]
P2 = Dot[M, Transpose[prod[20, 1`16, 0.5`16]], Dq];
天天年是是符合甲方的中,基建
y = LinearSolve[A, b];
x2 = LinearSolve[P2, y]
航母出港
2018年05月13日 07点05分 13
level 5
2018年05月13日 07点05分 14
1