Showing posts with label logarithm. Show all posts
Showing posts with label logarithm. Show all posts

Friday, August 16, 2019

R is a programming language,addition,exponents,logarithm

What is the R language?

R is a programming language and software environment for statistical computing.which is open -source. It is a better tool for statistical analysis.
r (programming language),identity element,operations in r,arithmetic operations reasoning,arithmetic operations in r,data science pakistan,disributive,real numbers,element,closure property,distributive rule,inverse element,data science tutorial,basic math,properties of addition and multiplication,maths made easy,exam solutions,roots,imaginary,complex,hcc math help,algebra,arithmetic operations in r programming


We can use R simple calculator.

Addition
> 2+2
[1] 4
> 3+2+8
[1] 13
> 0+2
[1] 2

Subtraction

2-9

[1] -7

> 0-1-3-5-8
[1] -17
Multiplication
> 2*4*7
[1] 56
> 6*(2*5)*9
[1] 540
Division
> 90/3
[1] 30
> 6789/7
[1] 969.8571
> 4321/9
[1] 480.1111
Trigonometric
> sin(pi/2)
[1] 1
> cos(3*pi/2)
[1] -1.83691e-16
> tan(pi)
[1] -1.224647e-16
Logarithm
> log(exp(1))
[1] 1
> log10(1000)
[1] 3
> log2(125)
[1] 6.965784

> log(16, base = 4) 

[1] 2
Exponents
> 2^8
[1] 256
> (9+5)^2
[1] 196