Nama : Fachrizal Fazza Ashari
Nim : 220605110077
Kelas : C
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)*tan(sqrt(x^4 + 5 )-x^2) - x + 1 ~ x)
slice_plot(g(x) ~ x, domain(x = -6:3)) %>%
gf_hline(yintercept = 0, color = "blue")%>%
gf_vline(xintercept = 0, color = "red")
slice_plot(g(x) ~ x, domain(x=1:4)) %>%
gf_hline(yintercept = -8, color = "yellow")
library(mosaicCalc)
findZeros(g(x) ~ x, xlim = range(0, 6))
## x
## 1 0.4905
## 2 0.8978
## 3 1.6024
findZeros( g(x) ~ x, xlim = range(-1000, 1000))
## x
## 1 -0.8979
## 2 -0.6742
## 3 0.4905
## 4 0.8978
## 5 1.6024
findZeros( sin(x) - 0.35 ~ x, xlim=range(-20,20) )
## x
## 1 -12.2088
## 2 -9.7823
## 3 -5.9256
## 4 -3.4991
## 5 0.3576
## 6 2.7840
## 7 6.6407
## 8 9.0672
## 9 12.9239
## 10 15.3504
g <- makeFun( tan(x) - 0.35 ~ x)
findZeros( g(b) ~ b , xlim=range(-1000, 1000) )
## b
## 1 -7.8539
## 2 -5.9465
## 3 -4.7123
## 4 -2.8049
## 5 -1.5709
## 6 0.3367
## 7 1.5710
## 8 3.4783
## 9 4.7123
## 10 6.6198
Daftar Pustaka