摘要: matlab代码 clcclearclose all;A = 0.4;B = 0.1;I = 0.4;S = 0.5; %odetspan = [0 50];y0 = [I S];[t, y] = ode45(@(t,y)odefun(t,y,A,B), tspan, y0);r = 1-y(:,1 阅读全文
posted @ 2020-04-12 16:03 德狗咬不过狗 阅读(7661) 评论(8) 推荐(4) 编辑
摘要: java代码(long需要改变) import java.util.Arrays; import java.util.Scanner; public class 大数乘法 { public static void main(String[] args) { Scanner in = new Scan 阅读全文
posted @ 2020-04-12 15:52 德狗咬不过狗 阅读(328) 评论(0) 推荐(0) 编辑
摘要: java代码 import java.util.Scanner; public class Horspool { public static void ShiftTable(char[] p, int[] table){ for (int i = 0; i < 26; i++) { table[i] 阅读全文
posted @ 2020-04-12 15:44 德狗咬不过狗 阅读(539) 评论(0) 推荐(0) 编辑
摘要: java代码 import java.util.Scanner; public class GaussianElimination{ public static void Input(int n, double[][] A, double[] b, int length){ Scanner in = 阅读全文
posted @ 2020-04-12 15:22 德狗咬不过狗 阅读(516) 评论(0) 推荐(0) 编辑
摘要: java代码 compex类 public class Complex { private double a, b; public Complex(){ this.a = 0.0; this.b = 0.0; } public Complex(double a, double b){ this.a 阅读全文
posted @ 2020-04-12 14:52 德狗咬不过狗 阅读(713) 评论(0) 推荐(0) 编辑