HW #7 Solution Due Thursday, November 14, 2002

Size: px
Start display at page:

Download "HW #7 Solution Due Thursday, November 14, 2002"

Transcription

1 HW #7 Solution Due Thursday, November 14, 2002 Question (1): (10-points) Repeat question 1 of HW 2 but this time using Matlab. Attach M-file and output. Write, compile and run a fortran program which generates a table of sine, cosine, and tangent values to 6 decimal places for angles between 0 and 360 degrees in 5 degree increments. Table should be no wider than 80 characters and should have headers explaining what the columns are. How would you change this program if 8 significant digits were required? Include your design of the program, source code and output. The same arguments as used in answering the original question can be used here and the original fortran code can almost directly translated in Matlab. However we can simplify the solution greatly using the array and matrix features of Matlab. The HW6_1.m file contains the full documented Matlab code but the program really only consists of 6 lines of Matlab code. We define an array with the arguments we need and we then generate a matrix with all the table entries. We still have the same problem with tan(90) and tan(270). These could be handled with a for loop and if statement as in Fortan but Matlab can be more elegant. The bad_arg array can be used to address the tab matrix and set the bad argument values to NaN. The remaining lines simply produce the output. arg_deg = [0:5:355]; tab = [ arg_deg', sin(arg_deg'*pi/180), cos(arg_deg'*pi/180), tan(arg_deg'*pi/180) ]'; bad_arg = or(eq(arg_deg,90), eq(arg_deg,270)); tab(4,bad_arg) = NaN; fprintf(1,' Angle Sin Cos Tan \n (deg) \n') fprintf(1,' %4d %9.5f %9.5f %11.5f\n',tab); Output from HW5_1.m HW5_1: Matlab table of sin/cos/tan Angle Sin Cos Tan (deg) NaN

2 Question (2): (15-points) Repeat question 3 of HW 2 using Matlab and the same data files as before. Compare your Matlab results with your Fortran results. (Check some of the functions available in Matlab). For this problem, do not attach the sorted list to your solution. Design and write as program that reads a file containing a single column of numbers, sorts the numbers into ascending order and computes the mean, standard deviation about the mean, median and the 68% probability range of the values. Consider different sort algorithms that could be used. How would this program change if only the mean and standard deviation were needed? In the web page version of the homework, you will find two trial data sets. (I will test your programs with other data sets as well). A quick scan of Matlab s functions shows this is a much easier homework in Matlab than in Fortran mainly because all the functions we need are already available. The function sort will sort the array, median will return the median, mean the mean and std for the standard deviation. The only quanity we need to compute ourselves is the 68% range. Since the input data files are just a string of numbers we can fscanf to read the files. The solution to this problem is fairly easy. In the attached solution file, HW6_2.m, several matlab features have been added. Specifically, a dialog box is used to select the data file to be processed. Several matlab specific issues arise in doing this. Specifically, the list of file names can be reduced using the beginning of the file name (HW02 in this case) but selecting the names based on the end characters (e.g.,.dat) is much more difficult. The output was done graphically. Check the method used for _ in the file names, and that output of % is not easy. 8 STATISTICS HW02_01.dat Mean Median Std Dev % Range

3 10 STATISTICS HW02_02.dat 9 Mean Median Std Dev % Range You selected: HW02_01.dat STATISTICS HW02\_01.dat Mean Median Std Dev % Range Full Range You selected: HW02_02.dat STATISTICS HW02\_02.dat Mean Median Std Dev % Range Full Range Results from Fortran Program: HW2_3: File HW02_3.01.dat has 384 data For 384 data: Statistics are: Mean Median Standard Deviation % confidence *SD caputo[167] hw2_3 HW02_3.02.dat grep -v '^+' HW2_3: File HW02_3.02.dat has 384 data For 384 data: Statistics are: Mean Median Standard Deviation % confidence *SD

4 Question (3): (25-points) Repeat question 1 of HW3 using the original functions in afunc.f. Compare your Matlab results with those from your Fortran solution. Use Matlab to integrate sin(x^10) over the 1 to 1 and 2 to 2 intervals. Compare results with those given in the Homework 3 solution. The solution of this problem is again easier in Matlab because Matlab has a built in numerical integrator called quad, which allows the tolerance on the accuracy of the numerical integration to be set. Quad takes as arguments the name of an M-file that implements the function to be integrated. Design in the Matlab case is mainly determined by how the user will interact with the program. Here we have several choices. The homework asks for 5 different functions to be integrated and we could have 5 separate M-files that implement the functions. The user input would then the name of the M-file to be integrated. This approach has lots of appeal since the help information in the function in the M-files could be designed to report exactly what function the M-file was evaluating. Another option would be to pass an option to a single M-file that indicates which function to integrate. The option could be selected through another M- file, which has the disadvantage that the option selection may not correspond to the correct function if modifications are made to the M-files. In the homework solution, the same M-file is used to select the function as to implement it. In this way the selection code and implementation are in the same file thus reducing the possibility of the two being incompatible. The selection method used is the menu command in Matlab, which has the advantage that only legitimate selections can be made. Commented out in the code is a more terminal based selection process. The solutions to the homework are given in HW6_3.m and afunc.m. Some test results for the sin(x^10) function. This is difficult function to integrate because of the rapid oscillations that develop during the integration. With a specialized integrator, i.e., one that changes step size during the integration, it is not that difficult because the function is well behaved (values always between 1 and 1 with no singularities). The problem here is that a fixed integration step size does not work well. Here are results from several sources: HW3_1 Fortran Matlab Matematica Error Interval 1 to (2e-7) (2e-7) e (1e-4) (2e-7) 1e-3 Interval 2 to (4e-9) (1e-2) e (1e-6) (1e-2) 1e-3 Comments: 1. Matlab generates errors concerning recursion limits being exceeded and results should not be expected to be reliable. 2. Integrating from 0 to 1 and 1 to 2 separately and adding and doubling the results (for the 2 to 0 part of the integral) generates Matlab results an order of magnitude better. Presumably this approach of dividing the interval manually would generate better Matlab results overall.

