Matlab实现——Forward-substitution
来源:互联网 发布:时时彩平台程序源码 编辑:程序博客网 时间:2024/06/03 23:01
%Program 3.1.1 (Forward-substitution)function X=forwardsub(A,B)%Input - A is an n x n lower-triangular nonsingular matrix% - B is an n x 1 matrix%Output - X is the solution to the linear system AX = B%Find the dimension of B and initialize Xn=length(B); X=zeros(n,1); X(1)=B(1)/A(1,1);for k=2:1:n X(k)=(B(k)-A(k,1:k-1)*X(1:k-1))/A(k,k);end
Untitled.m
A=[3,0,0,0;5,6,0,0;-4,7,-2,0;3,2,-1,4;];B=[6;4;-7;20;];X=forwardsub(A,B)
- Matlab实现——Forward-substitution
- Matlab forward Euler
- Matlab forward Euler demo
- tomcat源码—redirect和forward的实现
- tomcat源码—redirect和forward的实现
- 转发细节——forward
- 设计模式六大原则——里氏代换原则(LSP,Liskov Substitution Principle)
- 容器总结——list、forward list
- c++11——move/forward
- Matlab实现——Euler's Method
- Matlab实现——Recursive Trapezoidal Rule
- Matlab实现——Lagrange approximation
- Matlab实现——Clamped Cubic Spline
- Matlab实现——Adams-Bashforth-Method
- Matlab实现——Newton-Raphson Iteration
- Matlab实现——Differentiation Using Limits
- Bresenham 算法——matlab实现
- 图像平移 ——MATLAB实现
- 智力题——11.真假处理器
- Matlab实现——Jacobi Iteration and Gauss-Seidel Iteration
- 求出一个给定数字的所有因子(6 = 2 * 3)
- [转]VS2005下编译、安装Net-snmp 5.4.1.2
- Matlab实现——Uppr Triangularization Followed by Back Subtitution
- Matlab实现——Forward-substitution
- 这就是我
- Matlab实现——Newton-Raphson Iteration
- AndEngine Button实现
- Matlab实现——to find the fixed point
- vs2005带命令行参数调试
- 学生信息管理系统—总结
- 智力题——12.相机辨圆盘方向
- Matlab实现——捕食者-被捕食者模型