Questions
You will explore the first 100,000 digits of pi(3.1415....).
(a). Using an internet search, locate a text file that contains the first 100,000 digits of pi. If this file includes the decimal point, remove this in a text editor. [List website where you got the file]
(b). Read the file into R and break it into an array of 100,000 elements. The below code should be helpful.[code]
piisfun = readLines("file location", warn = FALSE)
digits = as.numeric(unlist(strsplit(piisfun,"")))
(c). What percent of the first 100,000 digits of pi are 7s? [code, answer]