5 (for the 2 to 0 part of the integral) generates Matlab results an order of magnitude better. Presumably this approach of dividing the interval manually would generate better Matlab results overall. 3. A generic problem with the Mathematica Notebooks is that they really can t be used in systems that have not had the Mathematic fonts installed. 4. Mathematica generates the following solutions: In[1]:= s10 := Sin[x^10] In[9]:= Integrate[s10,{x,-2,2}] In[10]:= N[%,20] Generated the results above but the behavior with the number of digits specified for the output was not predictable i.e., without the number of digits given, only 5 significant digits were generated, and the same number of output digits were given until the 20 was used. The analytic solution was given as: In[11]:= Integrate[s10,x] (x Gamma[--, -I x ]) x Gamma[--, I x ] -I Out[11]= -- ( ) / /10 10 (-I x ) 10 (I x ) The numerical evaluation generates an imaginary component to the integral (magnitude of order 1e-16 for the 1 to 1 integration and 1e-23 for the 2 to 2 integration). The above expression involves complex numbers despite the integral being completely real.

6 Question (4): (50-points) Solve the bouncing ball problem of Exercise 4 HW 4 with realistic floor bouncing. Create a figure that animates the motion of the ball. This basic problem is to solve the equations of motion of a ball moving under the influence of gravity and bouncing on a floor. There are several methods of approaching this problem. The C and C++ versions of this routine used a largely analytic solution but based on the discussion in the first homework where exotic forces were considered a numerical approach would be more flexible. The Matlab routine quad was used in Question 3 but since we need to do a double integral here, another integration technique could be easier to solve. Since we are solving potentially a partial differential equation, a search of the Matlab help files reveals that Matlab has a built in routine for solving first order differential equations. Ours is a second order differential equation but such equations can always be posed as a pair of first order equations. Below we give the characteristics of the different Matlab solvers. Solver Type Accuracy When to Use ode45 Nonstiff Medium Most of the time. This should be the first solver you try. ode23 Nonstiff Low If using crude error tolerances or solving moderately stiff problems. ode113 Nonstiff Low to high If using stringent error tolerances or solving a computationally intensive ODE file. ode15s Stiff Low to medium If ode45 is slow (stiff systems) or there is a mass matrix. ode23s Stiff Low If using crude error tolerances to solve stiff systems or there is a constant mass matrix. ode23t Moderate Low If the problem is only moderately stiff and you need a solution without numerical damping. ode23tb Stiff Low If using crude error tolerances to solve stiff systems or there is a mass matrix. We will use the ode45 solver (we could experiment later with the other ones). We introduce a 4-element vector y where the first two elements are the X and Y positions, and the other 2 elements are the X and Y velocities. The partial differential equations are given in the form y(1)/ t = y(3), y(2)/ t = y(4) and y(3)/ t = horizontal acceleration and y(4)/ t = vertical acceleration. The vertical acceleration always includes a 9.8 m/s 2 term plus other forces that are invoked. The input parameters are obtained by use of the inputdlg Matlab command. The main issue that we need to worry about is the bouncing off the walls. The homework only calls for bouncing off the floor, which is relatively easy. The implementation in the homework bounces off all four walls which somewhat more difficult to implement. The method adopted in the homework solution takes advantage of the output of the odexx routines in Matlab. In these routines a time interval over which to solve the ODE is given and the routines return the intermediate values during the time interval. The homework solve the ODE in 1 second steps. In the bounce module, the end of the step is checked to see if it is past a wall. If it is past a wall, the earliest time at which a wall in encountered is found and the ODEs solved to that time. The velocity component perpendicular to the wall is changed (multiplied by the Wall efficiency WE), and the remainder of the time step is integrated and again checked for wall interaction. For a simple floor bounce there it is unlikely that there will be another bounce but when there are multi-walls there can be

7 solve the ODE in 1 second steps. In the bounce module, the end of the step is checked to see if it is past a wall. If it is past a wall, the earliest time at which a wall in encountered is found and the ODEs solved to that time. The velocity component perpendicular to the wall is changed (multiplied by the Wall efficiency WE), and the remainder of the time step is integrated and again checked for wall interaction. For a simple floor bounce there it is unlikely that there will be another bounce but when there are multi-walls there can be (basically the ball hits near a corner). The solution to the homework is HW6_4.m and it uses M-files acc.m and bounce.m. One test of the program is turn off gravity, make the central object attractive and see if the ball will orbit the central body (the program passes this test). Example output for HW6_4.m for the default settings that include drag, inefficient walls, and a repulsive force at the center of the box. The inputs for the program are by use of dialog box HW6 Question 4 Initial Position Initial Velocity Wall Efficiency Drag Coefficient 1.00e-04 Repulsive Force Redline shows trajectory and blue arrows are the velocity vectors at each of the 1-second steps in the integration. The green square in the middle shows the repulusive element position.

8 Example below shows results when the center force is attractive rather than repulsive HW6 Question 4 Initial Position Initial Velocity Wall Efficiency Drag Coefficient 1.00e-04 Repulsive Force »

Computational Methods of Scientific Programming Fall 2007

Computational Methods of Scientific Programming Fall 2007 MIT OpenCourseWare http://ocw.mit.edu 12.010 Computational Methods of Scientific Programming Fall 2007 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

More information

MATLAB Programming for Numerical Computation Dr. Niket Kaisare Department Of Chemical Engineering Indian Institute of Technology, Madras

