Learn R Programming

exams.forge (version 1.0.10)

sos100: Precomputed Sum of Squared 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

Arguments

Format

For each line of a 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

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

Run the code above in your browser using DataLab