Nama : Ahmad Ghiffari Fadhil Saputra

NIM : 220605110067 KELAS : C

Mata Kuliah : Kalkulus

Dosen Pengampu : Prof.Dr.Suhartono,M.Kom

Jurusan : Teknik Informatika

Universitas : Universitas Negeri Maulana Malik Ibrahim Malang

fungsi yang dapat digunakan untuk mengilustrasikan berbagai konsep. Terkadang, yang Anda butuhkan hanyalah fungsi halus yang menampilkan beberapa pasang surut dan memiliki satu atau dua maksimum atau minimum lokal. Fungsi rfun() akan menghasilkan fungsi seperti itu “secara acak”. Itu adalah benih acak dapat digunakan untuk mengontrol fungsi mana yang dihasilkan.

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 <- rfun(~x, seed = 345)
g <- rfun(~x)
h <- rfun(~x)
plotFun(f(x) ~ x, x.lim = range(-5, 5))

plotFun(g(x) ~ x, add = TRUE, col = "red")

plotFun(h(x) ~ x, add = TRUE, col = "darkgreen")

Fungsi acak ini sangat membantu untuk mengembangkan intuisi tentang fungsi dua variabel, karena mudah ditafsirkan sebagai lanskap:

f = rfun(~x + y, seed = 345)
plotFun(f(x, y) ~ x + y, x.lim = range(-5, 5), y.lim = range(-5, 5))

daftar pustaka : Kaplan, Daniel. 2020. Computer-age Calculus with R. https://dtkaplan.github.io/RforCalculus/index.html?fbclid=IwAR1d_WcAeawvUaBnLKlkRoO2sV4b-6nRX0eNR3DT457DKN7NJV8NV0giSLo

Kaplan, Daniel. Bocovich, Cecylia. Pruim, Randall. Plotting, Derivatives, and Integrals for Teaching Calculus in R