Project 1 on Introduction to Computing Using MATLAB | CS 1112, Study Guides, Projects, Research of Computer Science

Material Type: Project; Class: Introduction to Computing Using MATLAB; Subject: Computer Science; University: Cornell University; Term: Spring 2009;

Typology: Study Guides, Projects, Research

Pre 2010

Uploaded on 08/30/2009

koofers-user-ao2
koofers-user-ao2 🇺🇸

10 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS1112 Spring 2009 Project 1 due Thursday 1/29 at 11pm
You must work either on your own or with one partner. You may discuss background issues and general solution
strategies with others, but the project you submit must be the work of just you (and your partner). If you work with
a partner, you and your partner must first register as a group in CMS and then submit your work as a group.
Objectives
Completing this project will help you learn ab out Matlab scripts, assignment statements, if-else statements,
and some Matlab built-in functions. You will also start to explore Matlab graphics.
1 Archimedean Soccer Balls
Soccer balls come in three sizes:
Size Circumference Intended
(inches) Age Group
3 23-24 Less than 8
4 25-26 8 through 12
5 27-28 Older than 12
In this problem we offer a conjecture that explains the circumference values in relative terms. You will
examine the validity of the conjecture by writing and running a Matlab script.
Our conjecture requires an “ancient Greek” appreciation for solid geometry so we start with some facts. A
solid is a Platonic solid if each face is identical in size and shape. There are only five:
Solid Faces Face Shape
Tetrahedron 4 equilateral triangle
Cube 6 square
Octahedron 8 equilateral triangle
Dodecahedron 12 regular pentagon
Icosahedron 20 equilateral triangle
Key attributes of a given Platonic solid Pinclude its edge length E,inradius r,outradius R, surface area S,
and volume V. The inradius of Pis the distance from its center to the centroid of any face. It is the radius
of the largest sphere that fits inside P. The outradius of Pis the distance from its center to any vertex. It is
the radius of the smallest sphere that encloses P. Problem P1.1.5 in the text is concerned with the nesting
of Platonic solids and is worth reviewing. The great Johannes Kepler discovered that the radii associated
with the nesting
Octahedron Iscosahedron Dodecahedron Tetrahedron Cube
have the same ratios to one another (approximately) as the orbit radii of the six visible planets. Following
in the footsteps of Kepler, we will attempt to explain the ratios
Size 5 Circumference
Size 4 Circumerence and Size 4 Circumference
Size 3 Circumerence
not by nesting Platonic solids, but by nesting truncated iscosahedrons. A truncated iscosahedron has 32
regular polygon faces. Twenty are hexagons and twelve are pentagons. A soccer ball can be regarded as a
“puffed out” truncated iscosahedron:
1
pf3
pf4

Partial preview of the text

Download Project 1 on Introduction to Computing Using MATLAB | CS 1112 and more Study Guides, Projects, Research Computer Science in PDF only on Docsity!

CS1112 Spring 2009 Project 1 due Thursday 1/29 at 11pm

You must work either on your own or with one partner. You may discuss background issues and general solution strategies with others, but the project you submit must be the work of just you (and your partner). If you work with a partner, you and your partner must first register as a group in CMS and then submit your work as a group.

Objectives

Completing this project will help you learn about Matlab scripts, assignment statements, if-else statements, and some Matlab built-in functions. You will also start to explore Matlab graphics.

1 Archimedean Soccer Balls

Soccer balls come in three sizes:

Size Circumference Intended (inches) Age Group 3 23-24 Less than 8 4 25-26 8 through 12 5 27-28 Older than 12

In this problem we offer a conjecture that explains the circumference values in relative terms. You will examine the validity of the conjecture by writing and running a Matlab script.

Our conjecture requires an “ancient Greek” appreciation for solid geometry so we start with some facts. A solid is a Platonic solid if each face is identical in size and shape. There are only five:

Solid Faces Face Shape Tetrahedron 4 equilateral triangle Cube 6 square Octahedron 8 equilateral triangle Dodecahedron 12 regular pentagon Icosahedron 20 equilateral triangle

Key attributes of a given Platonic solid P include its edge length E, inradius r, outradius R, surface area S, and volume V. The inradius of P is the distance from its center to the centroid of any face. It is the radius of the largest sphere that fits inside P. The outradius of P is the distance from its center to any vertex. It is the radius of the smallest sphere that encloses P. Problem P1.1.5 in the text is concerned with the nesting of Platonic solids and is worth reviewing. The great Johannes Kepler discovered that the radii associated with the nesting

Octahedron ⊂ Iscosahedron ⊂ Dodecahedron ⊂ Tetrahedron ⊂ Cube

have the same ratios to one another (approximately) as the orbit radii of the six visible planets. Following in the footsteps of Kepler, we will attempt to explain the ratios

Size 5 Circumference Size 4 Circumerence

and

Size 4 Circumference Size 3 Circumerence

not by nesting Platonic solids, but by nesting truncated iscosahedrons. A truncated iscosahedron has 32 regular polygon faces. Twenty are hexagons and twelve are pentagons. A soccer ball can be regarded as a “puffed out” truncated iscosahedron:

Because of its soccer connection, the truncated iscosahedron is perhaps the most famous of the thirteen solids that make up the family of Archimedean solids.

Let E be the edge length of a truncated isosahedron I. The radius of the largest sphere that can fit inside I is given by

r =

E

The radius of the smallest sphere that encloses I is given by

R =

E

Define

S 5 = a given sphere. I 4 = largest truncated iscosahedron that fits inside S 5 S 4 = the largest sphere that fits inside I 4 I 3 = the largest truncated iscosahedron that fits inside S 4 S 3 = the largest sphere that fits inside I 3

Conjecture:

If S 5 is a regulation size 5 soccer ball, then S 4 is a regulation size 4 soccer ball and S 3 is a regulation size 3 soccer ball.

Write a script SoccerCheck that acquires the circumference of S 5 and neatly displays the circumference of S 5 , S 4 and S 3. You can check out the conjecture by inputting any value between 27 and 28. Make sure your solution script is well-commented. Use fprintf with a format that displays results through the third decimal point. The output values should be clearly identified, e.g.,

Size 5 Circumference: 27.

After running your script several times with different input values for the S 5 circumference, conclude your solution script with some comments that reflect your opinion of our brilliant conjecture! Submit your file SoccerCheck.m in CMS.

(^00 2 4 6 8 )

1

2

3

4

5

6

7

8

9

10

Your point (2.2,1.7) is collinear with the other points!

(^00 2 4 6 8 )

1

2

3

4

5

6

7

8

9

10

Your point (5.6,5.5) is not collinear with the others!