Package: caracas 2.1.1

Mikkel Meyer Andersen

caracas: Computer Algebra

Computer algebra via the 'SymPy' library (<https://www.sympy.org/>). This makes it possible to solve equations symbolically, find symbolic integrals, symbolic sums and other important quantities.

Authors:Mikkel Meyer Andersen [aut, cre, cph], Søren Højsgaard [aut, cph]

caracas_2.1.1.tar.gz
caracas_2.1.1.zip(r-4.5)caracas_2.1.1.zip(r-4.4)caracas_2.1.1.zip(r-4.3)
caracas_2.1.1.tgz(r-4.4-any)caracas_2.1.1.tgz(r-4.3-any)
caracas_2.1.1.tar.gz(r-4.5-noble)caracas_2.1.1.tar.gz(r-4.4-noble)
caracas_2.1.1.tgz(r-4.4-emscripten)caracas_2.1.1.tgz(r-4.3-emscripten)
caracas.pdf |caracas.html
caracas/json (API)
NEWS

# Install 'caracas' in R:
install.packages('caracas', repos = c('https://r-cas.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/r-cas/caracas/issues

On CRAN:

8.61 score 24 stars 1 packages 52 scripts 426 downloads 108 exports 52 dependencies

Last updated 10 months agofrom:c230dee07c. Checks:OK: 5 WARNING: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 26 2024
R-4.5-winOKOct 26 2024
R-4.5-linuxOKOct 26 2024
R-4.4-winOKOct 26 2024
R-4.4-macWARNINGOct 26 2024
R-4.3-winOKOct 26 2024
R-4.3-macWARNINGOct 26 2024

Exports:%*%%>%add_prefixall_varsapartas_characteras_character_matrixas_diagas_expras_funcas_symas_vecaskcancelcollectcolspancolSums_columnspacecrossprod_def_symdef_sym_vecdenominatorderder2detdiagdiag_diag<-diff_matdo_ladoitdrop_remaindereigenvaleigenveceval_to_symbolexpandexpand_funcexpand_logexpand_trigeye_symfactor_fraction_partsfree_symbolsget_basisget_pyget_sympyGramSchmidthas_sympyhessianinstall_sympyintinvis_symjacobianlimlistifyls_symLUdecompositionmat_powmatrifymatrix_matrix_symmatrix_sym_diagmatrix_sym_symmetricNnullspacenumeratorones_sympinvprod_QRdecompositionrankMatrix_reciprocal_matrixrowspacerowSums_rrefscale_matrixscoresimplifysingular_valuessolve_linsolve_lower_triangularsolve_syssolve_upper_triangularsubssum_svd_sym_classsym_inheritssymbolsymbol_classsymbol_is_matrixsympy_funcsympy_versiontaylortcrossprod_textexshowto_listto_matrixto_vectortrace_tuplifyunbracketunscale_matrixvector_symvectorfyzeros_sym

Dependencies:backportsbootbroomclicolorspacecowplotcpp11DerivdoBydplyrfansifarvergenericsggplot2gluegtablehereisobandjsonlitelabelinglatticelifecyclemagrittrMASSMatrixmgcvmicrobenchmarkmodelrmunsellnlmepillarpkgconfigpngpurrrR6rappdirsRColorBrewerRcppRcppTOMLreticulaterlangrprojrootscalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

01 - Introduction to 'caracas'

Rendered froma01-introduction.Rmdusingknitr::rmarkdownon Oct 26 2024.

Last update: 2022-06-29
Started: 2022-06-29

03 - Objects in 'caracas'

Rendered froma03-objects.Rmdusingknitr::rmarkdownon Oct 26 2024.

Last update: 2022-08-31
Started: 2022-08-31

05 - Extending 'caracas'

Rendered froma05-extend-caracas.Rmdusingknitr::rmarkdownon Oct 26 2024.

Last update: 2023-01-31
Started: 2022-06-30

11 - Linear algebra in caracas

Rendered froma11-linear-algebra.Rmdusingknitr::rmarkdownon Oct 26 2024.

Last update: 2023-10-13
Started: 2022-06-30

21 - Concentration and covariance matrix in an autoregressive model and in a dynamic linear model

Rendered froma21-ar-ssm.Rmdusingknitr::rmarkdownon Oct 26 2024.

Last update: 2023-10-10
Started: 2022-06-29

22 - Fastest route through the forest

Rendered froma22-fastest-route.Rmdusingknitr::rmarkdownon Oct 26 2024.

Last update: 2023-08-11
Started: 2022-06-29

91 - Using the 'SymPy' object directly

Rendered froma91-sympy-object.Rmdusingknitr::rmarkdownon Oct 26 2024.

Last update: 2022-06-30
Started: 2022-06-30

95 - Arbitrary precision arithmetic

Rendered froma95-arbitrary-precision-arithmetic.Rmdusingknitr::rmarkdownon Oct 26 2024.

Last update: 2022-06-30
Started: 2022-06-29

99 - Reference

Rendered froma99-reference.Rmdusingknitr::rmarkdownon Oct 26 2024.

Last update: 2023-10-13
Started: 2022-06-29

Chunk engine for easy tex output in Rmarkdown and Quarto

Rendered froma30-chunk-engine.Rmdusingknitr::rmarkdownon Oct 26 2024.

Last update: 2023-08-16
Started: 2023-08-14

Readme and manuals

Help Manual

Help pageTopics
Extract or replace parts of an object[.caracas_symbol
Extract or replace parts of an object[<-.caracas_symbol
Pipe%>%
Add prefix to each element of matrixadd_prefix
All variablesall_vars
Partial fraction decomposition on a rational functionapart
Coerce symbol to characteras_character
Get matrix as character matrixas_character_matrix
Construct diagonal matrix from vectoras_diag
Convert caracas object to Ras.expression.caracas_solve_sys_sol as.expression.caracas_symbol as_expr
Convert expression into function object.as.function.caracas_symbol as_func
Convert R object to caracas symbolas_sym
Stacks matrix to vectoras_vec
Convert symbol to characteras.character.caracas_symbol
Ask for a symbol's propertyask
Put rational function into standard formcancel
Collects common powers of a term in an expressioncollect
Column space (range) of a symbolic matrixcolspan
Cumulative Sumscumsum.caracas_symbol
Define (invisibly) caracas symbols in global environmentdef_sym def_sym_vec
Symbolic differentiation of an expressionder
Symbolic differentiation of second order of an expressionder2
Matrix diagonaldiag
Symbolic diagonal matrixdiag_
Replace matrix diagonaldiag-set diag<-
Matrix diagonaldiag.caracas_symbol
Replace diagonaldiag<-.caracas_symbol
Difference matrixdiff_mat
Dimensions of a caracas symboldim.caracas_symbol
Dimensions of a caracas symboldim<-.caracas_symbol
Do linear algebra operationdo_la
Perform calculations setup previouslydoit
Remove remainder termdrop_remainder
Create a symbol from a stringeval_to_symbol
Expand expressionexpand
Expand a function expressionexpand_func
Expand a logarithmic expressionexpand_log
Expand a trigonometric expressionexpand_trig
Expand expressionfactor_
Get numerator and denominator of a fractiondenominator fraction_parts numerator
Get free symbol in expressionfree_symbols
Generate generic vectors and matricesgeneric-matrices matrix_sym matrix_sym_diag matrix_sym_symmetric vector_sym
Get basisget_basis
Access 'py' objectget_py
Access 'SymPy' directlyget_sympy
Check if 'SymPy' is availablehas_sympy
Install 'SymPy'install_sympy
Integrate a functionint
Is object a caracas symbolis_sym
Compute Jacobianjacobian
Kronecker product of two matriceskronecker,caracas_symbol,caracas_symbol-method
Limit of a functionlim
Do linear algebra operationchol.caracas_symbol columnspace det eigenval eigenvec GramSchmidt inv linalg LUdecomposition nullspace pinv QRdecomposition rowspace rref singular_values svd_ trace_
Convert object to list of elementslistify
List defined symbolsls_sym
Matrix powermat_pow
Math functionsMath.caracas_symbol
Creates matrix from array symbolmatrify
Symbolic matrixmatrix_
Matrix cross productcrossprod_ matrix_cross_product tcrossprod_
Matrix multiplication%*% %*%.caracas_symbol matrix-products
Numerical evaluationN
Math operatorsOps.caracas_symbol
Print scaled matrixprint.caracas_scaled_matrix
Print solutionprint.caracas_solve_sys_sol
Print symbolprint.caracas_symbol
Product of a functionprod_
Rank of matrixrankMatrix_
Elementwise reciprocal matrixreciprocal_matrix
Form Row and Column SumscolSums_ rowSums_ rowSums_colSums
Create list of factors as in a productscale_matrix
Score and Hessian matrixhessian score score_hessian
Simplify expressionsimplify
Solve a linear system of equationssolve_lin
Solves a system of non-linear equationssolve_sys
Solve lower or upper triangular systemsolve_lower_triangular solve_triangular solve_upper_triangular
Solve a System of Linear Equationssolve.caracas_symbol
Special matrices: zeros_sym, ones_sym, eye_symeye_sym ones_sym special_matrices zeros_sym
Substitute symbol for valuesubs
Sum of a functionsum_
Summationsum.caracas_symbol
Ask type of caracas symbolsym_class
Ask if type of caracas symbol is of a requested typesym_inherits
Create a symbolsymbol
Ask type of caracas symbolsymbol_class
Check if object is a caracas matrixsymbol_is_matrix
Call a SymPy function directly on xsympy_func
Get 'SymPy' versionsympy_version
Transpose of matrixt.caracas_symbol
Taylor expansiontaylor
Export object to TeXtex
Export scaled matrix to textex.caracas_scaled_matrix
Dump latex representation of sympy object.texshow
Coerce caracas objectto_list to_matrix to_something to_vector
Convert object to tupletuplify
Remove inner-most dimensionunbracket
Extract unique elementsunique.caracas_symbol
Extract matrix from scaled matrixunscale_matrix
Creates symbol vector from list of caracas symbolsvectorfy