

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: ADV ASTRONOMICAL DATA ANALYSIS; Subject: Astronomy; University: University of Central Florida; Term: Fall 2009;
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Work: Become sufficiently familiar with Python to:
Resources:
Hand in: Do not use loops for any problem on this assignment. The files you hand in should include a text file that provides all the commands to do the exercises, named as instructed on the syllabus. Put images (plots, screendumps, etc.) in separate files as described on the syllabus. Finding the right documentation is part of the assignment! NOTE: The problems here can be done with much less than the full reading assignment above. Be sure you have mastered the material needed to do the problems, and then get as far as you can in the reading assignment and its exercises. You will be using all of that material, and more, in the rest of the course.
(a) Create a Float64 array, x , of integers from 0 to 1000 (how many elements do you need?). (b) Re-scale x to contain values from 0 to 2 π.
(c) Put the sine of the values in a new array, y.
(a) Compute at least 1000 points of an analytic function (ideally the one above, if you got it). (b) Plot y vs. x with reasonable axis labels (remember to capitalize your axis titles!). (c) Save your plot as a PNG file (no screenshots or window dumps from outside Python).