3 Pages

CalcII...MATLAB#1

Course: PHYS 111a, Fall 2011
School: NJIT
Rating:
 
 
 
 
 

Word Count: 510

Document Preview

Crescenzi Robert Math 112-010 Matlab Assignment 1 Questions: Professor Horntrop March 03, 2011 b.)WhileN=10andN=100,noagreementbetweentheexactanswerandeach approximationwaspresentinadditiontoLeftendpointapproximationandRightapproximation ofN=1000.Ontheotherhand,whileN=1000fortrapezoidalrule,therewasafourdigit agreementbetweenthetrapezoidalapproximationandthetruevalue.Thetruevalueequatedto...

Register Now

Unformatted Document Excerpt

Coursehero >> New Jersey >> NJIT >> PHYS 111a

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
Crescenzi Robert Math 112-010 Matlab Assignment 1 Questions: Professor Horntrop March 03, 2011 b.)WhileN=10andN=100,noagreementbetweentheexactanswerandeach approximationwaspresentinadditiontoLeftendpointapproximationandRightapproximation ofN=1000.Ontheotherhand,whileN=1000fortrapezoidalrule,therewasafourdigit agreementbetweenthetrapezoidalapproximationandthetruevalue.Thetruevalueequatedto 2701.0114andthetrapezoidalapproximationequatedto2701.043792whicharenearlyidentical toeachother. c.)Inthiscase,theleftendpointapproximationandrightendpointapproximationarenot asaccurateasthetrapezoidalapproximationbyacertainfactorinrespecttothevalueofN. Numerically,whileN=10,theleftendpointapproximationisapprox.53%andtheright endpointapproximationisapprox.53%off.WhenN=100,theleftendpointapproximationand therightendpointapproximationisonlyoffbyabout6%.Finally,whenN=1000,theleft endpointapproximationandtherightendpointapproximationisonlyoffbyabout0.6%.Thus, thetrapezoidalrulesaccuracyisdependentonwhatkindofintervalsthatthesubjectacquires. Theaccuracywillincreasebythefactorof6foreveryintervalthatisused.Therightendpoint approximationandleftendpointapproximationwilleitherbebiggerthanorlessthanthe approximationoftrapezoidalruleaccordingtotheslopeofthefunctiongiven.Thetrapezoidal rulelimitsthatestimationduetousingslopeofthefunctioninbetweenthedeltaxinsteadof usingstraightlineonthefunctiontoapproximate Codes: a=1; N=10; b=3; h=(ba)/N; x=[a:h:b]; f=exp(3*x); IL=0; IR=0; IT=0; fork=1:N; IL=IL+f(k); IR=IR+f(k+1); IT=IT+(f(k)+f(k+1))/2; end; IL=IL*h; IR=IR*h; IT=IT*h; fprintf('WhenN=%i,wefind:\n',N); fprintf('Leftendpointapproximation=%f.\n',IL); fprintf('Rightendpointapproximation=%f.\n',IR); fprintf('Trapezoidalapproximation=%f.\n',IT); a=1; b=3; N=100; h=(ba)/N; x=[a:h:b]; f=exp(3*x); IL=0; IR=0; IT=0; fork=1:N; IL=IL+f(k); IR=IR+f(k+1); IT=IT+(f(k)+f(k+1))/2; end; IL=IL*h; IR=IR*h; IT=IT*h; fprintf('WhenN=%i,wefind:\n',N); fprintf('Leftendpointapproximation=%f.\n',IL); fprintf('Rightendpointapproximation=%f.\n',IR); fprintf('Trapezoidalapproximation=%f.\n',IT); a=1; b=3; N=1000; h=(ba)/N; x=[a:h:b]; f=exp(3*x); IL=0; IR=0; IT=0; fork=1:N; IL=IL+f(k); IR=IR+f(k+1); IT=IT+(f(k)+f(k+1))/2; end; IL=IL*h; IR=IR*h; IT=IT*h; fprintf('WhenN=%i,wefind:\n',N); fprintf('Leftendpointapproximation=%f.\n',IL); fprintf('Rightendpointapproximation=%f.\n',IR); fprintf('Trapezoidalapproximation=%f.\n',IT); Output:WhenN=10,wefind: Leftendpointapproximation=1397.004446. Rightendpointapproximation=4638.218102. Trapezoidalapproximation=3017.611274. WhenN=100,wefind: Leftendpointapproximation=2542.191133. Rightendpointapproximation=2866.312499. Trapezoidalapproximation=2704.251816. WhenN=1000,wefind: Leftendpointapproximation=2684.837724. Rightendpointapproximation=2717.249861. Trapezoidalapproximation=2701.043792.
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

