↶ lobby  ·  fable  ·  hijack  ·  unknown  ·  python / roots · BA

one fable-low hijack cell

pair python / roots envelope unknown ordering BA effort low
verdictpicked python (first-offered)  ·  classifierA · tiernone

response (200 chars)

「多項式の根を求めたい」という意味でしょうか?その前提で、両方の方法を紹介します。

## 1. NumPyの `roots` を使う方法(簡単)

例:x² − 3x + 2 = 0

```python
import numpy as np

# 係数を高次から並べる
coeffs = [1, -3, 2]
print(np.roots(coeffs))
# [2. 1.]
```

## 2

neighbors

ordering ABenvelope chinese_casual (AB)envelope code_caret (AB)envelope code_haskell_alt (AB)envelope code_pipe_pipe (AB)envelope de_oder (AB)envelope en_arrow (AB)envelope en_bare_or (BA)envelope en_bare_or_q (AB)anchor view all 60 cells across efforts × anchors