NA-PTA-NA Lab3 线性方程组求解[严格对角占优/正定的Gauss-Seidel法]

该博客介绍了如何使用Gauss-Seidel方法解决严格对角占优或正定的线性方程组。在NA-PTA-NA Lab3中,矩阵A的特性使得Gauss-Seidel迭代法能够收敛,即使初始值随意设定为0。这是一个相对简单的线性代数问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

There is No Free Lunch
在这里插入图片描述

Format of function:

void Price( int n, double p[] );

where int n satisfies that 2< n ≤10000; double p[ ] is passed into the function as an array of prices p​i​​ and then will be returned storing the costs of the dishes.

Sample program of judge:

#include <stdio.h>
#define Max_size 10000 /* max number of dishes */

void Price( int n, double p[] );

int main()
{
   
    int n
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值