Learn R Programming

optR (version 1.2.5)

optR.gauss: gauss to solve linear systems

Description

Function solves linear systems using Gauss Elimination. The function solves equation of form Ax=b to Ux=c (where U is upper triangular matrix)

Usage

"optR"(A, b, tol = 1e-07)

Arguments

A
: Input Matrix
b
: Response
tol
: Tolerance
method
: To be used to perform factorization

Value

U : Upper triangular matrixc : Transformed bbeta : Estimates

Examples

Run this code
A<-matrix(c(0,-1,1, -1,2,-1,2,-1,0), nrow=3,ncol=3, byrow = TRUE)
b<-matrix(c(0,0, 1), nrow=3,ncol=1,byrow=TRUE)
Z<-optR(A, b, method="gauss")

Run the code above in your browser using DataLab