native-nao
Version:
Nao is a math library written in C
19 lines (13 loc) • 486 B
Markdown
```c
int polynomial_solve_degree_1(const double * c, double * x);
int polynomial_solve_degree_2(const double * c, double * x);
int polynomial_solve_degree_3(const double * c, double * x);
int polynomial_solve_degree_4(const double * c, double * x);
```
* `c` is an array of coefficients (array size is degree + 1)
* `x` will receive an array of solutions (array size equals to the degrees)
### Return
The number of solutions.