Learn R Programming

smallstuff (version 1.0.3)

systemEq: Solve a System of Equations

Description

Solve a system of equations if it has a unique solution; output an error message otherwise

Usage

systemEq(A, y)

Value

the unique solution x to Ax=y

Arguments

A

matrix A in Ax=y

y

output vector in Ax=y

Examples

Run this code
systemEq(matrix(c(1:3,2,4,4),3),c(3,6,7))

Run the code above in your browser using DataLab