NAMA MAHASISWA : MUHAMMAD FAQH

NIM : 220605110069

MATA KULIAH : KALKULUS

DOSEN PENGAMPU : Prof. Dr. Suhartono, M.Kom

JURUSAN : TEKNIK INFORMATIKA

UNIVERSITAS : UIN MAULANA MALIK IBRAHIM MALANG

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
g <- makeFun(sin(x^2)*cos(sqrt(x^4 + 3 )-x^5) - x + 1 ~ x)
slice_plot(g(x) ~ x, domain(x = -3:3)) %>%
  gf_hline(yintercept  = 0, color = "yellow")

findZeros(g(x) ~ x, xlim = range(1, 2))
##        x
## 1 1.2980
## 2 1.5336
## 3 1.5744
library(mosaicCalc)
g <- makeFun(sin(x^2) ~ x)
slice_plot(g(x) ~ x, domain(x = -3:3)) %>%
  gf_hline(yintercept  = 0, color = "green") %>%
gf_vline(xintercept = 0, color = "blue")

library(mosaicCalc)
findZeros(g(x) ~ x, xlim = range(-2, 2))
##         x
## 1 -3.5449
## 2 -3.0700
## 3 -2.5066
## 4 -1.7725
## 5  0.0000
## 6  1.7725
## 7  2.5066
## 8  3.0700
## 9  3.5449

DAFTAR PUSTAKA

https://dtkaplan.github.io/RforCalculus/