EC4- Multiple Plots v6 - Cell 1: Bill Knowlton Extra Credit...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Cell 1: Bill Knowlton Extra Credit Assignment #4 Your Assignment: (NOTE: USE YOUR OWN EQUATION ) 1. Using Mathematica , use the Style Sheet called ArticleModern (under Format −> Style Sheet) for this assignment. Use various Styles (under Format −> Style) to describe your assignment and program. This Cell is using the Subsection Style. 2. Plot an equation (USE YOUR OWN EQUATION) in 2 dimensions that is a function of multiple variables. An example is shown below. You will need to use several commands including: a. Plot[ ] b. YourEquation[var1_,var2_,...,var#_]:=equation c. Print[ ] to output several values of interest 3. Plot your function over 2 variables but in 2 dimensions on many plots. 4. Plot your function over 2 variables but in 2 dimensions all on one plot. 5. Plot your function over 2 variables in 3 dimensions. 6. Plot your function over 2 variables in 2 dimensions suppressing multiple plots and graphing the multiple plots in one plot. à Examples: Problem 2. In the Input Cell below, I use the ideal gas law showing a direct relation with temperture, T, and an inverse relation with pressure and is given by: v @ p _ , n _ , T _ D : = n R T p Note that there are other variables, but they are not included in the bracket [ ]. The variables included in the [ ] are call Arguments allows us to vary or give a value directly for each variable in the [ ]. For more information, see Help −> Master Index −> [ ]. Lastly, to add a comment in the Input Cell that Mathematica will ignore, use (* comment *). I use this to document what I'm up to in the program. In[31]:= Clear @ v, R, T, p D v @ p _ , n _ , T _ D : = n R T p H ∗ Constants ∗ L R = 0.08206; H ∗ atm L êH mol K L ∗ L H ∗ Plots ∗ L Plot @ v @ p, 1, 298 D , 8 p, 1, 10 < , Frame → True, GridLines → Automatic, PlotStyle → 8 RGBColor @ 0, 0, 1 D< , FrameLabel → 8 "p H atm L " , "v H L L " < , PlotLabel −> "v vs p for T = 25 o C" D Print @ "v: " , v @ 1, 1, 298 D , "L at T = 25 o C" D 2 EC4- Multiple Plots v6.nb Out[34]= 2 4 6 8 10 4 6 8 10 12 14 16 p H atm L v H L L v vs p for T = 25 o C v: 24.4539L at T = 25 o C à Problem 3....
View Full Document

This note was uploaded on 10/16/2011 for the course ENGINEERIN MSE 310 taught by Professor Billknowlton during the Spring '10 term at Boise State.

Page1 / 13

EC4- Multiple Plots v6 - Cell 1: Bill Knowlton Extra Credit...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online