Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeRoots ¶
func ComputeRoots(coefficients ...float64) (realRoots []float64, complexRoots []complex128)
Return real and complex root of real polynomial with given coefficients in reverse order with their degree, ending with coefficient with degree 0. Every n degree polynomial has n roots Is assumed that length of coefficients is at least 1
For polynomial of degree:
- 1: Opposite of coefficient - 2: Quadratic formula
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.