2012년 12월 7일 금요일

Simple arithmetic operation - No3



Once you'v installed R s/w successfully, main console screen is displayed by clicking the R icon on your wallpaper.

[ Main console of R]
If you encounter any problems to install R program or have no idea how to install R s/w, just read my previous post.

> Probably you are still clumsy to operate it
   R provide useful function "help"
 
   help {function}
   or
    ? {function}

   automatically trigger new window and display manual of requested function


I like this proverb, "A journey of a thousand miles must begin with the first step"
Today I am going to show you a basic arithmetic, and It might  be looks easy,
But everything has its seed.




  • Basic arithmetic operation 
 > 2+4
[1] 6
> 2*4
[1] 8
> 2/4
[1] 0.5
> 2-4
[1] -2
  • Other arithmetic operation
> 5^3
[1] 125
> (1+4)*4
[1] 20
> log(5)
[1] 1.609438
> sin(5)
[1] -0.9589243
> tan(5)
[1] -3.380515
> cos(7)
[1] 0.7539023

Looks like a calculator. remember this is just beginning.

See you



댓글 없음:

댓글 쓰기