- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
可在单片机上运行的高斯消元程序(Can be run on the microcontroller Gauss elimination program)
可在单片机上运行的高斯消元程序(Can be run on the microcontroller Gauss elimination program)
#包括 stdio. h
#包括数学。”
#包括是。H
#定义数字9
/ * #包括文件
#包括字符串
使用名称空间STD;*
无效main()
{
/ * ofstream fout;
四。打开(“C:\用户\ \ \ \桌面\ 1名.txt”);* /
双[数字]
{ 12.38412,2.115237,- 1.061074,1.112336,- 0.113584,0.718719,1.742382,3.067813,- 2.031743 },
{ 2.115237,19.141823,- 3.125432,- 1.012345,2.189736,1.563849,- 0.784165,1.112348,3.123124 },
{ - 1.061074,- 3.125432,15.567914,3.123848,2.031454,1.836742,- 1.056781,0.336993,- 1.010103 },
{ 1.112336,- 1.012345,3.123848,27.108437,4.101011,- 3.741856,2.101023,- 0.71828,- 0.037585 },
{ - 0.113584,2.189736,2.031454,4.101011,19.897918,0.431637,- 3.111223,2.121314,1.784317 },
{ 0.718719,1.563849,1.836742,- 3.741865,0.431637,9.789365,- 0.103458,- 1.103456,0.238417 },
{ 1.742382,- 0.784165,- 1.056781,2.101023,- 3.111223,- 0.103458,14.713846,3.123789,- 2.213474 },
{ 3.067813,1.112348,0.336993,- 0.71828,2.121314,- 1.103456,3.123789,30.719334,4.446782 },
{ - 2.031743,3.123124,- 1.010103,- 0.037585,1.784317,0.238417,- 2.213474,4.446782,40.00001 }
};
双b……{ 2.1874369,33.992318,- 25.173417,01.784317,- 86.612343,1.1101230,4.719345,- 5.6784392 };
双重结果[数字];
int,j,k;
对于(i = 0;i ;;i + +)
{
双max_i =晶圆厂(一个[我]的[我]);/*储存第我列的绝对最大值*/
指数=我;我列的绝对最大值得在哪一行指示第/ * * /
对于(j = i + 1;j 数字;j + +)
{
如果(晶圆厂(一个[ J ] [我]) max_i)
{
max_i =晶圆厂(一个[ J ] [我]);
索引= j;
}
}…
/ *交换第指数行与第我行*/
{
双TMP;
对于(j = 0;j 数字;j + +)
{
一个[索引];
[索引];
[我];
}
索引[索引];
b [索引];
[我] = TMP;
}
以下进行三角化/ * * /
对于(j = i + 1;j 数字;j + +)
{
双TMP;
对于(k = i;k 数字;k + +)
{
[…];
}
b [ j ];
}
}
/ *打印三角化后的A、B * /
printf(“矩阵为:\n”);
对于(i = 0;i ;;i + +)
{
对于(j = 0;j 数字;j + +)
{
printf(“% F T”,一个[我] [ J ]);
}
printf(“\n”);
}
printf(“B矩阵为:\n”);
对于(i = 0;i ;;i + +)
{
printf(“% F T、B [我]);
}
/ *上面已将A、B计算出来,下面求解方程....... */
用于(i =数字1;i = 0;i -)
{
双TMP=0;
对于(= = 1;j i;j -)
{
TMP =结果;
}
Result[i] = (b[i]-tmp) /a[i][i];
}
/ * print equations.
Printf (the solution of the \n equations is: \n);
For (I = 0; I NUM; i++)
{
Printf (%f\t, result[i]);
}
Getch
您可能关注的文档
- 写给初次接触黑苹果的朋友的一封信(A letter to a friend who first touched a black apple).doc
- 写给要参加美国数学建模竞赛(MCM)的同学(For students who want to compete in the American Mathematical Modeling Contest (MCM)).doc
- 再谈 Web 默认字体(Talk about the default font for Web).doc
- 冬吴相对论第012讲——奥巴马时代的机遇与挑战(012 remarks on the theory of relativity in winter Wu -- opportunities and challenges in the Obama Era).doc
- 写给那些热忠于游戏角色设定的画手们(To those who are hot and loyal to the game character settings).doc
- 决定企业竞争力的中间群体管理(Management of intermediate groups that determine enterprise competitiveness).doc
- 决定手机市场的设计力量(Determine the design power of the mobile phone market).doc
- 决定白领薪酬管理多少的重要因素(Determine the number of white-collar remuneration management important factors).doc
- 决明子2(Semen Cassiae 2).doc
- 决策支持系统名词解释(Decision support system, noun, explanation).doc
- 可口可乐销售渠道指引(Coca-Cola sales channel guide).doc
- 可持续发展百事可乐缘何主沉浮(Sustainable development, Pepsi Cola, why).doc
- 可缓解便秘的幼儿饮品-西梅汁-苹果胡萝卜汁(转)_快乐转贴_论坛_太平洋亲子网(Can relieve constipation children drink prune juice and apple Fresh Carrot Juice (to) _ happy _ forum posted _ Pacific Family Network).doc
- 可口麦田讲述提拉米苏的由来(About the origin of the coca crop Tiramisu).doc
- 可编程控制器(PLC)是以微处理器为核心的通 - 山东(Programmable logic controller (PLC) is based on microprocessor as the core of Shandong).doc
- 右脑时代,重在管理人的感觉(The right brain era focuses on managing people's feelings).doc
- 可能是为纪念金田起义的(Probably for the sake of the Jin Tian Uprising).doc
- 可编程控制答案(Programmable control answer).doc
- 右脑记忆单词(Right brain memory words).doc
- 可用性及测试方法小介绍(A brief introduction to usability and testing methods).doc
最近下载
- 第四届全国工业设计职业技能大赛(无损检测员赛项)选拔赛考试题库(含答案).docx VIP
- 结缔组织病相关的间质性肺疾病诊断和治疗.pptx VIP
- 部编语文六年级上册第八单元整体教学设计教案.docx VIP
- 2024届高考作文素材- 敦煌.docx VIP
- 学年山东省济南市天桥区数学五年级上册第一学期期末考试真题(人教版,含答案).docx VIP
- 05G511 梯形钢屋架图集标准.docx
- ARM Cortex-M 系列:ARM Cortex-M7 系列_(4).Cortex-M7的指令集.docx
- 全驱动灵巧手的电气系统设计及控制方法研究.pdf
- 眼肿瘤 ppt课件(必威体育精装版文档).ppt VIP
- 天然气企业LNG储配站交接班记录式样.pdf VIP
文档评论(0)