Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
1
Help us understand the problem. What is going on with this article?
@mrrclb48z

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

1
Help us understand the problem. What is going on with this article?
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.
Sign Up
If you already have a Qiita account Login
1
Help us understand the problem. What is going on with this article?