正在加载图片...
Basic Usage of R We can use R as an oversized scientific calculator. >5+6*3 [1]23 >exp(1og(10)) [1]10 pi [1]3.141593 sin(pi) [1]1.224606e-16 practically zero sin(2)2+cos(2)2 text after is treated as a comment [1]1 and is not executed 1/Inf [1]0 Inf Inf stands for infinity [1]Inf and operations with it will yield sensible results exp(-Inf) [1]0 exp(Inf) [1]Inf 9Basic Usage of R We can use R as an oversized scientific calculator. > 5+6*3 [1] 23 > exp(log(10)) [1] 10 > pi [1] 3.141593 > sin(pi) [1] 1.224606e-16 # practically zero > sin(2)ˆ2+cos(2)ˆ2 # text after # is treated as a comment [1] 1 # and is not executed > 1/Inf [1] 0 > Inf # Inf stands for infinity [1] Inf # and operations with it will yield sensible results > exp(-Inf) [1] 0 > exp(Inf) [1] Inf 9
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有