This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Mathematica test Steven Tschantz 2/15/11 Questions This is an open book, open computer test. Complete the following questions. You are to work individually in class for approximately one hour. Honor code provisions apply. Email your final version to [email protected] 1. Edit this file to put your name below the title above. Done 2. Define the symbol pilist to be a list of 4 numbers approximating the number Π : an integer, an exact rational number not an integer, a floating point decimal number, and the Mathematica symbol representing the exact value. Evaluate Sin[pilist] and explain the result you get. Evaluate pilist numerically to display decimal values for your numbers. In:= pilist = 8 3, 22 7, 3.14, Pi < Out= : 3, 22 7 , 3.14, Π > In:= Sin @ pilist D Out= : Sin @ 3 D , Sin B 22 7 F , 0.00159265, 0 > Mathematica evaluates formulas involving exact numbers exactly. While sin(3) and sin(22/7) cannot be expressed exactly in any simpler way, sin( Π ) is exactly 0. On the other hand, Mathematica will evaluate formulas involving approximate numbers so sin(3.14) evaluates to about 0.00159265....
View Full Document
This document was uploaded on 10/28/2011 for the course MATH 256 at Vanderbilt.
- Spring '11