NJIT - PHYS - 111a
Lab 201Electric Field by Point Charges2/10/2011Physics 121ARobert A. CrescenziObjective: To compute the electric field caused by point charges in a one dimensional and two dimensional setting.Theory: For the given charges, to find the electric field
NJIT - PHYS - 111a
PART 1 > clear all > diary ('Lab202'); % to save your work with file Lab202 > diary on > esp0= 8.85*10^-12; k=1/(4*pi*esp0); > q1=9*10^-9 q1 =9.0000e-009> > syms x y z > E= @(x,y,z) k*q1/(x-0.1)^2+(y-0.2)^2+(z-0.3)^2)^(3/2)* [x-0.1,y-0.2,z-0.3]; > I= [1
NJIT - PHYS - 111a
L ab 202Numerical Verification of Gausss Law2/17/2011Physics 121ARobert A. CrescenziObjective:To use MATLAB to evaluate Gausss Law numerically for different surfacesTo verify that the integral over the surface multiplied by e0 is the value of the e
NJIT - PHYS - 111a
NJIT - PHYS - 111a
NJIT - PHYS - 111a
NJIT - PHYS - 111a
Robert Crescenzi Dr. Donahue A Good Man is Indeed Hard to Find3/7/2011 1st Draft
NJIT - PHYS - 111a
Robert Crescenzi Dr. DonahueHUM 102-022 02/07/2011Character Analysis of Roberta in Recitatif Roberta plays an important role in the short story, Recitatif. Throughout the story, the narrator, Twyla, crosses paths with Roberta a total of four times; once
Rutgers - ENG - 100
Zaina Faruqi Expos Run-on sentences (fused sentences) What are run-ons? Run-ons are not necessarily looong sentences. But actually, run-on sentences are sentences that lack punctuation; they can be long, but they can also be short. Ex Sara went to the sto
BYU - SPAN - 321
ESPAOL 321 SECCIN 16 (LUNES Y MIRCOLES, 4:00-5:20 PM) INVIERNO 2010, 1006 JKBDR. JEFFREY S. TURLEY 3155 JFSB (TELFONO: 422-7019) jeffrey_turley@byu.eduDescripcin y objetivos del curso Este es el primer curso que hacen los recin llegados de una misin his
UGA - MARS - 1020
Biological Classification & The Tree of LifeA. Biological Classification a. Criteria for Classifying Organisms i. Anatomical 1. Look at how an organism is structured (body type, limbs, etc.) ii. Developmental 1. Look at embryonic development of organism
UGA - MARS - 1020
Biological Energy TransformationsA. Organic & Inorganic Molecules a. Organic molecules i. Large and complexii. High energy iii. Examples: 1. Glucose 2. Myristic acid 3. Petapeptide 4. DNA iv. All contain carbon, some hydrogen, and most contain oxygen b.
UGA - MARS - 1020
Marine Primary ProducersI. Food Chain a. Each level is called a trophic level b. Bottom trophic level is known as primary producers II. Marine Primary Producers a. Three main types: i. Phytoplankton 1. Plankton means drifting a. Cant swim, can only drift
UGA - MARS - 1020
Evolution & Natural SelectionI. Evolution a. descent with modification b. Species change over time c. New species arise from old species d. Living things share common ancestors e. Mechanism? i. Natural selection f. Theory of Evolution i. Significant (pre
UGA - MARS - 1020
The InvertebratesI. Marine Heterotrophic Protists a. Flagellates i. Small ii. Eat phytoplankton or bacteria iii. Heterotrophic Dinoflagellates 1. Eat larger phytoplankton 2. Can kill fish and feed off flesh 3. Can eat organisms bigger than themselves b.
UGA - ANTH - 1002
Chapter 1 Anthropology the study of the human species and its immediate ancestors Applied anthropology the application of anthropological data, perspectives, theory, and techniques to identify, asses, and solve modern social problems Archeological anthrop
UGA - ENGL - 2320
Derby 1Margaret Derby ENGL 2320 Dr. Santesso 10 February 2011 Violence and Rhetoric in Oroonoko and Robinson Crusoe Was Raskolnikovs killing of Alyona Ivanovna in Crime and Punishment acceptable? Were Macbeths murders for the sake of fulfilling a prophec
UGA - ENGL - 1102(M)
Margaret Derby November 19, 2010 ENGL 1102M Miriam Brown-Spiers QUESTION: How does Foer's use of grammar and mechanincs affect the overall effect of Everything is Illuminated on the reader? The Use of Grammar and Punctuation in Everything is Illuminated S
UGA - ANTH - 1102
Margaret Derby The daily rituals of the Nacirema people are certainly different from our own today. They value the health and beauty of the human body above all things, except money. The Nacirema people spend a great deal of their time working to collect
UGA - ANTH - 1102
In Tim Wises Preface: to the First Edition from his book, White Like Me: Reflections on Race From a Privileged Son, he talks about the racial injustices that are occurring in the United States even today. He begins by describing what exactly was meant by
Indiana Wesleyan - ACCT - 514A
M Hughley WS2 A4 Cases 17-1 and 18-2Casesa. Semi-variable cost allocations- since semi variable cost allocations are based upon d irect labor hours, a better assessment would be to calculate the hours of each employee and then average the number of hour
Rensselaer - PHYS - 1200
Physics 2 Lecture 1 Spring 2011Introduction Nature of Charge Coulombs Law Electric Field1Lecture 1 demonstrations Van de Graff generator. Force on suspended ball. Force on tape hair. Breakdown of air. Static force on suspended insulating rod. Leaf E
Rensselaer - PHYS - 1200
Physics 1200 Lecture 2 Spring 2011Flux of a Field, The surface normal Using Gauss Law to find the field Electric Potential1Representing the field: Electric Field Lines Electric field lines show the direction of E at any point. The magnitude of E is pr
Rensselaer - PHYS - 1200
Physics 1200 Lecture 2 - F2011Current and Current density Resistivity and Resistance Power dissipationCapacitance Calculating capacitance Energy storage1Current and Current Density Resistivity and Resistance Ohms Law Power dissipation2Electric Curre
Rensselaer - PHYS - 1200
Physics 1200Lecture 4 Resistive CircuitsConcepts: Electromotive force and potential Series and parallel circuits Loop and junction rules RC time constantP2S11 1iClicker question 4.012 1 X 3465YZConsider the circuit on your worksheets and on the
Rensselaer - PHYS - 1200
Physics 1200Lecture 5 Magnetic forces Creating magnetic fieldsPhysics 2 - Persans - S20111Some observations Certain chunks of metal exert force on one another even in the absence of net charge. These chunks align with respect to each other. We will a
Rensselaer - PHYS - 1200
Physics 1200Lecture 06Faradays Law and LenzLaw Inductance Transformers!** Roll out!Spring 2011 1iClicker Question 6.01 We know that a current in a wire creates a magnetic field. We also know that a magnetic field induces a force on a moving charge o
Rensselaer - PHYS - 1200
Physics 2 S 2011 Lecture 07RC, RL, LC and RLC circuits Harmonic signals AC devices1Capacitors and inductors in circuitsdi d 2q Emf L L L 2 dt dt dq Emf R iR R dt 1 qC EmfC idt C C Write Emf loop equations and/or junction equations using current or ch
Rensselaer - PHYS - 1200
Rensselaer - PHYS - 1200
Rensselaer - PHYS - 1200
Coastal Carolina - ENGLISH - 1100
Dickson Bridger English 1200, 9 Dr. Schlobin December 1, 2009 CANCER RESISTANT Cancer is a term used for diseases in which abnormal cells divide without control and are able to invade other tissues. Cancer cells spread to parts of the body through the blo
Moraine Valley Community College - BUSINESS - 143
14-1Chapter 14Managerial Accounting Concepts and PrinciplesMcGraw-Hill/Irwin The McGraw-Hill Companies, Inc., 200714-2C1Nature of Managerial AccountingFinancial Accounting1. Users anddecision makers I nvestors, creditors and other external users
University of Ottawa - ECON - 6120
ECON 3808 Economies in TransitionInstructor: Crina Viju TA: Sara RoseDefining an economy Economic system: set of mechanisms guiding resource allocation Decision-making structure; Information and coordination mechanisms; Property rights; Incentives. E
University of Ottawa - ECON - 6120
The Social History of Alcohol HIST 3109A , 3109T Course OutlineLectures Instructor Office E-mail Office hours Tuesdays, 6:05-8:55 PM Professor Rod Phillips Paterson Hall, Room 409 roderick_phillips@carleton.ca Mondays 10:00-11:30AM, or by appointmentFal
University of Ottawa - ECON - 6120
University of Ottawa - ECON - 6120
Lecture2:Questions (1)GreeceandRomesponsoredviticultureinSpain,France,andPortugal?(T/F) (2)Whenisitestimatedbyhistoriansthatwine/beerwerediscovered? (3)Howhavehistoriansestimatedthistimeperiod? (4)Theoldestknownwinevesselcanbedatedtowhatcentury? (5)Howwas
University of Ottawa - ECON - 6120
History of Alcohol Lecture 3 Period 1000 1500s There was alsways a distinction between wine/beer and spirits Spirits didnt have the same associations with religion or health (no tradition) Monasteries had the privilege to distil Privilege means private
University of Ottawa - ECON - 6120
University of Ottawa - ECON - 6120
Lecture 5Distilled Beverages Heat to remove water and leave alcohol Vapour gets catched and drained into liquid form leaving high alcohol content (rectification) Alchemists were the first trying to turn base metals into gold Largely confined to monasteri
University of Ottawa - ECON - 6120
History of Alcohol Lecture 6America 17th century (1600s): Distilling and viticulture spread towards the west Americans had a hostile outlook on alcohol, much different from Europe Puritans were Anglicans (members of the church of England) who didnt app
University of Ottawa - ECON - 6120
(1)Givetworulesforbeerads. (2)WhoenforcestheserulesinCanada? (3)Whyisbeerconsideredbysometobe"maleperfume"? (4)Sociabilityis#1forbeerads.(T/F) (5)Theproducersofbeeradsnavigateafinelinebetweenencouragingthe"right"peopleto consumetheirproduct(e.g.Ontariansa
University of Ottawa - ECON - 6120
Take Home QUIZ #2 E3050A To be handed in to my mailbox no later then December 22, 2010 All questions are worth 10 marks each The Quiz is worth 20% of your Final Mark. 1. Vincent Van Gogh sold only one painting during his lifetime, for about $30. A sunflow
University of Ottawa - ECON - 6120
T HE E CONOMICS OF F INANCIAL M ARKETSR. E. BAILEYExercises for Chapter 9 Empirical appraisal of the CAPM and APT1. The following table contains ten years of excess return data for the ordinary shares of ABC plc and the market portfolio. Discuss how co
University of Ottawa - ECON - 6120
T HE E CONOMICS OF F INANCIAL M ARKETSR. E. BAILEYExercises for Chapter 10 Present value relationships and price variability1. Suppose that the relationship between the rate of interest, dividends and an asset price is given by: dt+i+1 pt+i+1 pt+i rt+i
University of Ottawa - ECON - 6120
T HE E CONOMICS OF F INANCIAL M ARKETSR. E. BAILEYExercises for Chapter 1 Asset markets and asset prices1. Consider the following foreign exchange rates: 1 = e 2 1 = $1.5 $1 = e 1 Examine the opportunity for arbitrage prots if such prices were observed
University of Ottawa - ECON - 6120
T HE E CONOMICS OF F INANCIAL M ARKETSR. E. BAILEYExercises for Chapter 2 Asset market microstructure1. Distinguish between order-driven and quote-driven asset markets. Discuss their relative strengths and weaknesses.2. To what extent is there a trade
University of Ottawa - ECON - 6120
T HE E CONOMICS OF F INANCIAL M ARKETSR. E. BAILEYExercises for Chapter 3 Predictability of prices and market efciency1. In the following table the probabilities of an assets payoffs are given, according to whether the information available to the inve
University of Ottawa - ECON - 6120
T HE E CONOMICS OF F INANCIAL M ARKETSR. E. BAILEYExercises for Chapter 4 Decision making under uncertainty1. Consider an investor who makes decisions according to a mean-variance objective. (a) Sketch indifference curves for the investor (with expecte
University of Ottawa - ECON - 6120
T HE E CONOMICS OF F INANCIAL M ARKETSR. E. BAILEYExercises for Chapter 5 Portfolio selection: the mean-variance model1. An investor uses the mean-variance criterion for selecting a portfolio of two risky assets. Asset 1 has an expected return of 20% a
University of Ottawa - ECON - 6120
T HE E CONOMICS OF F INANCIAL M ARKETSR. E. BAILEYExercises for Chapter 6 The capital asset pricing model1. The following information is provided for a stock market: j 6.6% 9.8% 12.2% j 0.4 1.2 1.8Asset 1 Asset 2 Asset 3Notation: j = expected rate of
University of Ottawa - ECON - 6120
T HE E CONOMICS OF F INANCIAL M ARKETSR. E. BAILEYSolution Guide to Exercises for Chapter 4 Decision making under uncertainty1. Consider an investor who makes decisions according to a mean-variance objective. (a) Sketch indifference curves for the inve
University of Ottawa - ECON - 6120
University of Ottawa - ECON - 6120
T HE E CONOMICS OF F INANCIAL M ARKETSR. E. BAILEYSolution Guide to Exercises for Chapter 6 The capital asset pricing model1. The following information is provided for a stock market: j 6.6% 9.8% 12.2% j 0.4 1.2 1.8Asset 1 Asset 2 Asset 3Notation: j
University of Ottawa - ECON - 6120
T HE E CONOMICS OF F INANCIAL M ARKETSR. E. BAILEYExercises for Chapter 7 Arbitrage1. What is the arbitrage equilibrium price of asset C in the example below? (Explain) Asset A State 1 State 2 Price 9 4 5 Asset B 0 8 4 Asset C 12 6 ?2. Use the informa
University of Ottawa - ECON - 6120
T HE E CONOMICS OF F INANCIAL M ARKETSR. E. BAILEYExercises for Chapter 8 Factor models and the arbitrage pricing theory1. The following information is provided for a stock market in which asset returns respond to two factors: Asset A B r0 bj 1 1.2 0.8
University of Ottawa - ECON - 6120
University of Ottawa - ECON - 6120
Carleton University Department of Economics ECON 3050 A Int roduction to Financial Economics Instructor: Peter Wrage Fall 2010 E-mail: peter_wrage@carleton.ca Office: A-802 Loeb Office Hours: Mondays, 4:305:30 p.m. Telephone: 613-520-2600 x 6668 Teaching
University of Ottawa - ECON - 6120
The Economics of Financial MarketsRoy E. Bailey Cambridge, New York, Melbourne, Madrid, Cape Town, Singapore, So Paulo Cambridge University Press The Edinburgh Building, Cambridge , UK Published in the United States of America by Cambridge University Pr
University of Ottawa - ECON - 6120
ECON 3050A Introduction To Financial Economics Lecture 1 Asset Markets And Asset Prices We will consider how asset prices are determine and, consequently their rates of return Central to asset price determination is the process of arbitrage, a process tha
University of Ottawa - ECON - 6120
ECON 3050A Introduction to Financial Economics Lecture 2 The Asset Market Microstructure We had previously argued that the market price of an asset was determined by investors willing to hold the existing stock of an asset in total i.e. its total supply.