摘要: 一、代数多项式法: 二、三角函数法: 阅读全文
posted @ 2017-03-05 22:57 胡冬冬 阅读(3626) 评论(2) 推荐(0) 编辑
摘要: 函数文件: 脚本文件: 阅读全文
posted @ 2017-03-05 21:55 胡冬冬 阅读(2923) 评论(0) 推荐(0) 编辑
摘要: 算法推导: 阅读全文
posted @ 2017-03-05 21:49 胡冬冬 阅读(6605) 评论(0) 推荐(0) 编辑
摘要: p47.(实习题-李荣华)用线性元求下列边值问题的数值解 阅读全文
posted @ 2017-03-05 17:24 胡冬冬 阅读(2652) 评论(6) 推荐(0) 编辑
摘要: 函数文件: 脚本文件: tic;clear clcsyms x y;h='[x^2+y^2-4;x^2-y^2-1]';initial_value=[1.6;1.2];n=2;%方程组的未知数的个数 g=newton_Iterative_method(h,n,initial_value) toc; 阅读全文
posted @ 2017-03-05 17:15 胡冬冬 阅读(4578) 评论(0) 推荐(0) 编辑
摘要: 算法推导: 阅读全文
posted @ 2017-03-05 17:13 胡冬冬 阅读(1127) 评论(0) 推荐(0) 编辑
摘要: 1 function x=chase (a,b,c,f) 2 % the method of chaase******************************* 3 % a, b, c,分别是是方程组的下对角,主对角,上对角的三条 4 % alpha,beta, gama分别是Crout分解的主和次对角线 5 % /beta(1) 0 ... ... 阅读全文
posted @ 2017-03-05 17:12 胡冬冬 阅读(983) 评论(0) 推荐(0) 编辑
摘要: 1 function x=chase (d,e,f,b) 2 % --------------------------------------------------------------- 3 %the method of chaase******************************* 4 % d, e, f,分别是是方程组的下对角,主对角,上对角的三条 5 % ... 阅读全文
posted @ 2017-03-05 17:11 胡冬冬 阅读(607) 评论(0) 推荐(0) 编辑
摘要: 1 function g=dichotomy(f,tol) 2 %this routine uses bisection to find a zero of user-supplied 3 %continuous function f.the user must supply two points an and bn 4 %such that f(an) and f(bn) have d... 阅读全文
posted @ 2017-03-05 17:09 胡冬冬 阅读(544) 评论(0) 推荐(0) 编辑
摘要: 算法推导: 阅读全文
posted @ 2017-03-05 17:00 胡冬冬 阅读(637) 评论(0) 推荐(0) 编辑
摘要: 1 function [u,n]=Jacobi(A,b,u0,eps,varargin) 2 %Jacobi.m函数为用于雅可比迭代法求解线性方程组 3 %A为线性方程组的系数矩阵 4 %b为线性方程组的常数向量 5 %u0为迭代初始向量 6 %eps为解的精度控制 7 %varargin为迭代步数控制 8 %u为线性方程组的解 9 %n为求出所有精度的解实际的迭代步数 10 ... 阅读全文
posted @ 2017-03-05 16:56 胡冬冬 阅读(2214) 评论(0) 推荐(0) 编辑
摘要: P47.(实习题-李荣华)用线性元求下列边值问题的数值解 .(实习题)用线性元求下列边值问题的数值解 解:从出发可知: 形式的变分方程为, 其中 , 又 因此 在单元中,应用仿射变换(局部坐标) 节点基函数为 由此可知系数矩阵是一个三对角矩阵且对称的矩阵: 阅读全文
posted @ 2017-03-05 16:51 胡冬冬 阅读(2288) 评论(0) 推荐(0) 编辑
摘要: 函数文件: 脚本文件: 阅读全文
posted @ 2017-03-05 16:42 胡冬冬 阅读(743) 评论(0) 推荐(0) 编辑
摘要: 1 function g=dichotomy(f,tol) 2 %this routine uses bisection to find a zero of user-supplied 3 %continuous function f.the user must supply two points an and bn 4 %such that f(an) and f(bn) have ... 阅读全文
posted @ 2017-03-05 16:34 胡冬冬 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1 function x=chase (d,e,f,b) 2 % --------------------------------------------------------------- 3 %the method of chaase******************************* 4 % d, e, f,分别是是方程组的下对角,主对角,上对角的三条 5 % ... 阅读全文
posted @ 2017-03-05 16:29 胡冬冬 阅读(1046) 评论(0) 推荐(0) 编辑
摘要: 1 function x=chase (a,b,c,f) 2 % the method of chaase******************************* 3 % a, b, c,分别是是方程组的下对角,主对角,上对角的三条 4 % alpha,beta, gama分别是Crout分解的主和次对角线 5 % /beta(1) 0 ... ... 阅读全文
posted @ 2017-03-05 16:27 胡冬冬 阅读(1588) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 算法推导: 恢复内容结束 阅读全文
posted @ 2017-03-05 16:23 胡冬冬 阅读(607) 评论(0) 推荐(0) 编辑
摘要: function [f,L]=Newton(f,a) %this is newton teration whic is used for solving implicit One-dimensional Euler method %users can used it directly for solve equation. %the code was writen by HD.dong in j... 阅读全文
posted @ 2017-03-05 16:20 胡冬冬 阅读(703) 评论(0) 推荐(0) 编辑