## Main functions

Main functions.

N()

Numerical evaluation

as_expr()

Convert caracas object to R

as_sym()

Convert object to symbol

def_sym()

Define caracas symbols in global environment

doit()

Perform calculations setup previously

fraction_parts()

Get numerator and denominator of a fraction

listify()

Convert object to list of elements

matrify()

Creates matrix from array symbol

subs()

Substitute symbol for value

subs_lst()

Substitute symbol for of value given by a list

subs_vec()

Substitute af vector of symbols for a vector of values

symbol()

Create a symbol

sympy_func()

Call a SymPy function directly on x

tuplify()

Convert object to tuple

unbracket()

Remove inner-most dimension

## Basic algebra

Functions related to simple operations.

Math(<caracas_symbol>)

Math functions

Ops(<caracas_symbol>)

Math operators

## Vector

Functions related to vectors.

diag<-(<caracas_symbol>)

Replace diagonal

[(<caracas_symbol>)

Extract or replace parts of an object

[<-(<caracas_symbol>)

Extract or replace parts of an object

sum(<caracas_symbol>)

Summation

## Simplification

Functions related to simplifying and expanding expressions.

expand()

Expand expression

expand_log()

Expand a logarithmic expression

expand_trig()

Expand a trigonometric expression

simplify()

Simplify expression

## Calculus

Functions related to calculus.

der()

Symbolic differentiation of an expression

der2()

Symbolic differentiation of second order of an expression

drop_remainder()

Remove remainder term

int()

Integrate a function

lim()

Limit of a function

prod_()

Product of a function

sum_()

Sum of a function

taylor()

Taylor expansion

## Linear algebra

Functions related to linear algebra.

as_character_matrix()

Get matrix as character matrix

as_diag()

Construct diagonal matrix from vector

diag<-()

Replace matrix diagonal

diag()

Matrix diagonal

diag(<caracas_symbol>)

Matrix diagonal

diag_()

Symbolic diagonal matrix

dim(<caracas_symbol>)

Dimensions of a caracas symbol

do_la()

Do linear algebra operation

columnspace() nullspace() rowspace() singular_values() inv() eigenval() eigenvec() GramSchmidt() pinv() rref() QRdecomposition() det()

Do linear algebra operation

%*%

Matrix multiplication

matrix_()

Symbolic matrix

reciprocal_matrix()

Elementwise reciprocal matrix

t(<caracas_symbol>)

Transpose of matrix

vec()

Stacks matrix to vector

## Solve

Functions related to solving equations

solve_lin()

Solve a linear system of equations

solve_sys()

Solves a system of non-linear equations

## Output

Functions related to output.

as.character(<caracas_symbol>)

Convert symbol to character

print(<caracas_solve_sys_sol>)

Print solution

print(<caracas_symbol>)

Print symbol

tex()

Export object to TeX

## Low level functions

These are various utility functions that are normally only called by advanced users.

eval_to_symbol()

Create a symbol from a string

## Assumptions

These are functions to deal with symbol assumptions.

ask()

## SymPy

These are functions to interact with SymPy, including installation and getting SymPy version.

get_py()

Access 'py' object

get_sympy()

Access 'SymPy' directly

has_sympy()

Check if 'SymPy' is available

install_sympy()

Install 'SymPy'

sympy_version()

Get 'SymPy' version

## Others

These are functions not mentioned above.

%>%

Pipe

## Complete reference

Math(<caracas_symbol>)

Math functions

N()

Numerical evaluation

Ops(<caracas_symbol>)

Math operators

as.character(<caracas_symbol>)

Convert symbol to character

as_character_matrix()

Get matrix as character matrix

as_diag()

Construct diagonal matrix from vector

as_expr()

Convert caracas object to R

as_sym()

Convert object to symbol

ask()

def_sym()

Define caracas symbols in global environment

der()

Symbolic differentiation of an expression

der2()

Symbolic differentiation of second order of an expression

diag<-(<caracas_symbol>)

Replace diagonal

diag<-()

Replace matrix diagonal

diag()

Matrix diagonal

diag(<caracas_symbol>)

Matrix diagonal

diag_()

Symbolic diagonal matrix

dim(<caracas_symbol>)

Dimensions of a caracas symbol

do_la()

Do linear algebra operation

doit()

Perform calculations setup previously

drop_remainder()

Remove remainder term

eval_to_symbol()

Create a symbol from a string

expand()

Expand expression

expand_log()

Expand a logarithmic expression

expand_trig()

Expand a trigonometric expression

fraction_parts()

Get numerator and denominator of a fraction

get_py()

Access 'py' object

get_sympy()

Access 'SymPy' directly

has_sympy()

Check if 'SymPy' is available

install_sympy()

Install 'SymPy'

int()

Integrate a function

lim()

Limit of a function

columnspace() nullspace() rowspace() singular_values() inv() eigenval() eigenvec() GramSchmidt() pinv() rref() QRdecomposition() det()

Do linear algebra operation

listify()

Convert object to list of elements

matrify()

Creates matrix from array symbol

%*%

Matrix multiplication

matrix_()

Symbolic matrix

%>%

Pipe

print(<caracas_solve_sys_sol>)

Print solution

print(<caracas_symbol>)

Print symbol

prod_()

Product of a function

reciprocal_matrix()

Elementwise reciprocal matrix

simplify()

Simplify expression

solve_lin()

Solve a linear system of equations

solve_sys()

Solves a system of non-linear equations

[(<caracas_symbol>)

Extract or replace parts of an object

subs()

Substitute symbol for value

subs_lst()

Substitute symbol for of value given by a list

subs_vec()

Substitute af vector of symbols for a vector of values

[<-(<caracas_symbol>)

Extract or replace parts of an object

sum(<caracas_symbol>)

Summation

sum_()

Sum of a function

symbol()

Create a symbol

sympy_func()

Call a SymPy function directly on x

sympy_version()

Get 'SymPy' version

t(<caracas_symbol>)

Transpose of matrix

taylor()

Taylor expansion

tex()

Export object to TeX

tuplify()

Convert object to tuple

unbracket()

Remove inner-most dimension

vec()

Stacks matrix to vector