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

本文,用Mathematica,把给定的数字分解为Gauss素数的乘积。

工具/原料

  • 电脑
  • Mathematica

方法/步骤

  1. 1

    整数分化,用到的号令是FactorInteger。

    好比,给出30的素因子:

    FactorInteger[30]

    a31e1214c27bd28225f81af33cb1eef97ebd36cb.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_auto%2Fquality%2Cq_80
  2. 2

    数字2在平凡整数规模内是素数:

    FactorInteger[2]

    0d55dc7bd282868905370c0465f97fbd4d7c37cb.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_auto%2Fquality%2Cq_80
  3. 3

    可是数字2在Gauss整数规模内不是素数:

    FactorInteger[2, GaussianIntegers -> True]

    c33acc828689a14612c0554cf4bd4c7c35b334cb.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_auto%2Fquality%2Cq_80
  4. 4

    数字3在Gauss整数规模内是素数:

    FactorInteger[3, GaussianIntegers -> True]

    d3c39889a146b7b14888c408c77c34b33d4135cb.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_auto%2Fquality%2Cq_80
  5. 5

    数字5在Gauss整数规模内不是素数:

    FactorInteger[5, GaussianIntegers -> True]

    87c8bf46b7b1eef9d8ccf7c9bfb33c4132ba32cb.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_auto%2Fquality%2Cq_80
  6. 6

    这样,30在Gauss整数规模内有5个素因子:

    FactorInteger[30, GaussianIntegers -> True]

    a007a9b1eef97fbde40d8f06b74133bad24133cb.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_auto%2Fquality%2Cq_80END

注重事项

  • 我们常将数字2分化为(1+i)(1-i),这实在等价于-i(1+i)^2。
  • 发表于 2022-08-29 23:51
  • 阅读 ( 178 )
  • 分类:其他类型

相关问题

0 条评论

请先 登录 后评论