- 注册时间
- 2021-11-19
- 最后登录
- 1970-1-1
- 威望
- 星
- 金币
- 枚
- 贡献
- 分
- 经验
- 点
- 鲜花
- 朵
- 魅力
- 点
- 上传
- 次
- 下载
- 次
- 积分
- 8861
- 在线时间
- 小时
|
楼主 |
发表于 2024-1-17 12:03:23
|
显示全部楼层
- /*选择多项式函数,穷举法,20240117_120150*/
- {
- for(a4=0,0,
- for(a3=-1,1,
- for(a2=-10,10,
- for(a1=-10,10,
- for(a0=-10,10,
- f=x^5+a4*x^4+a3*x^3+a2*x^2+a1*x+a0;/*定义多项式*/
- if(polisirreducible(f), /*如果是不可约多项式*/
- ga=polgalois(f);/*得到伽罗瓦群相关信息*/
- if(ga[1]<120,
- print([1,a4,a3,a2,a1,a0],ga) /*打印多项式系数与伽罗瓦群信息*/
- )
- )
- )
- )
- )
- )
- )
- }
复制代码
这个是parigp的代码,大括号是必须的!
输出结果
- GP/PARI CALCULATOR Version 2.15.4 (released)
- amd64 running mingw (x86-64/GMP-6.1.2 kernel) 64-bit version
- compiled: Jun 28 2023, gcc version 10-posix 20210110 (GCC)
- threading engine: single
- (readline v8.0 enabled, extended help enabled)
- Copyright (C) 2000-2022 The PARI Group
- PARI/GP is free software, covered by the GNU General Public License, and comes
- WITHOUT ANY WARRANTY WHATSOEVER.
- Type ? for help, \q to quit.
- Type ?18 for how to get moral (and possibly technical) support.
- parisizemax = 400000000, primelimit = 500000
- (12:00) gp > \r"C:\Program Files (x86)\Pari64-2-15-4\my_script\selectpol.gp"
- [1, 0, -1, -10, 8, 9][10, 1, 1, "D(5) = 5:2"]
- [1, 0, -1, -7, -1, -3][10, 1, 1, "D(5) = 5:2"]
- [1, 0, -1, -7, 8, -5][60, 1, 1, "A5"]
- [1, 0, -1, -4, 4, -1][10, 1, 1, "D(5) = 5:2"]
- [1, 0, -1, -4, 7, 2][20, -1, 1, "F(5) = 5:4"]
- [1, 0, -1, -4, 10, -4][10, 1, 1, "D(5) = 5:2"]
- [1, 0, -1, -2, -2, -1][10, 1, 1, "D(5) = 5:2"]
- [1, 0, -1, -2, 3, 4][10, 1, 1, "D(5) = 5:2"]
- [1, 0, -1, 2, -2, 1][10, 1, 1, "D(5) = 5:2"]
- [1, 0, -1, 2, 3, -4][10, 1, 1, "D(5) = 5:2"]
- [1, 0, -1, 4, 4, 1][10, 1, 1, "D(5) = 5:2"]
- [1, 0, -1, 4, 7, -2][20, -1, 1, "F(5) = 5:4"]
- [1, 0, -1, 4, 10, 4][10, 1, 1, "D(5) = 5:2"]
- [1, 0, -1, 7, -1, 3][10, 1, 1, "D(5) = 5:2"]
- [1, 0, -1, 7, 8, 5][60, 1, 1, "A5"]
- [1, 0, -1, 10, 8, -9][10, 1, 1, "D(5) = 5:2"]
- [1, 0, 0, -10, -10, -6][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 0, -10, 10, 2][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 0, -5, -5, -8][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 0, -5, -4, -1][10, 1, 1, "D(5) = 5:2"]
- [1, 0, 0, -5, 0, -3][10, 1, 1, "D(5) = 5:2"]
- [1, 0, 0, -5, 10, -4][10, 1, 1, "D(5) = 5:2"]
- [1, 0, 0, -4, 1, 4][60, 1, 1, "A5"]
- [1, 0, 0, -3, 2, 1][10, 1, 1, "D(5) = 5:2"]
- [1, 0, 0, -1, -2, -3][60, 1, 1, "A5"]
- [1, 0, 0, 0, 0, -10][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 0, 0, 0, -9][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 0, 0, 0, -8][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 0, 0, 0, -7][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 0, 0, 0, -6][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 0, 0, 0, -5][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 0, 0, 0, -4][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 0, 0, 0, -3][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 0, 0, 0, -2][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 0, 0, 0, 2][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 0, 0, 0, 3][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 0, 0, 0, 4][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 0, 0, 0, 5][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 0, 0, 0, 6][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 0, 0, 0, 7][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 0, 0, 0, 8][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 0, 0, 0, 9][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 0, 0, 0, 10][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 0, 1, -2, 3][60, 1, 1, "A5"]
- [1, 0, 0, 3, 2, -1][10, 1, 1, "D(5) = 5:2"]
- [1, 0, 0, 4, 1, -4][60, 1, 1, "A5"]
- [1, 0, 0, 5, -5, 8][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 0, 5, -4, 1][10, 1, 1, "D(5) = 5:2"]
- [1, 0, 0, 5, 0, 3][10, 1, 1, "D(5) = 5:2"]
- [1, 0, 0, 5, 10, 4][10, 1, 1, "D(5) = 5:2"]
- [1, 0, 0, 10, -10, 6][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 0, 10, 10, -2][20, -1, 1, "F(5) = 5:4"]
- [1, 0, 1, -6, 4, -3][10, 1, 1, "D(5) = 5:2"]
- [1, 0, 1, -6, 10, -4][10, 1, 1, "D(5) = 5:2"]
- [1, 0, 1, -5, -4, -7][60, 1, 1, "A5"]
- [1, 0, 1, -3, 0, 3][60, 1, 1, "A5"]
- [1, 0, 1, -3, 1, -3][10, 1, 1, "D(5) = 5:2"]
- [1, 0, 1, -1, 6, -8][60, 1, 1, "A5"]
- [1, 0, 1, 1, 6, 8][60, 1, 1, "A5"]
- [1, 0, 1, 3, 0, -3][60, 1, 1, "A5"]
- [1, 0, 1, 3, 1, 3][10, 1, 1, "D(5) = 5:2"]
- [1, 0, 1, 5, -4, 7][60, 1, 1, "A5"]
- [1, 0, 1, 6, 4, 3][10, 1, 1, "D(5) = 5:2"]
- [1, 0, 1, 6, 10, 4][10, 1, 1, "D(5) = 5:2"]
复制代码
|
|