Pemanfaatan R untuk Komputasi Simbolik

[The Utilization of R for Symbolic Computation]

Penulis

  • I Gusti Agung Anom Yudistira Universitas Bina Nusantara

DOI:

https://doi.org/10.19166/jstfast.v9i1.9649

Kata Kunci:

Numerical Methods, R Programming, Ryacas, Symbolic Computation, Yacas

Abstrak

One of the R packages for symbolic operations that is currently active and developing is Ryacas. This package is an interface between the yacas system and R, combining symbolic and numerical computation capabilities in one system. This study aims to explore and document R's capabilities in symbolic computation using Ryacas. There are three topics that will be discussed in this research, namely 1) precision of arithmetic calculations, 2) application to linear algebra, and 3) application of symbolic computation to solving Mathematics-Statistics cases. Ryacas is able to increase the precision of numerical calculations in simple arithmetic cases, and operations in linear algebra. The case of obtaining the probability distribution function and probability density function of a random variable U which is a function of a random variable Y, can be easily solved by Ryacas. The output of symbolic computation from this last case is further processed numerically by R in the form of a graphical appearance, with the ggplot2 package. Likewise, the simulation process is carried out to generate the values of the random variable U. These results illustrate the continuous process between symbolic and numerical computation in one system, in this case R.

Bahasa Indonesia Abstract: Paket R untuk operasi simbolik yang saat ini aktif dan berkembang salah satunya adalah Ryacas.  Paket ini merupakan antarmuka antara sistem yacas dan R, sehingga menggabungkan kemampuan komputasi simbolik dan numerik dalam satu sistem.  Penelitian ini bertujuan untuk mengeksplorasi dan mendokumentasikan kemampuan R dalam komputasi simbolik dengan menggunakan Ryacas.  Ada tiga topik yang akan dibahas dalam penelitian ini, yaitu 1) presisi perhitungan aritmatika, 2) penerapan pada aljabar linear, dan 3) penerapan komputasi simbolik pada pemecahan kasus Matematika-Statistik.  Ryacas mampu meningkatkan presisi perhitung-an numerik pada kasus aritmatika sederhana, dan operasi-operasi pada aljabar linear.  Kasus mendapatkan fungsi sebaran peluang dan fungsi kepekatan peluang dari peubah acak U yang merupakan fungsi dari suatu peubah acak Y, dapat dengan mudah diselesaikan oleh Ryacas.  Luaran komputsi simbolik dari kasus terakhir ini, diperoses lebih lanjut secara numerik oleh R berupa penampilan grafik, dengan paket ggplot2. Demikian pula proses simulasi dilakukan untuk membangkitkan nilai-nilai peubah acak U.  Hasil ini mengilustrasikan proses bersinam-bungan antara komputasi simbolik dan numerik dalam satu sistem, dalam hal ini R.

 

Biografi Penulis

I Gusti Agung Anom Yudistira, Universitas Bina Nusantara

Statistics Department, School of Computer Science

Referensi

Andersen, M.M. and Søren Højsgaard (2023). Ryacas: Getting Start. Retrieved March 18, 2025 from https://cloud.r-project.org/web/packages/Ryacas/vignettes/getting-started.html

Andrilli, S., & Hecker, D. (2022). Elementary linear algebra. Academic Press.

Anton, H., & Rorres, C. (2013). Elementary linear algebra: applications version. John Wiley & Sons.

Bloomfield, V. A. (2018). Using R for numerical analysis in science and engineering. Chapman and Hall/CRC.

Braun, W. J., & Murdoch, D. J. (2021). A first course in statistical programming with R. Cambridge University Press.

Devore, J. L., Berk, K. N., & Carlton, M. A. (2021). Modern mathematical statistics with applications. Springer Nature. https://doi.org/10.1007/978-3-030-55156-8

Douglas, A., Roos, D., Mancini, F., Couto, A., & Lusseau, D. (2022). An introduction to R. URL https://intro2r. com.

Hirsch, R. (2023). Introduction to R. In Analysis of Epidemiologic Data Using R (pp. 1-12). Cham: Springer Nature Switzerland. https://doi.org/10.1007/978-3-031-41914-0_1

Lindyawati, T. P., Arumsari, N., & Sa'diyah, A. (2023). Perbandingan Model Peluang Kegagalan Pada Sistem Pendingin Main Engine Crew Boat 41 GT. In Proceedings Conference on Marine Engineering and its Application (Vol. 6, No. 1).

Mazur, G. (2025). Ryacas to yacas interfase. Retrieved March 27, 2025 from https://grzegorzmazur.github.io/ryacas/

Sumner, J. L. (2025). Visualizing Data with ggplot2. In R for Political Science Research: An Introduction for Absolute Beginners (pp. 237-265). Cham: Springer Nature Switzerland. https://doi.org/10.1007/978-3-031-75853-9_12

Venables, W.N, D. M. Smith and the R Core Team. An Introduction to R Notes on R: A Programming Environment for Data Analysis and Graphics Version 4.4.3. https://cran.r-project.org/doc/manuals/r-release/R-intro.pdf

Villanueva, R. A. M., & Chen, Z. J. (2019). ggplot2: Elegant Graphics for Data Analysis. https://doi.org/10.1080/15366367.2019.1565254

Wackerly, D. D. (2008). Mathematical statistics with applications. Thomson Brooks/Cole.

Diterbitkan

2025-05-26

Terbitan

Bagian

Articles