using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace 高斯完全主元消元法
{
class Program
{
//输入参数
static void InPut(ref int n, ref double[,] a,ref int []lz)
{
Console.Write("请输入方程的阶数:");
//Parese函数:将数字型的string字符转化为int型(类型转化)
n = int.Parse(Console.ReadLine());
lz = new int[n];
for(int k = 0; k < n; k++)
{
lz[k] = k + 1;
}
//开辟内存,指定下标
a = new double[n, n + 1];
Console.WriteLine("请输入方程的系数:");
for (int i = 0; i < n; i++)
{
string r = Console.ReadLine();
//Split函数:将字符串r拆分
string[] rs = r.Split(' ');
for (int j = 0; j < n +
高斯完全主元消元法
最新推荐文章于 2024-06-23 22:33:26 发布