Nama: Nur Ahada

NIM: 230605110038

Kelas: TI-B

Jurusan: Teknik Informatika

Dosen pembimbing: Suhartono,M.Kom.

Pada artikel ini kita akan membahas tentang integral dengan R, operasi ini adalah salah satu yang dipersyaratkan dalam penilaian dalam kalkulus.

library(mosaicCalc)
## Loading required package: mosaic
## Registered S3 method overwritten by 'mosaic':
##   method                           from   
##   fortify.SpatialPolygonsDataFrame ggplot2
## 
## The 'mosaic' package masks several functions from core packages in order to add 
## additional features.  The original behavior of these functions should not be affected by this.
## 
## Attaching package: 'mosaic'
## The following objects are masked from 'package:dplyr':
## 
##     count, do, tally
## The following object is masked from 'package:Matrix':
## 
##     mean
## The following object is masked from 'package:ggplot2':
## 
##     stat
## The following objects are masked from 'package:stats':
## 
##     binom.test, cor, cor.test, cov, fivenum, IQR, median, prop.test,
##     quantile, sd, t.test, var
## The following objects are masked from 'package:base':
## 
##     max, mean, min, prod, range, sample, sum
## Loading required package: mosaicCore
## 
## Attaching package: 'mosaicCore'
## The following objects are masked from 'package:dplyr':
## 
##     count, tally
## 
## Attaching package: 'mosaicCalc'
## The following object is masked from 'package:stats':
## 
##     D
f <- makeFun( A * x ^  3 ~ x, A = 5)
f(1)
## [1] 5
f(3)
## [1] 135
f(5)
## [1] 625

Turunan (derivatif) merupakan pendekatan matematis yang digunakan untuk melakukan analisis keuntungan maksimum. Diferensiasi adalah proses menemukan turunan dari fungsi yang dapat dibedakan. Perbedaan keduanya adalah derivatif mengacu pada tingkat perubahan fungsi sedangkan diferensiasi adalah proses menemukan turunan dari suatu fungsi

df <- D(f(x) ~ x)
df(1)
## [1] 15
df(3)
## [1] 135
df(5)
## [1] 375
slice_plot(f(x) ~ x, domain(x = -1:1)) %>%
  gf_labs(title = "Original function f(x)")

berdasarkan grafik yang dihasilkan, fungsi tersebut merupakan fungsi ganjil karena luas kiri menetralkan luas kanan. fungsi ganjil memenuhi persamaan f(-x) = -f(x).

slice_plot(df(x) ~ x, domain(x =-1:1), color = "red") %>%
  gf_labs(title = "New function df(x), the derivative of f(x)")

source from:

https://dtkaplan.github.io/RforCalculus/integrals-and-integration.html a book by Daniel Kaplan “Computer-age Calculus with R” (2020-05-25) “Kalkulus” edisi 9 jilid 1. 2008. Oleh Dale Varberg diterjemahkan oleh Penerbit Erlangga