上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页

2022年10月10日

摘要: 已知A矩阵为: 4 20 12 8 3 15 7 40 8 22 12 36 11 30 18 46 求该矩阵的逆、行列式、秩、迹 a=[4,20,12,8;3,15,7,40;8,22,12,36;11,30,18,46]; b=inv(a); c=det(a); d=rank(a); f=tra 阅读全文

posted @ 2022-10-10 19:13 lachesism 阅读(124) 评论(0) 推荐(0)

摘要: 已知A矩阵为: 4 20 12 8 3 15 7 40 8 22 12 36 11 30 18 46 将矩阵转变为对称矩阵 4 20 12 8 20 15 7 40 12 7 12 36 8 40 36 46 a=[4,20,12,8;3,15,7,40;8,22,12,36;11,30,18,46 阅读全文

posted @ 2022-10-10 19:10 lachesism 阅读(515) 评论(0) 推荐(0)

摘要: 已知A矩阵为: 4 20 12 8 3 15 7 40 8 22 12 36 11 30 18 46 通过矩阵提取,获得: 8 0 0 4 0 7 15 0 0 12 22 0 46 0 0 11 就是保留2对角线上的值并进行交换 a=[4,20,12,8;3,15,7,40;8,22,12,36; 阅读全文

posted @ 2022-10-10 19:09 lachesism 阅读(218) 评论(0) 推荐(0)

2022年9月26日

摘要: #include<stdio.h> main() { int a,b,suma,sumb; scanf("%d %d",&a,&b); suma=0; sumb=0; while(a!=0||b!=0) { if(a==1) { suma=suma+b; } else if(a==2) { sumb 阅读全文

posted @ 2022-09-26 23:11 lachesism 阅读(402) 评论(0) 推荐(0)

摘要: #include <stdio.h> main() { int n,m,sum=0; scanf("%d",&n); m=n%10; sum=sum+m; printf("%d",m); n=n/10; while(n!=0) { m=n%10; sum=sum+m; printf("+%d",m) 阅读全文

posted @ 2022-09-26 23:10 lachesism 阅读(293) 评论(0) 推荐(0)

摘要: #include <stdio.h> main() { int x,t,m; scanf("%d",&x); t=0; m=x; while(x!=0) { x=x/10; t++; } x=m; t=t-1; while(t!=0) { x=x/10; t--; } printf("%d",x); 阅读全文

posted @ 2022-09-26 23:09 lachesism 阅读(194) 评论(0) 推荐(0)

摘要: #include <stdio.h> main() { int t,x; float sum; t=0; sum=0; scanf("%d",&x); if(x 1) { printf("无数据"); } else{ while (x!=-1) { sum+=x; t++; scanf("%d",& 阅读全文

posted @ 2022-09-26 23:08 lachesism 阅读(383) 评论(0) 推荐(0)

摘要: #include <stdio.h> main() { int t,x; t=0; scanf("%d",&x); while (x!=0) { x=x/10; t++; } printf("%d", t); } 阅读全文

posted @ 2022-09-26 23:08 lachesism 阅读(220) 评论(0) 推荐(0)

摘要: #include <stdio.h> main() { int t,x; scanf("%d",&x); t=-1; while (x!=-1) { if(x>t) { t=x; } scanf("%d",&x); } printf("%d", t); } 阅读全文

posted @ 2022-09-26 23:07 lachesism 阅读(227) 评论(0) 推荐(0)

摘要: #include <stdio.h> main() { int m, n, j=0, k=0; scanf("%d %d",&m,&n); j = m; while (j % n != 0) { j = j + m; k = (m * n) / j; } printf("最小公倍数是%d\n最大公约 阅读全文

posted @ 2022-09-26 23:06 lachesism 阅读(26) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页