0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

多項式(x+1)^2023をx^2で割った余り「2023立教大学」をwolframalphaとsympyでやってみた。

Last updated at Posted at 2023-03-20

WolframAlphaにPolynomialMod関数がありました。
sympyにdiv関数がありました。
多項式を忘れていました。

オリジナル

大学入試数学問題集成>テキスト
未登録

wolframで

wolframで(失敗例)

できると思いましたが、できませんでした。
判別?(気を利かし)してはくれませんでした。

標準の計算時間制限を超えました...mathematicaならできますか?

sympyで(【なぜ数】なぜを深堀る高校数学様の方法で)

「多項式に関する剰余の定理(じょうよのていり、英: polynomial remainder theorem)」を勉強中

sympyで

div関数でできました。modでは、できませんでした。

①私の環境は,pycharmです。
②よく聞くのは、Jupyterです。

from sympy import *
x=Symbol('x',real=True)
print("#",Mod((x+1)**2023,x**2))
print("#",div((x+1)**2023,x**2))
# Mod((x + 1)**2023, x**2)
# (途中省略.... ,2023*x+1)

③web上で、上記のソースをコピー貼り付けでも、できました。
黒背景の右上に、マウスを移動すると、コピーマークが発生します。
計算時間は約2分です。資源の無駄使い。ごめんなさい。

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?