Commit e802d20b by dongshufeng

refactor: add more template

parent ce339919
a = sparse([0,0,0,1,2,2], [0,1,2,1,1,2], [1,1,2,3,3,sin(8-2)], 3, 3); a = sparse([0,0,0,1,2,2], [0,1,2,1,1,2], [1,1,2,3,3,sin(8-2)], 3, 3);
b = [1,12,7]; b = [1,12,7];
r = sp_linsolve(a, b, [0,0,0]); r = sp_linsolve(a, b, [0,0,0]);
return r; r2 = sp_linsolve(a, b);
\ No newline at end of file return r - r2;
\ No newline at end of file
...@@ -3,4 +3,5 @@ g2 = 1*3*x2 - 4*3; ...@@ -3,4 +3,5 @@ g2 = 1*3*x2 - 4*3;
g3 = 1*3 * x2+sin(8-2)*x3 - 7; g3 = 1*3 * x2+sin(8-2)*x3 - 7;
b = [0,0,0]; b = [0,0,0];
r = sp_linsolvex([g1,g2,g3], b, [0,0,0], [x1,x2,x3]); r = sp_linsolvex([g1,g2,g3], b, [0,0,0], [x1,x2,x3]);
return r; r2 = sp_linsolvex([g1,g2,g3], [], [], [x1,x2,x3]);
\ No newline at end of file return r-r2;
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论