next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Parametrization :: legendreSymbol

legendreSymbol -- Compute the Legendresymbol.

Synopsis

Description

Computes Legendre-symbol a over p.

-- -*- M2-comint -*- {* hash: -763239538 *}
i1 : legendreSymbol(4,7)

o1 = 1
i2 : legendreSymbol(5,7)

o2 = -1

See also

Ways to use legendreSymbol :

For the programmer

The object legendreSymbol is a method function.