print.caracas_solve_sys_sol: Print solution

View source: R/output.R

print.caracas_solve_sys_solR Documentation

Print solution

Description

Print solution

Usage

## S3 method for class 'caracas_solve_sys_sol'
print(
  x,
  simplify = getOption("caracas.print.sol.simplify", default = TRUE),
  ...
)

Arguments

x

A caracas_symbol

simplify

Print solution in a simple format

...

Passed to print.caracas_symbol()

Examples

if (has_sympy()) {
  x <- symbol('x')
  solve_sys(x^2, -1, x)
  
  y <- symbol("y")
  lhs <- cbind(3*x*y - y, x)
  rhs <- cbind(-5*x, y+4)
  sol <- solve_sys(lhs, rhs, list(x, y))
  sol
}


caracas documentation built on June 22, 2024, 10:59 a.m.