博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
高斯消元
阅读量:4664 次
发布时间:2019-06-09

本文共 719 字,大约阅读时间需要 2 分钟。

#include
#define re return#define inc(i,l,r) for(int i=l;i<=r;++i)#define dec(i,l,r) for(int i=l;i>=r;--i)const double EPS=1e-7;char buf[1<<21],*p1,*p2;inline int getc(){re p1==p2 and (p2=(p1=buf)+fread(buf,1,1<<21,stdin),p1==p2)?EOF:*p1++;}template
inline void rd(T&x){ char c;bool f=0; while((c=getc())<'0'||c>'9')if(c=='-')f=1; x=c^48; while((c=getc())>='0' and c<='9')x=x*10+(c^48); if(f)x=-x;}using namespace std;double a[105][105],ans[105];int n;int main(){// freopen("in.txt","r",stdin); rd(n); inc(i,1,n)inc(j,1,n+1)rd(a[i][j]); inc(i,1,n){ int r=i; if(fabs(a[r][r])

线性函数,加减消元

 

转载于:https://www.cnblogs.com/lsyyy/p/11546704.html

你可能感兴趣的文章
为什么需要Docker?
查看>>
国内5家云服务厂商 HTTPS 安全性测试横向对比
查看>>
how to control project
查看>>
转 python新手容易犯的6个错误
查看>>
第四节 -- 列表
查看>>
Python入门学习笔记4:他人的博客及他人的学习思路
查看>>
webstorm里直接调用命令行
查看>>
关联规则算法之FP growth算法
查看>>
对数组序列进行洗牌
查看>>
决策树
查看>>
团队作业
查看>>
如何避免在简单业务逻辑上面的细节上面出错
查看>>
win7,Ubuntu 12.04 双系统修改启动项顺序三方法
查看>>
python--列表推导式和生成表达式
查看>>
P - Psychos in a Line 单调队列
查看>>
POJ 2653 Pick-up sticks(计算几何)
查看>>
HDU 2665 Kth number 主席树
查看>>
大型网站高并发的架构演变图-摘自网络
查看>>
8丶运行及总结
查看>>
Unity获取手机的电量时间
查看>>