LoginSignup
1
1

More than 1 year has passed since last update.

sympy で二重根号を外すには sqrtdenest()

Posted at

以下のような二重根号を外す。

$$
\sqrt{8 + 4\sqrt{3}}
$$

>>> from sympy import sqrt, sqrtdenest
>>> x = sqrt(8 + 4*sqrt(3))
>>> sqrtdenest(x)
sqrt(2) + sqrt(6)
1
1
2

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
1
1