MATLAB Programming for Numerical Computation Dr. Niket Kaisare Department Of Chemical Engineering Indian Institute of Technology, Madras MATLAB Programming for Numerical Computation Dr. Niket Kaisare Department Of Chemical Engineering Indian Institute of Technology, Madras Module No. #01 Lecture No. #1.1 Introduction to MATLAB programming

More information

Contents 10. Graphs of Trigonometric Functions

Contents 10. Graphs of Trigonometric Functions Contents 10. Graphs of Trigonometric Functions 2 10.2 Sine and Cosine Curves: Horizontal and Vertical Displacement...... 2 Example 10.15............................... 2 10.3 Composite Sine and Cosine

More information

Mass-Spring Systems. Last Time?

Mass-Spring Systems. Last Time? Mass-Spring Systems Last Time? Implicit Surfaces & Marching Cubes/Tetras Collision Detection & Conservative Bounding Regions Spatial Acceleration Data Structures Octree, k-d tree, BSF tree 1 Today Particle

More information

" n=0 n!(2n +1) Homework #2 Due Thursday, October 20, 2011

 n=0 n!(2n +1) Homework #2 Due Thursday, October 20, 2011 12.010 Homework #2 Due Thursday, October 20, 2011 Question (1): (25- points) (a) Write, compile and run a fortran program which generates a table of error function (erf) and its derivatives for real arguments

More information

Functions and Transformations

Functions and Transformations Using Parametric Representations to Make Connections Richard Parr T 3 Regional, Stephenville, Texas November 7, 009 Rice University School Mathematics Project rparr@rice.edu If you look up parametric equations

More information

Name Period. (b) Now measure the distances from each student to the starting point. Write those 3 distances here. (diagonal part) R measured =

Name Period. (b) Now measure the distances from each student to the starting point. Write those 3 distances here. (diagonal part) R measured = Lesson 5: Vectors and Projectile Motion Name Period 5.1 Introduction: Vectors vs. Scalars (a) Read page 69 of the supplemental Conceptual Physics text. Name at least 3 vector quantities and at least 3

More information

Dr Richard Greenaway

Dr Richard Greenaway SCHOOL OF PHYSICS, ASTRONOMY & MATHEMATICS 4PAM1008 MATLAB 2 Basic MATLAB Operation Dr Richard Greenaway 2 Basic MATLAB Operation 2.1 Overview 2.1.1 The Command Line In this Workshop you will learn how

More information

4 Visualization and. Approximation

4 Visualization and. Approximation 4 Visualization and Approximation b A slope field for the differential equation y tan(x + y) tan(x) tan(y). It is not always possible to write down an explicit formula for the solution to a differential

More information

Trigonometric Functions of Any Angle

Trigonometric Functions of Any Angle Trigonometric Functions of Any Angle MATH 160, Precalculus J. Robert Buchanan Department of Mathematics Fall 2011 Objectives In this lesson we will learn to: evaluate trigonometric functions of any angle,

More information

John's Tutorial on Everyday Mathcad (Version 9/2/09) Mathcad is not the specialist's ultimate mathematical simulator

John's Tutorial on Everyday Mathcad (Version 9/2/09) Mathcad is not the specialist's ultimate mathematical simulator John's Tutorial on Everyday Mathcad (Version 9/2/09) Mathcad isn't: Mathcad is not the specialist's ultimate mathematical simulator Applied mathematicians may prefer the power of Mathematica Complex programs

More information

GENERATING AND MODELING DATA FROM REAL-WORLD EXPERIMENTS

GENERATING AND MODELING DATA FROM REAL-WORLD EXPERIMENTS GENERATING AND MODELING DATA FROM REAL-WORLD EXPERIMENTS Robert E. Kowalczyk and Adam O. Hausknecht University of Massachusetts Dartmouth Mathematics Department, 285 Old Westport Road, N. Dartmouth, MA

More information

Tangent line problems

Tangent line problems You will find lots of practice problems and homework problems that simply ask you to differentiate. The following examples are to illustrate some of the types of tangent line problems that you may come

More information

How do you roll? Fig. 1 - Capstone screen showing graph areas and menus

How do you roll? Fig. 1 - Capstone screen showing graph areas and menus How do you roll? Purpose: Observe and compare the motion of a cart rolling down hill versus a cart rolling up hill. Develop a mathematical model of the position versus time and velocity versus time for

More information

[ MATLAB ] [ Resources ] PART TWO: SIMULINK

[ MATLAB ] [ Resources ] PART TWO: SIMULINK Página 1 de 15 [ MATLAB ] [ Resources ] PART TWO: SIMULINK Contents Introduction Getting Started Handling of Blocks and Lines Annotations Some Examples NOTE: This tutorial is based on Simulink Version

More information

ROSE-HULMAN INSTITUTE OF TECHNOLOGY

ROSE-HULMAN INSTITUTE OF TECHNOLOGY More Working Model Today we are going to look at even more features of Working Model. Specifically, we are going to 1) Learn how to add ropes and rods. 2) Learn how to connect object using joints and slots.

More information

Then you can create an object like a sphere or a box. A sphere is easy: And here s what you see:

Then you can create an object like a sphere or a box. A sphere is easy: And here s what you see: Visual Python Visual Python is a library of 3D objects you can program in Python to do all kinds of cool stuff using the tools you ve learned. Download and install the version for your computer at Vpython.org.

More information

A simple example. Assume we want to find the change in the rotation angles to get the end effector to G. Effect of changing s

A simple example. Assume we want to find the change in the rotation angles to get the end effector to G. Effect of changing s CENG 732 Computer Animation This week Inverse Kinematics (continued) Rigid Body Simulation Bodies in free fall Bodies in contact Spring 2006-2007 Week 5 Inverse Kinematics Physically Based Rigid Body Simulation

More information

