摘要: 微分方程数值解--差分法微分方程数值解--差分法problem 1:考虑如下两点边值问题其精确解为:clcclear allformat longu=f_1(64);%数值解x=linspace(0,1,65);U=1./(1+x);%精确解figure(1)plot(x,U,'b-');hold 阅读全文
posted @ 2022-03-05 21:56 启叁叁 阅读(212) 评论(0) 推荐(0)
摘要: Untitled非线性方程组解法(一)Newton's methodformat long;x0=[1,1]';X=x0;d=1;num=0;F=[1,1]';while d > 10^(-6) DF=[2*x0(1)-1,2*x0(2);2*x0(1),-2*x0(2)-1]; F=-[x0(1) 阅读全文
posted @ 2022-03-05 21:39 启叁叁 阅读(146) 评论(0) 推荐(0)