worksheet06

# worksheet06 - Worksheet #6 - PHY102 (Spr. 2006) Generating...

This preview shows pages 1–2. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Worksheet #6 - PHY102 (Spr. 2006) Generating and plotting lists of numbers, Do loops and animation - due Thursday February 23rd We often ask a computer to do an operation many times. There are a large number of ways of doing these iterativetasks in Mathematica. Here are two that you will need this week (look them up in the online help): Table, Do You will also need to learn how to plot lists of numbers using: ListPlot, ListPlot3D Finally, animation is very simple in mathematica. Simply generate a series of frames (e.g. using a Do loop) and then double click on one of the frames. This automatically animates the set of frames. Problem 1. (i) Listplot plots a list of numbers on the y axis of a graph. To see how this works, enter the following code sintable=Table[Sin[x], { x,0,20,.1 } ] ListPlot[sintable] (ii) Three dimensional plots are just as easy. Enter and run the following code sintable3D=Table[Sin[x*y], { x,0,4,.1 } , { y,0,4,0.1 } ] ListPlot3D[sintable3D] (iii) Using the Table function, generate points to represent a circle for...
View Full Document

## worksheet06 - Worksheet #6 - PHY102 (Spr. 2006) Generating...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online