How can the body make sound bend?

How can the body make sound bend? HPP Activity 54v2 How can the body make sound bend? Exploration To this point, you ve seen or heard waves bounce off of and pass through interfaces. But what happens if a sound wave strikes an interface

More information

Introduction to Simulink

Introduction to Simulink University College of Southeast Norway Introduction to Simulink Hans-Petter Halvorsen, 2016.11.01 http://home.hit.no/~hansha Preface Simulink, developed by The MathWorks, is a commercial tool for modeling,

More information

Introduction to MS Excel Management Information Systems

Introduction to MS Excel Management Information Systems Introduction to MS Excel 2007 Management Information Systems 1 Overview What is MS Excel? Functions. Sorting Data. Filtering Data. Data Form. Data Validation. Create charts in Excel. Formatting Cells.

More information

Tangents. In this tutorial we are going to take a look at how tangents can affect an animation.

Tangents. In this tutorial we are going to take a look at how tangents can affect an animation. Tangents In this tutorial we are going to take a look at how tangents can affect an animation. One of the 12 Principles of Animation is called Slow In and Slow Out. This refers to the spacing of the in

More information

MMAE-540 Adv. Robotics and Mechatronics - Fall 2007 Homework 4

MMAE-540 Adv. Robotics and Mechatronics - Fall 2007 Homework 4 MMAE-54 Adv. Robotics and Mechatronics - Fall 27 Homework 4 Assigned Wednesday Sep. 9th Due Wednesday Sept. 26th.5 Trajectory for t = s.5 Trajectory for t = 2 s.5.5 -.5 -.5 - - -.5 -.5-2 - 2-2 -.5 Trajectory

More information

GETTING STARTED WITH MATHEMATICA

