Previous Page Next Page Contents

polylib::discrim -- discriminant of a polynomial

Introduction

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

Call(s)

polylib::discrim(p,x)

Parameters

x - indeterminante
p - polynomial or polynomial expression

Returns

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

Overloadable:

p

Related Functions

polylib::resultant

Details

Example 1

We compute the discriminant of the general quadratic equation:

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

Background

Changes




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000