sos: Precomputed sum of squares data

sos100R Documentation

Precomputed sum of squares data

Description

Five data matrices with precomputed results from sumofsquares(n, 10, zerosum=TRUE, maxt=Inf) for n=100, n=200, n=400,n=800, and n=1000.

Usage

data(sos)

sos200

sos400

sos800

sos1000

Format

For each line of a matrix holds \sum_{i=1}^k x_i^2=n and \sum_{i=1}^k x_i=0. It contains all integer solutions up to k<=10. A NA means that this entry is not used.

An object of class matrix (inherits from array) with 2433 rows and 10 columns.

An object of class matrix (inherits from array) with 15533 rows and 10 columns.

An object of class matrix (inherits from array) with 118696 rows and 10 columns.

An object of class matrix (inherits from array) with 229830 rows and 10 columns.

Examples

data(sos)
head(sos100)
rowSums(sos100^2, na.rm=TRUE)
rowSums(sos100, na.rm=TRUE)

sigbertklinke/exams2moodle documentation built on July 6, 2023, 3:26 p.m.