Help us understand the problem. What is going on with this article?

sympyで部分分数展開の複素根は計算できない?

More than 3 years have passed since last update.

何かいい方法は、ありますか?よろしくお願いします。

from sympy import *
var("x")
f=1/(1+x^2)
g=factor(f,extension=I)
print(g)
print(aprt(g))
# 1/((x - I)*(x + I))

(参考)【 Python で 部分分数展開 】>複素根は計算できない?(部分分数展開が途中で止まっている)
http://qiita.com/HirofumiYashima/items/5c4f31c14a748d5b0b0b
(参考)あらきけいすけの雑記帳>複素関数を知っている人は
http://d.hatena.ne.jp/arakik10/20050326/1111842127
(参考)Wolfram|Alpha: Computational Knowledge Engineで
https://www.wolframalpha.com/input/?i=1%2F(1%2Bx%5E2)
(参考)Integral of 1/(x^2+1) - Proof using complex numbers
https://youtu.be/NqI8_ieh2UA

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした