R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

summary(cars)
##      speed           dist       
##  Min.   : 4.0   Min.   :  2.00  
##  1st Qu.:12.0   1st Qu.: 26.00  
##  Median :15.0   Median : 36.00  
##  Mean   :15.4   Mean   : 42.98  
##  3rd Qu.:19.0   3rd Qu.: 56.00  
##  Max.   :25.0   Max.   :120.00

Including Plots

You can also embed plots, for example:

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot. ========== Bab 8 ================== Integral dan integrasi

Anda telah melihat operator kalkulus dasar, diferensiasi, yang diimplementasikan oleh fungsi R/ . Operator difusi mengambil sebagai input fungsi dan variabel “sehubungan dengan”. Output adalah fungsi lain yang memiliki variabel “sehubungan dengan” sebagai argumen, dan berpotensi argumen lain juga.mosaicCalcD()

#Integral merupakan proses berkesinambungan dalam proses perhitungan sedang kan intgerasi merupakan proses pembauran menjadi satu kesatuan

Dalam matematika sendiri integral berfungsi untuk menggambarkan luas,volume,perpindahan,dll. proses untuk menemukan inegral itu disebut Integrasi. Integral tidak hanya diaplikasikan pada matematika saja tapi juga ilmu lainnya seperti fisika bahkan biologi contohnya saja menentukan tingkat kebocoran minyak dalam waktu tertentu.

Housing = read.csv("http://www.mosaic-web.org/go/datasets/Income-Housing.csv")
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
f <- makeFun( A * x ^  2 ~ x, A = 0.5)
f(1)
## [1] 0.5
f <- makeFun( A * x ^  2 ~ x, A = 0.5)
f(3)
## [1] 4.5
df <- D(f(x) ~ x)
df(1)
## [1] 1

//berikut merupakan slice plot untuk grafik asli dan turunan

slice_plot(f(x) ~ x, domain(x = -1:1)) %>%
  gf_labs(title = "Original function f(x)")

slice_plot(df(x) ~ x, domain(x =-1:1), color = "orange") %>%
  gf_labs(title = "New function df(x), the derivative of f(x)")

menunjukkan grafik f(x)-kurva tersenyum - dan turunannya df(x). grafik menunjukkan program dengan domain(batas kurva) x=-1:1 dengan kurva tersenyum dan kurva kedua garis oren