GETTING STARTED WITH MATHEMATICA GETTING STARTED WITH MATHEMATICA Loading Mathematica : If you are on any Loyola network computer, you should be able to load Mathematica by clicking on the start button (on the lower left of the computer

More information

Numerical Methods in Scientific Computation

Numerical Methods in Scientific Computation Numerical Methods in Scientific Computation Programming and Software Introduction to error analysis 1 Packages vs. Programming Packages MATLAB Excel Mathematica Maple Packages do the work for you Most

More information

Automated Parameterization of the Joint Space Dynamics of a Robotic Arm. Josh Petersen

Automated Parameterization of the Joint Space Dynamics of a Robotic Arm. Josh Petersen Automated Parameterization of the Joint Space Dynamics of a Robotic Arm Josh Petersen Introduction The goal of my project was to use machine learning to fully automate the parameterization of the joint

More information

Tutorial: Getting Started with the LabVIEW Simulation Module

Tutorial: Getting Started with the LabVIEW Simulation Module Tutorial: Getting Started with the LabVIEW Simulation Module - LabVIEW 8.5 Simulati... Page 1 of 10 Cart Help Search You are here: NI Home > Support > Product Reference > Manuals > LabVIEW 8.5 Simulation

More information

Experiment 8 SIMULINK

Experiment 8 SIMULINK Experiment 8 SIMULINK Simulink Introduction to simulink SIMULINK is an interactive environment for modeling, analyzing, and simulating a wide variety of dynamic systems. SIMULINK provides a graphical user

More information

2.0 MATLAB Fundamentals

2.0 MATLAB Fundamentals 2.0 MATLAB Fundamentals 2.1 INTRODUCTION MATLAB is a computer program for computing scientific and engineering problems that can be expressed in mathematical form. The name MATLAB stands for MATrix LABoratory,

More information

An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s.

An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s. Using Monte Carlo to Estimate π using Buffon s Needle Problem An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s. Here s the problem (in a simplified form). Suppose

More information

SolidWorks Motion Study Tutorial

SolidWorks Motion Study Tutorial SolidWorks Motion Study Tutorial By: Mohamed Hakeem Mohamed Nizar Mechanical Engineering Student- May 2015 South Dakota School of Mines & Technology August 2013 Getting Started This tutorial is for you

More information

To see what directory your work is stored in, and the directory in which Matlab will look for files, type

To see what directory your work is stored in, and the directory in which Matlab will look for files, type Matlab Tutorial For Machine Dynamics, here s what you ll need to do: 1. Solve n equations in n unknowns (as in analytical velocity and acceleration calculations) - in Matlab, this is done using matrix

More information

SIMULINK A Tutorial by Tom Nguyen

SIMULINK A Tutorial by Tom Nguyen Introduction SIMULINK A Tutorial by Tom Nguyen Simulink (Simulation and Link) is an extension of MATLAB by Mathworks Inc. It works with MATLAB to offer modeling, simulating, and analyzing of dynamical

More information

OCR Maths M2. Topic Questions from Papers. Projectiles

OCR Maths M2. Topic Questions from Papers. Projectiles OCR Maths M2 Topic Questions from Papers Projectiles PhysicsAndMathsTutor.com 21 Aparticleisprojectedhorizontallywithaspeedof6ms 1 from a point 10 m above horizontal ground. The particle moves freely under

More information

Free Fall. Objective. Materials. Part 1: Determining Gravitational Acceleration, g

Free Fall. Objective. Materials. Part 1: Determining Gravitational Acceleration, g Free Fall Objective Students will work in groups to investigate free fall acceleration on the Earth. Students will measure the fundamental physical constant, g, and evaluate the dependence of free fall

More information

AMS 27L LAB #1 Winter 2009

AMS 27L LAB #1 Winter 2009 AMS 27L LAB #1 Winter 2009 Introduction to MATLAB Objectives: 1. To introduce the use of the MATLAB software package 2. To learn elementary mathematics in MATLAB Getting Started: Log onto your machine

More information

Using LoggerPro. Nothing is more terrible than to see ignorance in action. J. W. Goethe ( )

Using LoggerPro. Nothing is more terrible than to see ignorance in action. J. W. Goethe ( ) Using LoggerPro Nothing is more terrible than to see ignorance in action. J. W. Goethe (1749-1832) LoggerPro is a general-purpose program for acquiring, graphing and analyzing data. It can accept input

More information

Jane Li. Assistant Professor Mechanical Engineering Department, Robotic Engineering Program Worcester Polytechnic Institute

Jane Li. Assistant Professor Mechanical Engineering Department, Robotic Engineering Program Worcester Polytechnic Institute Jane Li Assistant Professor Mechanical Engineering Department, Robotic Engineering Program Worcester Polytechnic Institute (3 pts) Compare the testing methods for testing path segment and finding first

More information

LAB 03: The Equations of Uniform Motion

LAB 03: The Equations of Uniform Motion LAB 03: The Equations of Uniform Motion This experiment uses a ramp and a low-friction cart. If you give the cart a gentle push up the ramp, the cart will roll upward, slow and stop, and then roll back

More information

Graphical Analysis of Kinematics

Graphical Analysis of Kinematics Physics Topics Graphical Analysis of Kinematics If necessary, review the following topics and relevant textbook sections from Serway / Jewett Physics for Scientists and Engineers, 9th Ed. Velocity and

More information

Upgraded Swimmer for Computationally Efficient Particle Tracking for Jefferson Lab s CLAS12 Spectrometer

Upgraded Swimmer for Computationally Efficient Particle Tracking for Jefferson Lab s CLAS12 Spectrometer Upgraded Swimmer for Computationally Efficient Particle Tracking for Jefferson Lab s CLAS12 Spectrometer Lydia Lorenti Advisor: David Heddle April 29, 2018 Abstract The CLAS12 spectrometer at Jefferson

More information

Graphical Analysis of Kinematics

Graphical Analysis of Kinematics Physics Topics Graphical Analysis of Kinematics If necessary, review the following topics and relevant textbook sections from Serway / Jewett Physics for Scientists and Engineers, 9th Ed. Velocity and

More information

CISC 1600, Lab 2.3: Processing animation, objects, and arrays

CISC 1600, Lab 2.3: Processing animation, objects, and arrays CISC 1600, Lab 2.3: Processing animation, objects, and arrays Prof Michael Mandel 1 Getting set up For this lab, we will again be using Sketchpad. sketchpad.cc in your browser and log in. Go to http://cisc1600.

More information

Fathom Dynamic Data TM Version 2 Specifications

Fathom Dynamic Data TM Version 2 Specifications Data Sources Fathom Dynamic Data TM Version 2 Specifications Use data from one of the many sample documents that come with Fathom. Enter your own data by typing into a case table. Paste data from other

More information

ROSE-HULMAN INSTITUTE OF TECHNOLOGY

ROSE-HULMAN INSTITUTE OF TECHNOLOGY Introduction to Working Model Welcome to Working Model! What is Working Model? It's an advanced 2-dimensional motion simulation package with sophisticated editing capabilities. It allows you to build and

More information

Date Course Name Instructor Name Student(s) Name WHERE WILL IT LAND?

Date Course Name Instructor Name Student(s) Name WHERE WILL IT LAND? Date Course Name Instructor Name Student(s) Name WHERE WILL IT LAND? You have watched a ball roll off a table and strike the floor. What determines where it will land? Could you predict where it will land?

More information

Preview. Two-Dimensional Motion and Vectors Section 1. Section 1 Introduction to Vectors. Section 2 Vector Operations. Section 3 Projectile Motion

Preview. Two-Dimensional Motion and Vectors Section 1. Section 1 Introduction to Vectors. Section 2 Vector Operations. Section 3 Projectile Motion Two-Dimensional Motion and Vectors Section 1 Preview Section 1 Introduction to Vectors Section 2 Vector Operations Section 3 Projectile Motion Section 4 Relative Motion Two-Dimensional Motion and Vectors

More information

Since a projectile moves in 2-dimensions, it therefore has 2 components just like a resultant vector: Horizontal Vertical

Since a projectile moves in 2-dimensions, it therefore has 2 components just like a resultant vector: Horizontal Vertical Since a projectile moves in 2-dimensions, it therefore has 2 components just like a resultant vector: Horizontal Vertical With no gravity the projectile would follow the straight-line path (dashed line).

More information

To Measure a Constant Velocity. Enter.

To Measure a Constant Velocity. Enter. To Measure a Constant Velocity Apparatus calculator, black lead, calculator based ranger (cbr, shown), Physics application this text, the use of the program becomes second nature. At the Vernier Software

More information

Variable Definition and Statement Suppression You can create your own variables, and assign them values using = >> a = a = 3.

Variable Definition and Statement Suppression You can create your own variables, and assign them values using = >> a = a = 3. MATLAB Introduction Accessing Matlab... Matlab Interface... The Basics... 2 Variable Definition and Statement Suppression... 2 Keyboard Shortcuts... More Common Functions... 4 Vectors and Matrices... 4

More information

ASSIGNMENT 6 Final_Tracts.shp Phil_Housing.mat lnmv %Vac %NW Final_Tracts.shp Philadelphia Housing Phil_Housing_ Using Matlab Eire

ASSIGNMENT 6 Final_Tracts.shp Phil_Housing.mat lnmv %Vac %NW Final_Tracts.shp Philadelphia Housing Phil_Housing_ Using Matlab Eire ESE 502 Tony E. Smith ASSIGNMENT 6 This final study is a continuation of the analysis in Assignment 5, and will use the results of that analysis. It is assumed that you have constructed the shapefile,

More information

Excel Spreadsheets and Graphs

Excel Spreadsheets and Graphs Excel Spreadsheets and Graphs Spreadsheets are useful for making tables and graphs and for doing repeated calculations on a set of data. A blank spreadsheet consists of a number of cells (just blank spaces

More information

1 Introduction to Matlab

1 Introduction to Matlab 1 Introduction to Matlab 1. What is Matlab? Matlab is a computer program designed to do mathematics. You might think of it as a super-calculator. That is, once Matlab has been started, you can enter computations,

More information

GeoGebra. 10 Lessons. maths.com. Gerrit Stols. For more info and downloads go to:

GeoGebra. 10 Lessons.   maths.com. Gerrit Stols. For more info and downloads go to: GeoGebra in 10 Lessons For more info and downloads go to: http://school maths.com Gerrit Stols Acknowledgements Download GeoGebra from http://www.geogebra.org GeoGebra is dynamic mathematics open source

More information

Introduction to Displacement, Velocity and Acceleration

Introduction to Displacement, Velocity and Acceleration Purpose We will use computer simulation to become more familiar with the concepts of displacement, velocity and acceleration. Introduction We will study x-t, v-t, and a-t graphs in this lab. In particular,

More information

Precalculus 2 Section 10.6 Parametric Equations

Precalculus 2 Section 10.6 Parametric Equations Precalculus 2 Section 10.6 Parametric Equations Parametric Equations Write parametric equations. Graph parametric equations. Determine an equivalent rectangular equation for parametric equations. Determine

More information

The parametric equation below represents a ball being thrown straight up. x(t) = 3 y(t) = 96t! 16t 2

The parametric equation below represents a ball being thrown straight up. x(t) = 3 y(t) = 96t! 16t 2 1 TASK 3.1.2: THROWING Solutions The parametric equation below represents a ball being thrown straight up. x(t) = 3 y(t) = 96t! 16t 2 1. What do you think the graph will look like? Make a sketch below.

More information

Class #10 Wednesday, November 8, 2017

Class #10 Wednesday, November 8, 2017 Graphics In Excel Before we create a simulation, we need to be able to make a drawing in Excel. The techniques we use here are also used in Mathematica and LabVIEW. Drawings in Excel take place inside

More information

Introduction to Matlab Simulink. Control Systems

Introduction to Matlab Simulink. Control Systems Introduction to Matlab Simulink & their application in Control Systems ENTC 462 - Spring 2007 Introduction Simulink (Simulation and Link) is an extension of MATLAB by Mathworks Inc. It works with MATLAB

More information

1 Trajectories. Class Notes, Trajectory Planning, COMS4733. Figure 1: Robot control system.

1 Trajectories. Class Notes, Trajectory Planning, COMS4733. Figure 1: Robot control system. Class Notes, Trajectory Planning, COMS4733 Figure 1: Robot control system. 1 Trajectories Trajectories are characterized by a path which is a space curve of the end effector. We can parameterize this curve

More information

Two-Dimensional Projectile Motion

Two-Dimensional Projectile Motion Two-Dimensional Projectile Motion I. Introduction. This experiment involves the study of motion using a CCD video camera in which a sequence of video frames (a movie ) is recorded onto computer disk and

More information

Projectile Motion SECTION 3. Two-Dimensional Motion. Objectives. Use of components avoids vector multiplication.

Projectile Motion SECTION 3. Two-Dimensional Motion. Objectives. Use of components avoids vector multiplication. Projectile Motion Key Term projectile motion Two-Dimensional Motion Previously, we showed how quantities such as displacement and velocity were vectors that could be resolved into components. In this section,

More information

Reference and Style Guide for Microsoft Excel

Reference and Style Guide for Microsoft Excel Reference and Style Guide for Microsoft Excel TABLE OF CONTENTS Getting Acquainted 2 Basic Excel Features 2 Writing Cell Equations Relative and Absolute Addresses 3 Selecting Cells Highlighting, Moving

More information

Parametric Representation throughout Pre-Calculus Richard Parr Rice University School Mathematics Project

Parametric Representation throughout Pre-Calculus Richard Parr Rice University School Mathematics Project Parametric Representation throughout Pre-Calculus Richard Parr Rice University School Mathematics Project rparr@rice.edu If you look up parametric equations in the index of most Pre-Calculus books, you

More information

Math 133A, September 10: Numerical Methods (Euler & Runge-Kutta) Section 1: Numerical Methods

Math 133A, September 10: Numerical Methods (Euler & Runge-Kutta) Section 1: Numerical Methods Math 133A, September 10: Numerical Methods (Euler & Runge-Kutta) Section 1: Numerical Methods We have seen examples of first-order differential equations which can, by one method of another, be solved

More information

Spreadsheet View and Basic Statistics Concepts

Spreadsheet View and Basic Statistics Concepts Spreadsheet View and Basic Statistics Concepts GeoGebra 3.2 Workshop Handout 9 Judith and Markus Hohenwarter www.geogebra.org Table of Contents 1. Introduction to GeoGebra s Spreadsheet View 2 2. Record

More information

Getting Started With Mathematica

Getting Started With Mathematica Getting Started With Mathematica First Steps This semester we will make use of the software package Mathematica; this package is available on all Loyola networked computers. You can access Mathematica

More information

Unit II Graphing Functions and Data

Unit II Graphing Functions and Data Unit II Graphing Functions and Data These Materials were developed for use at and neither nor the author, Mark Schneider, assume any responsibility for their suitability or completeness for use elsewhere

More information

Core practical 10: Use ICT to analyse collisions between small spheres

Core practical 10: Use ICT to analyse collisions between small spheres Core practical 10 Teacher sheet Core practical 10: between small To investigate the conservation of momentum in two dimensions To determine whether a collision is elastic Specification links Procedure

More information

5.5 Newton s Approximation Method

5.5 Newton s Approximation Method 498CHAPTER 5. USING DERIVATIVES TO ANALYZE FUNCTIONS; FURTHER APPLICATIONS 4 3 y = x 4 3 f(x) = x cosx y = cosx 3 3 x = cosx x cosx = 0 Figure 5.: Figure showing the existence of a solution of x = cos

More information

Ordinary Differential Equation Solver Language (ODESL) Reference Manual

Ordinary Differential Equation Solver Language (ODESL) Reference Manual Ordinary Differential Equation Solver Language (ODESL) Reference Manual Rui Chen 11/03/2010 1. Introduction ODESL is a computer language specifically designed to solve ordinary differential equations (ODE

More information

Variables are used to store data (numbers, letters, etc) in MATLAB. There are a few rules that must be followed when creating variables in MATLAB:

Variables are used to store data (numbers, letters, etc) in MATLAB. There are a few rules that must be followed when creating variables in MATLAB: Contents VARIABLES... 1 Storing Numerical Data... 2 Limits on Numerical Data... 6 Storing Character Strings... 8 Logical Variables... 9 MATLAB S BUILT-IN VARIABLES AND FUNCTIONS... 9 GETTING HELP IN MATLAB...

More information

For more info and downloads go to: Gerrit Stols

For more info and downloads go to:   Gerrit Stols For more info and downloads go to: http://school-maths.com Gerrit Stols Acknowledgements GeoGebra is dynamic mathematics open source (free) software for learning and teaching mathematics in schools. It

More information

Agenda. Introduction Curve implementation. Particle System. - Requirements -What are all those vectors? -Where should I put things?

Agenda. Introduction Curve implementation. Particle System. - Requirements -What are all those vectors? -Where should I put things? Agenda Introduction Curve implementation - Requirements -What are all those vectors? -Where should I put things? Particle System - Requirements -What should I implement? - Suggestions - Cool forces Agenda

More information

SPH3U1 Lesson 12 Kinematics

SPH3U1 Lesson 12 Kinematics SPH3U1 Lesson 12 Kinematics PROJECTILE MOTION LEARNING GOALS Students will: Describe the motion of an object thrown at arbitrary angles through the air. Describe the horizontal and vertical motions of

More information

Engineering Tool Development

Engineering Tool Development Engineering Tool Development Codification of Legacy Three critical challenges for Indian engineering industry today Dr. R. S. Prabakar and Dr. M. Sathya Prasad Advanced Engineering 21 st August 2013 Three

More information

Math Analysis Final Exam Review. Chapter 1 Standards

Math Analysis Final Exam Review. Chapter 1 Standards Math Analysis Final Exam Review Chapter 1 Standards 1a 1b 1c 1d 1e 1f 1g Use the Pythagorean Theorem to find missing sides in a right triangle Use the sine, cosine, and tangent functions to find missing

More information

1. The Pythagorean Theorem

1. The Pythagorean Theorem . The Pythagorean Theorem The Pythagorean theorem states that in any right triangle, the sum of the squares of the side lengths is the square of the hypotenuse length. c 2 = a 2 b 2 This theorem can be

More information

Hands-on Lab. LabVIEW Simulation Tool Kit

Hands-on Lab. LabVIEW Simulation Tool Kit Hands-on Lab LabVIEW Simulation Tool Kit The LabVIEW Simulation Tool Kit features a comprehensive suite of tools to test designs. This lab provides a primer to implementing a simulation. This will be useful

More information

Quaternion to Euler Angle Conversion for Arbitrary Rotation Sequence Using Geometric Methods

Quaternion to Euler Angle Conversion for Arbitrary Rotation Sequence Using Geometric Methods uaternion to Euler Angle Conversion for Arbitrary Rotation Sequence Using Geometric Methods ê = normalized Euler ation axis i Noel H. Hughes Nomenclature = indices of first, second and third Euler

More information

VARIANCE REDUCTION TECHNIQUES IN MONTE CARLO SIMULATIONS K. Ming Leung

VARIANCE REDUCTION TECHNIQUES IN MONTE CARLO SIMULATIONS K. Ming Leung POLYTECHNIC UNIVERSITY Department of Computer and Information Science VARIANCE REDUCTION TECHNIQUES IN MONTE CARLO SIMULATIONS K. Ming Leung Abstract: Techniques for reducing the variance in Monte Carlo

More information

NMT EE 589 & UNM ME 482/582 ROBOT ENGINEERING. Dr. Stephen Bruder NMT EE 589 & UNM ME 482/582

NMT EE 589 & UNM ME 482/582 ROBOT ENGINEERING. Dr. Stephen Bruder NMT EE 589 & UNM ME 482/582 ROBOT ENGINEERING Dr. Stephen Bruder Course Information Robot Engineering Classroom UNM: Woodward Hall room 147 NMT: Cramer 123 Schedule Tue/Thur 8:00 9:15am Office Hours UNM: After class 10am Email bruder@aptec.com

More information

Advanced Graphics. Path Tracing and Photon Mapping Part 2. Path Tracing and Photon Mapping

Advanced Graphics. Path Tracing and Photon Mapping Part 2. Path Tracing and Photon Mapping Advanced Graphics Path Tracing and Photon Mapping Part 2 Path Tracing and Photon Mapping Importance Sampling Combine importance sampling techniques Reflectance function (diffuse + specular) Light source

More information

Name: Dr. Fritz Wilhelm Lab 1, Presentation of lab reports Page # 1 of 7 5/17/2012 Physics 120 Section: ####

Name: Dr. Fritz Wilhelm Lab 1, Presentation of lab reports Page # 1 of 7 5/17/2012 Physics 120 Section: #### Name: Dr. Fritz Wilhelm Lab 1, Presentation of lab reports Page # 1 of 7 Lab partners: Lab#1 Presentation of lab reports The first thing we do is to create page headers. In Word 2007 do the following:

More information

AA Simulation: Firing Range

AA Simulation: Firing Range America's Army walkthrough AA Simulation: Firing Range Firing Range This simulation serves as an introduction to uniform motion and the relationship between distance, rate, and time. Gravity is removed

More information

Contents 10. Graphs of Trigonometric Functions

Contents 10. Graphs of Trigonometric Functions Contents 10. Graphs of Trigonometric Functions 2 10.2 Sine and Cosine Curves: Horizontal and Vertical Displacement...... 2 Example 10.15............................... 2 10.3 Composite Sine and Cosine

More information

ENGR Fall Exam 1

ENGR Fall Exam 1 ENGR 13100 Fall 2012 Exam 1 INSTRUCTIONS: Duration: 60 minutes Keep your eyes on your own work! Keep your work covered at all times! 1. Each student is responsible for following directions. Read carefully.

More information

CLOTH - MODELING, DEFORMATION, AND SIMULATION

CLOTH - MODELING, DEFORMATION, AND SIMULATION California State University, San Bernardino CSUSB ScholarWorks Electronic Theses, Projects, and Dissertations Office of Graduate Studies 3-2016 CLOTH - MODELING, DEFORMATION, AND SIMULATION Thanh Ho Computer

More information

Speedway. Motion Study. Step 2. If necessary, turn on SolidWorks Motion. To turn on SolidWorks Motion, click Tools Menu > Add-Ins.

Speedway. Motion Study. Step 2. If necessary, turn on SolidWorks Motion. To turn on SolidWorks Motion, click Tools Menu > Add-Ins. Chapter 8 Speedway Motion Study A. Enable SolidWorks Motion. Step 1. If necessary, open your Speedway Assembly file. Step 2. If necessary, turn on SolidWorks Motion. To turn on SolidWorks Motion, click

More information

Pre-Lab Excel Problem

Pre-Lab Excel Problem Pre-Lab Excel Problem Read and follow the instructions carefully! Below you are given a problem which you are to solve using Excel. If you have not used the Excel spreadsheet a limited tutorial is given

More information

NaysEddy ver 1.0. Example MANUAL. By: Mohamed Nabi, Ph.D. Copyright 2014 iric Project. All Rights Reserved.

NaysEddy ver 1.0. Example MANUAL. By: Mohamed Nabi, Ph.D. Copyright 2014 iric Project. All Rights Reserved. NaysEddy ver 1.0 Example MANUAL By: Mohamed Nabi, Ph.D. Copyright 2014 iric Project. All Rights Reserved. Contents Introduction... 3 Getting started... 4 Simulation of flow over dunes... 6 1. Purpose of

More information

Dynamics and Vibrations Mupad tutorial

Dynamics and Vibrations Mupad tutorial Dynamics and Vibrations Mupad tutorial School of Engineering Brown University ENGN40 will be using Matlab Live Scripts instead of Mupad. You can find information about Live Scripts in the ENGN40 MATLAB

More information

Mathematical Techniques Chapter 10

Mathematical Techniques Chapter 10 PART FOUR Formulas FM 5-33 Mathematical Techniques Chapter 10 GEOMETRIC FUNCTIONS The result of any operation performed by terrain analysts will only be as accurate as the measurements used. An interpretation

More information

How to succeed in Math 365

How to succeed in Math 365 Table of Contents Introduction... 1 Tip #1 : Physical constants... 1 Tip #2 : Formatting output... 3 Tip #3 : Line continuation '...'... 3 Tip #4 : Typeset any explanatory text... 4 Tip #5 : Don't cut

More information

Introduction to Solid Modeling Using SolidWorks 2008 COSMOSMotion Tutorial Page 1

Introduction to Solid Modeling Using SolidWorks 2008 COSMOSMotion Tutorial Page 1 Introduction to Solid Modeling Using SolidWorks 2008 COSMOSMotion Tutorial Page 1 In this tutorial, we will learn the basics of performing motion analysis using COSMOSMotion. Although the tutorial can

More information

Velocity: A Bat s Eye View of Velocity

Velocity: A Bat s Eye View of Velocity Name School Date Purpose Velocity: A Bat s Eye View of Velocity There are a number of ways of representing motion that we ll find useful. Graphing position, velocity, and acceleration vs. time is often

More information

Mastery. PRECALCULUS Student Learning Targets

Mastery. PRECALCULUS Student Learning Targets PRECALCULUS Student Learning Targets Big Idea: Sequences and Series 1. I can describe a sequence as a function where the domain is the set of natural numbers. Connections (Pictures, Vocabulary, Definitions,

More information

Lecture 17: Recursive Ray Tracing. Where is the way where light dwelleth? Job 38:19

Lecture 17: Recursive Ray Tracing. Where is the way where light dwelleth? Job 38:19 Lecture 17: Recursive Ray Tracing Where is the way where light dwelleth? Job 38:19 1. Raster Graphics Typical graphics terminals today are raster displays. A raster display renders a picture scan line

More information

Accelerated Life Testing Module Accelerated Life Testing - Overview

Accelerated Life Testing Module Accelerated Life Testing - Overview Accelerated Life Testing Module Accelerated Life Testing - Overview The Accelerated Life Testing (ALT) module of AWB provides the functionality to analyze accelerated failure data and predict reliability

More information

PROJECTILE. 5) Define the terms Velocity as related to projectile motion: 6) Define the terms angle of projection as related to projectile motion:

PROJECTILE. 5) Define the terms Velocity as related to projectile motion: 6) Define the terms angle of projection as related to projectile motion: 1) Define Trajectory a) The path traced by particle in air b) The particle c) Vertical Distance d) Horizontal Distance PROJECTILE 2) Define Projectile a) The path traced by particle in air b) The particle

More information