sos: Precomputed Sum of Squared Data

sos100R Documentation

Precomputed Sum of Squared Data

Description

A data matrix with precomputed results from sumofsquares(n, 10, zerosum=TRUE, maxt=Inf) for n=100.

More generally, the sos() function can be used to retrieve or compute results from sumofsquares(n, nmax, zerosum=TRUE, maxt=Inf).

Usage

data(sos100)

Format

For each line of the matrix it 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. NA means that this entry is not used.

Examples

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

exams.forge.data documentation built on Sept. 11, 2025, 9:09 a.m.