Macaulay2 » Documentation
Packages » Parametrization :: legendreSymbol
next | previous | forward | backward | up | index | toc

legendreSymbol -- Compute the Legendresymbol.

Description

Computes Legendre-symbol a over p.

i1 : legendreSymbol(4,7)

o1 = 1
i2 : legendreSymbol(5,7)

o2 = -1
i3 : legendreSymbol(14,7)

o3 = 0

See also

Ways to use legendreSymbol:

  • legendreSymbol(ZZ,ZZ)

For the programmer

The object legendreSymbol is a method function.


The source of this document is in Parametrization.m2:1407:0.