Calc.SolveQuartic Method

Solves the cubic equation c4*x^4 + c3*x^3 + c2*x^2 + c1 * x+ c0 = 0 for x.
public static int SolveQuartic( 
   double c4
   double c3
   double c2
   double c1
   double c0
   List<double> s 
)

Parameters

c4
double

Coefficient 1.

c3
double

Coefficient 2.

c2
double

Coefficient 3.

c1
double

Coefficient 4.

c0
double

Coefficient 5.

s
List<double>

An array where solutions are pushed.

Return Value

int

The number of solutions found (=number of numbers pushed to array)

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition