Learn R Programming

caracas (version 1.0.1)

solve_sys: Solves a system of non-linear equations

Description

If called as solve_sys(lhs, vars) the roots are found. If called as solve_sys(lhs, rhs, vars) the solutions to lhs = rhs for vars are found.

Usage

solve_sys(lhs, rhs, vars)

Arguments

lhs

Equation (or equations as row vector/1xn matrix)

rhs

Equation (or equations as row vector/1xn matrix)

vars

vector of variable names or symbols

Value

A list with solutions (with class caracas_solve_sys_sol for compact printing), each element containing a named list of the variables' values.