稳定性计算r=511和r=59_偏微分方程.doc_第1页
稳定性计算r=511和r=59_偏微分方程.doc_第2页
稳定性计算r=511和r=59_偏微分方程.doc_第3页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

扬州大学数学科学学院偏微分方程数值解法实验报告班级姓名学号实验名称验证最简查分格式的稳定性实验目的:就r=5/11,5/9用显格式,作树值试验,观察误差的增长规律,并说明r=5/11时稳定,r=5/9时不稳定。实验所用软件:JCreator实验过程记录(含:源程序(带注释)及异常情况记录等)r=5/11时import java.text.DecimalFormat;import java.util.Arrays;import java.lang.ArrayIndexOutOfBoundsException;public class A public static void main(String args)throws ArrayIndexOutOfBoundsExceptiondouble a = new double711;for(int i = 0;i7;i+)for (int j = 0;j11;j+)a05 = 1.0;for(int h = 0;h6;h+)for(int k = 1;k10;k+)ah+1k=(5*ahk+1+ahk+5*ahk-1)/11;DecimalFormat df=new DecimalFormat(0.0000);double tmp=ahk;System.out.print(df.format(tmp)+ );System.out.println();r=5/9时import java.text.DecimalFormat;import java.util.Arrays;import java.lang.ArrayIndexOutOfBoundsException;public class A public static void main(String args)throws ArrayIndexOutOfBoundsExceptiondouble a = new double711;for(int i = 0;i7;i+)for (int j = 0;j11;j+)a05 = 1.0;for(int h = 0;h6;h+)for(int k = 1;k10;k+)ah+1k = (5*ahk+1+ahk+5*ahk-1)/9;DecimalFormat df=new DecimalFormat(0.0000);double tmp=ahk;System.out.print(df.format(tmp)+ );System.out.println();实验结果(实验的输入数据和输出结果)r=5/11时0.0000 0.0000 0.0000 0.0000 1.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.4545 0.0909 0.4545 0.0000 0.0000 0.0000 0.0000 0.0000 0.2066 0.0826 0.4215 0.0826 0.2066 0.0000 0.0000 0.0000 0.0939 0.0563 0.2930 0.1134 0.2930 0.0563 0.0939 0.0000 0.0427 0.0342 0.1810 0.1038 0.2767 0.1038 0.1810 0.0342 0.0427 0.0194 0.1048 0.0792 0.2175 0.1195 0.2175 0.0792 0.1048 0.0194r=5/9时0.0000 0.0000 0.0000 0.0000 1.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.5556 0.1111 0.5556 0.0000 0.0000 0.0000 0.0000 0.0000 0.3086 0.1235 0.6296 0.1235 0.3086 0.0000 0.0000 0.0000 0.1715 0.1029 0.5350 0.2071 0.5350 0.1029 0.1715 0.0000 0.0953 0.0762 0.4039 0.2317 0.6174 0.2317 0.4039 0.0762 0.0953 0.0529 0.2858 0.2159 0.5932 0.3260 0.5932 0.2159 0.285

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论