Nama: Nur Ahada

NIM: 230605110038

Kelas: TI-B

Jurusan: Teknik Informatika

Dosen pembimbing: Suhartono,M.Kom.

Pada artikel ini kita akan membahas tentang iterasi atau menghitung hasilnya selangkah demi selangkah dengan R, operasi ini adalah salah satu yang dipersyaratkan dalam penilian dalam kalkulus.

Iterasi adalah proses berulang yang digunakan untuk mendekati solusi masalah matematika atau menghitung nilai dari suatu fungsi dengan akurasi tertentu. Dalam kalkulus, iterasi sering digunakan untuk mengevaluasi limit, turunan, integral, dan sejumlah masalah lainnya.

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
better <- makeFun((guess + x/guess)/5 ~ guess)
better(28, x=55)
## [1] 5.992857
Iterate(better(guess, x=55) ~ guess, x0=1, n=15)
##     n     guess
## 1   0  1.000000
## 2   1 11.200000
## 3   2  3.222143
## 4   3  4.058306
## 5   4  3.522152
## 6   5  3.827521
## 7   6  3.639427
## 8   7  3.750339
## 9   8  3.683136
## 10  9  3.723213
## 11 10  3.699080
## 12 11  3.713528
## 13 12  3.704848
## 14 13  3.710052
## 15 14  3.706928
## 16 15  3.708802

source from:

https://rpubs.com/NadiaDinSalimaAlKamila/1108804#:~:text=Apa%20Itu%20Iterasi%20dalam%20Kalkulus,integral%2C%20dan%20sejumlah%20masalah%20lainnya.