The capability of R to do symbolic mathematics is enhanced by the caracas package. This package uses the Python computer algebra library SymPy as a back-end but caracas is tightly integrated in the R environment, thereby enabling the R user with symbolic mathematics within R. We demonstrate how mathematics and statistics can benefit from bridging computer algebra and data via R. This is done thought a number of examples and we propose some topics for small student projects. The caracas package integrates well with e.g. Rmarkdown, and as such creation of scientific reports and teaching is supported.
翻译:caracas包增强了R语言进行符号数学计算的能力。该包以Python计算机代数库SymPy作为后端,但caracas紧密集成于R环境之中,从而使得R用户能够在R内部进行符号数学运算。我们通过多个实例展示了数学与统计学如何借助R语言通过桥接计算机代数与数据而获益,并据此提出了一些适合学生进行的小型研究课题。caracas包与Rmarkdown等工具能够良好整合,从而支持科学报告撰写与教学活动。