第1页 / 共1页
统计R练习题.docx
R 练习题 for 统计 09
Exercise 1
Calculate the first 50 powers of 2, 2*2, 2*2*2, etc.
Calculate the squares of the integer numbers from 1 to 50.
Which pairs are equal, i.e. which integer numbers fulfill the condition
How many pairs are there?(Use R to solve all these questions!)
2n
2
n
.
Exercise 2
Calculate the sine, cosine, and the tangent for numbers ranging from 0 to 2*
(with distance 0.1 between them).
Remember that tan(x)=sin(x)/cos(x). Now calculate the difference between tan(x)
and sin(x)/cos(x) for the values above. Which values are exactly equal? What is the
maximum difference? What is the cause of the differences?
Exercise 3
Use the R help routines (not the manuals) to find out how to use the functions floor,
trunc, round, ceiling, and what they do. Predict what each of these functions will
give as an answer for the numbers -3.7 and +3.8. Use R to test your predictions.
相关推荐
- 2023年江西萍乡中考道德与法治真题及答案.doc
- 2012年重庆南川中考生物真题及答案.doc
- 2013年江西师范大学地理学综合及文艺理论基础考研真题.doc
- 2020年四川甘孜小升初语文真题及答案I卷.doc
- 2020年注册岩土工程师专业基础考试真题及答案.doc
- 2023-2024学年福建省厦门市九年级上学期数学月考试题及答案.doc
- 2021-2022学年辽宁省沈阳市大东区九年级上学期语文期末试题及答案.doc
- 2022-2023学年北京东城区初三第一学期物理期末试卷及答案.doc
- 2018上半年江西教师资格初中地理学科知识与教学能力真题及答案.doc
- 2012年河北国家公务员申论考试真题及答案-省级.doc
- 2020-2021学年江苏省扬州市江都区邵樊片九年级上学期数学第一次质量检测试题及答案.doc
- 2022下半年黑龙江教师资格证中学综合素质真题及答案.doc