Prudhwi Raj Krishna V
11-04-2020
Execute basic mathematical; and statistical operations in R
Step1: Create R code chunks
Step2: Write math expressions
Step3: Run the chunk codes
Step4: Report the results
In this experiment basic mathematical operations will be tested using R
## [1] 40
## [1] 80
## [1] "Product of 34 and 5.4 is 183.6"
## [1] 5.333333
## [1] 2
## [1] 16
## [1] 25
## [1] 1 1024 59049 1048576 9765625 60466176
## [7] 282475249 1073741824 3486784401 10000000000
## [1] 5 25 35 45 105
## [1] 1 5 7 9 21
## [1] 1 4 1 2 8
## [1] 1 20 7 18 168
## [1] 3
## [1] 1
## [1] 3628800
To find \(nCr=\frac{n!}{r!(n-r)!}\)
## [1] 10
Permutation can be found using :\(^nP_r=n\times(n-1) \times \cdots \times (n-r+1)\)
## [1] 5040