QPrimePower: QPrimePower QPrimePower creats the Quadratic residues of the...

Description Usage Arguments Details Value Examples

Description

QPrimePower QPrimePower creats the Quadratic residues of the prime number.

Usage

1
QPrimePower(cardin)

Arguments

cardin

integer

Details

The given input is prime power it retuns the matrix of order cardin. if the input is not prime number then it returns NULL.

Value

matrix of cardin x cardin

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
QPrimePower(9)
#      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9]
#[1,]    0    1   -1    1   -1    1   -1    1   -1
#[2,]    1    0    1   -1    1    1   -1   -1   -1
#[3,]   -1    1    0   -1    1   -1   -1    1    1
#[4,]    1   -1   -1    0    1   -1    1    1   -1
#[5,]   -1    1    1    1    0   -1    1   -1   -1
#[6,]    1    1   -1   -1   -1    0    1   -1    1
#[7,]   -1   -1   -1    1    1    1    0   -1    1
#[8,]    1   -1    1    1   -1   -1   -1    0    1
#[9,]   -1   -1    1   -1   -1    1    1    1    0
QPrimePower(36)
#NULL

HadamardR documentation built on April 14, 2020, 7:01 p.m.