手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

【抽象代数】用Mathematica分解Gauss整数

时间:2024-10-22 07:04:54

1、整数分解,用到的命令是FactorInteger。比如,给出30的素因子:FactorInteger[30]

【抽象代数】用Mathematica分解Gauss整数

2、数字2在普通整数范围内是素数:FactorInteger[2]

【抽象代数】用Mathematica分解Gauss整数

3、但是数字2在Gauss整数范围内不是素数:FactorInteger[2, GaussianIntegers -> True]

【抽象代数】用Mathematica分解Gauss整数

4、数字3在Gauss整数范围内是素数:FactorInteger[3, GaussianIntegers -> True]

【抽象代数】用Mathematica分解Gauss整数

5、数字5在Gauss整数范围内不是素数:FactorInteger[5, GaussianIntegers -> True]

【抽象代数】用Mathematica分解Gauss整数

6、这样,30在Gaus衡痕贤伎s整数范围内有5个素因子:FactorInteger[30, GaussianIntegers -> True]

【抽象代数】用Mathematica分解Gauss整数
© 手抄报圈