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

Graphical Iteration

Visualisasi grafis sering digunakan untuk membantu pemahaman konsep dan metode iteratif. Ini melibatkan grafik fungsi atau proses iteratif sehingga kita dapat memvisualisasikan perubahan nilai variabel atau fungsi dari iterasi ke iterasi. Seperti contoh kita membuat grafik fungsi yang akan diiterasi dan menandai tebakan awal pada sumbu horizontal.

better <- makeFun((guess + x/guess)/2 ~ guess)
slice_plot(better(guess, x=55)~guess,domain(guess=1:15) ) %>%
  gf_hline(yintercept = 7.416199,color = "red")

Referensi: Kaplan, Daniel. 2022. MOSAIC Calculus. GitHub Pages. https://dtkaplan.github.io/MC2/