polylib::discrim

Discriminant of a polynomial

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

Syntax

polylib::discrim(p, x)

Description

polylib::discrim(p, x) returns the discriminant of the polynomial p with respect to the variable x.

The function normal is applied to the discriminant before returning it.

Examples

Example 1

We compute the discriminant of the general quadratic equation:

polylib::discrim(a*x^2 + b*x + c, x);

Parameters

x

Indeterminante

p

Polynomial or polynomial expression

Return Values

polylib::discrim returns an element of the coefficient ring of p. If the coefficient ring is Expr or IntMod(n), an expression is returned.

Overloaded By

p

Algorithms

The discriminant of p with respect to the variable x is defined as:

,

where d is the degree and c is the leading coefficient of p.

See Also

MuPAD Functions

Was this topic helpful?