library(mosaicCalc)
## Warning: package 'mosaicCalc' was built under R version 4.2.2
## Loading required package: mosaic
## Warning: package 'mosaic' was built under R version 4.2.2
## 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
## Warning: package 'mosaicCore' was built under R version 4.2.2
## 
## 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

4.1 Latihan 1

Cari hasil dari sin(cos(x2)-x)-x=0.5 untuk x.

{0:0000,0.1328,0.2098,0.3654,0.4217}

jawab : findZeros( sin(cos(x^2) - x) -x - 0.5 ~ x, xlim=range(-10,10))

##        x
## 1 0.2098

4.2 Latihan 2

Temukan angka nol dari fungsi ini 3e-t/5sin(2∏/2t) diantara t=1 dan t=10

a.Tidak ada angka nol di interval

b.Tidak ada angka nol sama sekali

c.{2,4,6,8}

d.{1,3,5,7,9}

e.{1,2,3,4,5,6,7,8,9}

Jawab : findZeros( 3*exp(-t/5)*sin(pi*t) ~ t, xlim=range(1,10))

##    t
## 1  0
## 2  1
## 3  2
## 4  3
## 5  4
## 6  5
## 7  6
## 8  7
## 9  8
## 10 9

4.3 Latihan 3

Gunakan findZeros() untuk menemukan angka nol di setiap polinomial ini

  1. 3X2+7x-10 dimanakah angka nol?
    1. X=-3.33 atau 1
    2. X=3.33 atau 1
    3. X=-3.33 atau -1
    4. X=3.33 atau -1
    5. Tidak ada nol

Jawab : findZeros( 3*x^2 + 7*x - 10 ~ x, xlim=range(-100,100))

##         x
## 1 -3.3334
## 2  1.0000
  1. 4X2-2X+20 Dimanakah nilai nol?
    1. X=-3.33 atau 1
    2. X=3.33 atau 1
    3. X=-3.33 atau -1
    4. X=3.33 atau -1
    5. Tidak ada nol

Jawab : findZeros(2*x^3 - 4*x^2 - 3*x - 10 ~ x, xlim=c(-10,10))

##        x
## 1 3.0363
  1. 2X3-4X2-3X-10

    Dimanakah nilai nol?

    {-1.0627,0,1.5432,1.8011,2.1223,3.0363,none}

findZeros(2*x^3 - 4*x^2 - 3*x - 10 ~ x, xlim=c(-10,10))

##        x
## 1 3.0363
  1. 7X4-2X3-4X2-3X-10

    Dimanakah nilai nol?

    {-1.0627,0,1.5432,1.8011,2.1223,3.0363,none}

Jawab : findZeros( 7*x^4 -2*x^3 - 4*x^2 - 3*x - 10 ~ x, xlim=c(-10,10))

##         x
## 1 -1.0628
## 2  1.4123
  1. 6X5-7X4-2X3-4X2-3X-10

    Dimanakah nilai nol?

    {-1.0627,0,1.5432,1.8012,2.1223,3.0363,none}

jawab: findZeros( 6*x^5-7*x^4 -2*x^3 - 4*x^2 - 3*x - 10 ~ x, xlim=c(-10,10))

##        x
## 1 1.8012