Can someone please give me the format on how to put this exactly in matlab? the math is correct! The answers are there

Problem 1 – At the distance of Earth, 147 million kilometers, what is the angular diameter of the sun whose physical diameter is 1.4 million kilometers?
Answer: θ= 2arcTan(1.4million/2*147million)
θ=2arcTan(0.0048)
θ=0.55 degrees
Problem 2 – At the distance of closest approach to the solar surface Solar Probe Plus will be at a distance of 5.8 million kilometers from the solar surface. What will be the angular diameter of the sun if its physical diameter is 1.4 million kilometers?
Answer:
θ = 2 arctan (1.4/(2 x 5.8)) so
θ= 14 degrees
Problem 3 – A DVD disk measures 12 cm in diameter. How far from your eyes will you have to hold the DVD disk in order for it to subtend the same angular size as the disk of the sun viewed by Solar Probe Plus at its closest distance?
Answer: The desired angular diameter of the sun is θ= 14 degrees, and for the DVD disk we have d = 12 cm, so we need to solve the formula for r.
Tan (θ/2) = d/2r so
2r = d / tan(θ/2) then
r = 6 cm / tan(7) yields
r = 49 cm. This is about 18 inches
.

Answers (2)

seymur - since the outputs from your above equations are in units of degrees, use atand in place of arctan and tand for tan.
For example
θ= 2arcTan(1.4million/2*147million)
would be
theta = 2 * atand(1.4e6 / (2 * 147e6))
Now I think you can get the rest of them.

Categories

Tags

Asked:

on 10 Dec 2015

Commented:

on 10 Dec 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!