Data Science: Journal of Computing and Applied Informatics
Vol. 5 No. 1 (2021): Data Science: Journal of Computing and Applied Informatics (JoCAI)

Computing the Value of Pi in the Manner of Lambda Function with R Statistical Programming Language

Muhammad Reza Fahlevi (Universitas Sumatera Utara)
Mohammad Andri Budiman (Universitas Sumatera Utara)



Article Info

Publish Date
02 Feb 2021

Abstract

The value of π is one of the famous mathematical constant, not only to mathematicians, but also to physicists and to engineers. Numerous algorithm is used to compute what is the value of π, but most of programmer do not use lambda function and neglect the aesthetic of their script. This study aims to compute the value π by write it first as infinite series using Riemann sum, and then the computing of it is conducted in R programming language. We involved the role of anonymous function or known as lambda function to make the R code is more beautiful, artistic, and elegant.

Copyrights © 2021






Journal Info

Abbrev

JoCAI

Publisher

Subject

Computer Science & IT

Description

Data Science: Journal of Computing and Applied Informatics (JoCAI) is a peer-reviewed biannual journal (January and July) published by TALENTA Publisher and organized by Faculty of Computer Science and Information Technology, Universitas Sumatera Utara (USU) as an open access journal. It welcomes ...