FORTRAN Lesson 4. Reese Haywood Ayan Paul
|
|
- Lynne Lyons
- 7 years ago
- Views:
Transcription
1 FORTRAN Lesson 4 Reese Haywood Ayan Paul In Today s lesson we wll learn how to OPEN, READ and WRITE data fles. I wll then gve you the tools necessary for fttng a least squares lne to set of data ponts. Fnally, we wll wrte a program that reads n a three column data fle, fnds the least squares starght-lne ft to the data, prnts the results to the screen and wrtes the data to a fle. We wll then plot the results usng gnuplot. 1 Openng an external data fle All of the programs we have wrtten thus far have taken user nput drectly from the keyboard. Ths method s fne for small data sets, but s annoyng when the data sets become large compared, 1000 sets of x, y, and error, for example, the program runnng your detector spts out, energy, counts and error n the counts durng a data run. Gettng the data nto the Fortran program means we have to open the fle. The OPEN statement has the general form, bbbbbbopen (UNIT=nteger expresson, FILE=flename, STATUS=lteral) The nteger expresson desgnates the unt number assgned to the fle, the flename refers to the name gven to the fle when t was created, and the status lteral tells the computer whether the fle s an nput fle or an output fle. If the fle s an nput fle, t s specfed wth STATUS= OLD ; f the fle s an ouptut fle, t s specfed wth STATUS= NEW. If the fle exsts, and we want to add more data to t, we can use the STATUS= APPEND command. Ths wll append the data to the end of the fle; n ths case we 1
2 would not use a rewnd command, otherwse we wll lose the data we are tryng to save. The OPEN must be called before the READ or WRITE statments n the program. The OPEN should be executed only once; don t put t n a loop. Some systems requre a REWIND statement after openng an nput fle to poston the fle at ts begnnng. 2 Readng data from a fle To read from a data fle, we use an extenson of the lst-drected READ statement that has the followng form: bbbbbbread (unt number,*) varable lst The unt number s the same number entered n the OPEN(UNIT=nteger number) statment. Ths allows us to open multple fles for readng, wrtng, or readng and wrtng at the same tme,.e. use a dfferent nteger number for each fle to be opened. 3 Wrtng to a data fle To wrte nformaton to a data fle, we use a new statement a WRITE statement. Just lke the PRINT statement, the WRITE statement can be used wth lst-drected output or formatted output. The lst-drected WRITE statement has the followng form: bbbbbbwrite (unt number,*) expresson lst The formatted WRITE statement has the followng general form: bbbbbbwrite (unt number,k) expresson lst 2
3 where k s the statement number of the correspondng FORMAT statement. In all of these general forms, the unt number corresponds to the unt number assgned n the OPEN statement. The asterck followng the unt number specfes that we are usng lst-drected nput or output. Many systems assgn the standard nput devce (typcally the termnal keyboard) to unt number 5 and the standard output devce (typcally the termnal screen) to unt number 6; these devces are used when your program executes READ* or PRINT* statements. You should avod usng these numbers as unt numbers n yout OPEN statements etc. 4 Closng a fle When we are fnshed executng a program that has used the fles, the fles are automatcaly closed before the program termnates. Occasonlly there are stuatons n whch you would lke to specfcally close, or dsconnect a fle from your program. Ths s done wth the CLOSE command. It has the general form lsted below: bbbbbbclose (UNIT=nteger expresson) 5 Rules to remember We now summarze some mportant rules to remember when readng data from data fles. 1. Each READ statement wll start wth a new lne of data. If there are values left on the prevous lne that were not read, they wll be skpped. 2. If a lne does not contan enough values to match to the lst of varables on the READ statement, another data lne wll automatcally be read to acqure more values. Addtonal data lnes wll be read untl values have been acqured for all the varables lsted on the READ statement. 3. A READ statement does not have to read all the values on the data lne: however, t does have to read all the values on the lne pror to the values that you want. For example, f a fle has 5 values per lne and you are nterested n the thrd and fourth values, you must read 3
4 the frst and second values to get to the thrd and fourth values, but you do not need to read the ffth value. If you have a data fle that looks lke ths: The followng statement wll correctly read a tme and temperature value from the data fle: bbbbbbread(10,*) tme, temp If we had used the followng command, bbbbbbread(10,*) tme bbbbbbread(10,*) temp then the program would have read two lnes and the values stored n tme and temp wll be 0.0 and 0.1 respectvely. 6 Technques for Readng Data Fles To read nformaton from a data fle, we must know, the name of the fle and what nformaton s stored n the fle. The nformaton must be very specfc, such as the number of values entered per lne and the unts of the values.e. (sec, Kelvn, etc.). In addton, we need to know f there s any specal nformaton n the fle that wll be useful n decdng how many records are n the fle, or how to determne when we have read the last record. If we execute the READ statement after we have reached the end of a fle, we wll get an error message and the program wll qut. 4
5 6.1 If we know the number.. If we know the number of records, or data ponts, n the fle we can use a DO loop to process the data. If the number of lnes s gven to us n the header of the fle we can use that to read n the data. For example, we can read n the followng data wth the correspondng code below: The data are saved n a fle named RESULTS1. The followng code would read the data set: bbbbbbopen (UNIT=10, FILE= RESULTS1, STATUS= OLD ) bbbbbbread (10,*) COUNT bbbbbbif (COUNT.LT.1) THEN bbbbbbbbbbprint*, NO DATA ACCORDING TO RECORD COUNT bbbbbbelse bbbbbbbbbbsum=0.0 bbbbbbbbbbdo 20 J=1,COUNT bbbbbbbbbbbbbbread(10,*) TIME,TEMP bbbbbbbbbbbbbbsum=sum+temp bbb20 bbbbb CONTINUE 6.2 If we know there s a traler.. As the name suggest, the traler s the last record n the fle. The traler s usually a specfc number that represents the end of the data. We could read the data below nto the program wth the correspondng code:
6 The code to read ths n would be, assumng the fle s named RESULTS2: bbbbbbopen (UNIT=10,FILE= RESULTS2, STATUS= OLD ) bbbbbbsum=0.0 bbbbbbcount=0 bbbb5 b READ (10,*) TIME, TEMP bbbbbbbbbbif (TIME.NE ) THEN bbbbbbbbbbsum=sum+temp bbbbbbbbbbcount=count+1 bbbbbbbbbbread(10,*) TIME, TEMP bbbbbbbbbbgo TO 5 bbbbbbend IF Here we have used the smple whle loop we used n the Average.f program. 6.3 The END opton The READ command has one other opton, END. In general, the READ statement would look lke ths: bbbbbbread (unt number,*,end=n) varable lst A READ statement usng the END opton s used when the number of data ponts s unknown. The END opton tells the program that the end of the fle has been read, and nstead of crashng, sends executon to the statement labeled by n. An example code s gven below: bbbb5 b READ(10,*,END=15) TIME, TEMP bbbbbbbbbbsum=sum+temp bbbbbbbbbbcount=count+1 bbbbbbbbbbgo TO 5 bbb15 b PRINT*,SUM 6
7 Ths specal mplementaton fo the whle loop should only be used when you do not know the number of data lnes to be read and there s no traler sgnal at the end of the fle. The choce of the correct technque for readng data from a data fle depends on the nformaton n the data fle. If you know each lne represents the data you need, you can use the Lnux command wc -l flename to get the number of lnes n the fle. Ths can then be nput nto the program, ether from the user, or hardcoded n. 7 Wrtng data fles Wrtng data s essentally the exact opposte of readng. If we wanted to wrte out the values of the tme and the values of a snusod to a data fle we would use the followng code: bbbbbbopen (UNIT=10,FILE= SONAR,STATUS= NEW ) bbbbbbdo K=0,NUMBER-1 bbbbbbbbbbtime=real(k)*t bbbbbbbbbbsignal=a*cos(2.0*pi*freq*time) bbbbbbbbbbwrite (10,*) TIME,SIGNAL bbbbbbend DO For now we wll use the unformatted wrte statement, f we needed a specfc format we could use the formatted wrte statement, whch we wll return to later. 8 Vectors Before we can wrte our lne fttng routne, we need to learn how to defne vectors n Fortran. There are two dfferent ways to defne a vector, we can use the DIMENSION statement, or the REAL/INTEGER statements mentoned earler. The general form of each s below: bbbbbbdimension array1(sze),array2(sze), 7
8 bbbbbbreal array1(sze) bbbbbbinteger array2(sze).. When we use the DIMENSION statement the data type s defned by the name we gve the array. If the array name begns wth (A-H) or (O-Z) the data type s assumed REAL. If the name begns wth (I-N) the data type s assumed INTEGER. Usng the REAL and INTEGER declaraton avods the mplct namng problems that can occur, I prefer usng them. Notce that the data type for all values n the array are the same, all elements are ether REAL or INTEGER, they don t mx and match. As an example, f we wanted to defne an nteger array, J, and a real array, DIST, each wth 50 ponts, we would use the followng equvalent commands: bbbbbbdimension J(50), DIST(50) or bbbbbbreal DIST(50) bbbbbbinteger J(50) Once the vectors are defned we stll have to put data values n them. Some complers wll automatcally set all elements equal to 0. Do not assume your compler wll. If we wanted to set the values of DIST to zero before we begn any operatons we can use the followng code: bbbbbbdo I=1,50 bbbbbbbbbbdist(i)=0. bbbbbbend DO Here the ndex, I, represents the elements subscrpt,.e. a. To pck off any gven element, we use parantheses besde the name of the varable. If we wanted to defne a sngle element to be 0, we would use the followng command, J(5)=0. Ths would let element number 5 n the vector J be 0. Note Arrays start wth ndex 1 and not wth ndex 0. 8
9 9 Your next task You wll wrte a program to read n a set of data, x,y, and the error n y. The data wll be used to fnd the lne that mnmzes χ 2. Fnally, wrte a new fle that contans the data values, and the ft to the lne. We wll plot ths usng gnuplot. 9.1 Before you begn You need to know the equatons needed for fndng the slope and the ntercept these are gven below. The slope, a, and the ntercept, b, that mnmze χ 2 are: where, A = D = =1 =1 X X 2 The errors n a and b are: a = b = B = E = δa = δb = E B C A D B A 2 D C E A D B A 2 =1 =1 1 X Y B D B A 2 D D B A 2 Wth these quanttes we can now calculate χ 2 by: χ 2 = C = F = (Y (a X + b )) 2 =1 =1 =1 Y Y 2 9
10 9.2 The data fle You wll fnd a data fle you can use to check your program on my webpage. You should remember the 5 step problem solvng process whle wrtng you program. You can verfy your program s gvng you the correct answers by creatng you own set of straght lne data,.e., use a data fle lke the followng as your nput: Usng the above data, your program should gve you slope=2 and ntercept=0 (You can fnd a fle contanng the lnear test data set on my webpage). The errors n each should be rather small also. You wll fnd my verson of the program and the output fles (lne.dat and stat.dat) on my webpage. 9.3 Usng gnuplot To use gnuplot type gnuplot <ENTER> n the termnal. once the program opens, type: prompt% plot nputflename usng 1:2:3 wth errorbars, outputflename wth lne <ENTER> Ths should gve you a plot of the ponts, and the straght lne ft you found wth your program. You can use any other plottng program you lke, gnuplot s the one I am most famlar wth. 10
+ + + - - This circuit than can be reduced to a planar circuit
MeshCurrent Method The meshcurrent s analog of the nodeoltage method. We sole for a new set of arables, mesh currents, that automatcally satsfy KCLs. As such, meshcurrent method reduces crcut soluton to
More informationCausal, Explanatory Forecasting. Analysis. Regression Analysis. Simple Linear Regression. Which is Independent? Forecasting
Causal, Explanatory Forecastng Assumes cause-and-effect relatonshp between system nputs and ts output Forecastng wth Regresson Analyss Rchard S. Barr Inputs System Cause + Effect Relatonshp The job of
More informationSection 5.4 Annuities, Present Value, and Amortization
Secton 5.4 Annutes, Present Value, and Amortzaton Present Value In Secton 5.2, we saw that the present value of A dollars at nterest rate per perod for n perods s the amount that must be deposted today
More informationModule 2 LOSSLESS IMAGE COMPRESSION SYSTEMS. Version 2 ECE IIT, Kharagpur
Module LOSSLESS IMAGE COMPRESSION SYSTEMS Lesson 3 Lossless Compresson: Huffman Codng Instructonal Objectves At the end of ths lesson, the students should be able to:. Defne and measure source entropy..
More informationSupport Vector Machines
Support Vector Machnes Max Wellng Department of Computer Scence Unversty of Toronto 10 Kng s College Road Toronto, M5S 3G5 Canada wellng@cs.toronto.edu Abstract Ths s a note to explan support vector machnes.
More informationPRACTICE 1: MUTUAL FUNDS EVALUATION USING MATLAB.
PRACTICE 1: MUTUAL FUNDS EVALUATION USING MATLAB. INDEX 1. Load data usng the Edtor wndow and m-fle 2. Learnng to save results from the Edtor wndow. 3. Computng the Sharpe Rato 4. Obtanng the Treynor Rato
More informationUsing Series to Analyze Financial Situations: Present Value
2.8 Usng Seres to Analyze Fnancal Stuatons: Present Value In the prevous secton, you learned how to calculate the amount, or future value, of an ordnary smple annuty. The amount s the sum of the accumulated
More informationLuby s Alg. for Maximal Independent Sets using Pairwise Independence
Lecture Notes for Randomzed Algorthms Luby s Alg. for Maxmal Independent Sets usng Parwse Independence Last Updated by Erc Vgoda on February, 006 8. Maxmal Independent Sets For a graph G = (V, E), an ndependent
More informationSolution: Let i = 10% and d = 5%. By definition, the respective forces of interest on funds A and B are. i 1 + it. S A (t) = d (1 dt) 2 1. = d 1 dt.
Chapter 9 Revew problems 9.1 Interest rate measurement Example 9.1. Fund A accumulates at a smple nterest rate of 10%. Fund B accumulates at a smple dscount rate of 5%. Fnd the pont n tme at whch the forces
More informationTexas Instruments 30X IIS Calculator
Texas Instruments 30X IIS Calculator Keystrokes for the TI-30X IIS are shown for a few topcs n whch keystrokes are unque. Start by readng the Quk Start secton. Then, before begnnng a specfc unt of the
More informationThe OC Curve of Attribute Acceptance Plans
The OC Curve of Attrbute Acceptance Plans The Operatng Characterstc (OC) curve descrbes the probablty of acceptng a lot as a functon of the lot s qualty. Fgure 1 shows a typcal OC Curve. 10 8 6 4 1 3 4
More informationLinear Circuits Analysis. Superposition, Thevenin /Norton Equivalent circuits
Lnear Crcuts Analyss. Superposton, Theenn /Norton Equalent crcuts So far we hae explored tmendependent (resste) elements that are also lnear. A tmendependent elements s one for whch we can plot an / cure.
More informationRecurrence. 1 Definitions and main statements
Recurrence 1 Defntons and man statements Let X n, n = 0, 1, 2,... be a MC wth the state space S = (1, 2,...), transton probabltes p j = P {X n+1 = j X n = }, and the transton matrx P = (p j ),j S def.
More informationTHE METHOD OF LEAST SQUARES THE METHOD OF LEAST SQUARES
The goal: to measure (determne) an unknown quantty x (the value of a RV X) Realsaton: n results: y 1, y 2,..., y j,..., y n, (the measured values of Y 1, Y 2,..., Y j,..., Y n ) every result s encumbered
More informationn + d + q = 24 and.05n +.1d +.25q = 2 { n + d + q = 24 (3) n + 2d + 5q = 40 (2)
MATH 16T Exam 1 : Part I (In-Class) Solutons 1. (0 pts) A pggy bank contans 4 cons, all of whch are nckels (5 ), dmes (10 ) or quarters (5 ). The pggy bank also contans a con of each denomnaton. The total
More information21 Vectors: The Cross Product & Torque
21 Vectors: The Cross Product & Torque Do not use our left hand when applng ether the rght-hand rule for the cross product of two vectors dscussed n ths chapter or the rght-hand rule for somethng curl
More informationWe assume your students are learning about self-regulation (how to change how alert they feel) through the Alert Program with its three stages:
Welcome to ALERT BINGO, a fun-flled and educatonal way to learn the fve ways to change engnes levels (Put somethng n your Mouth, Move, Touch, Look, and Lsten) as descrbed n the How Does Your Engne Run?
More informationv a 1 b 1 i, a 2 b 2 i,..., a n b n i.
SECTION 8.4 COMPLEX VECTOR SPACES AND INNER PRODUCTS 455 8.4 COMPLEX VECTOR SPACES AND INNER PRODUCTS All the vector spaces we have studed thus far n the text are real vector spaces snce the scalars are
More informationThe Full-Wave Rectifier
9/3/2005 The Full Wae ectfer.doc /0 The Full-Wae ectfer Consder the followng juncton dode crcut: s (t) Power Lne s (t) 2 Note that we are usng a transformer n ths crcut. The job of ths transformer s to
More information8.5 UNITARY AND HERMITIAN MATRICES. The conjugate transpose of a complex matrix A, denoted by A*, is given by
6 CHAPTER 8 COMPLEX VECTOR SPACES 5. Fnd the kernel of the lnear transformaton gven n Exercse 5. In Exercses 55 and 56, fnd the mage of v, for the ndcated composton, where and are gven by the followng
More informationSimple Interest Loans (Section 5.1) :
Chapter 5 Fnance The frst part of ths revew wll explan the dfferent nterest and nvestment equatons you learned n secton 5.1 through 5.4 of your textbook and go through several examples. The second part
More informationUpdating the E5810B firmware
Updatng the E5810B frmware NOTE Do not update your E5810B frmware unless you have a specfc need to do so, such as defect repar or nstrument enhancements. If the frmware update fals, the E5810B wll revert
More informationIn our example i = r/12 =.0825/12 At the end of the first month after your payment is received your amount in the account, the balance, is
Payout annutes: Start wth P dollars, e.g., P = 100, 000. Over a 30 year perod you receve equal payments of A dollars at the end of each month. The amount of money left n the account, the balance, earns
More informationConferencing protocols and Petri net analysis
Conferencng protocols and Petr net analyss E. ANTONIDAKIS Department of Electroncs, Technologcal Educatonal Insttute of Crete, GREECE ena@chana.tecrete.gr Abstract: Durng a computer conference, users desre
More informationFaraday's Law of Induction
Introducton Faraday's Law o Inducton In ths lab, you wll study Faraday's Law o nducton usng a wand wth col whch swngs through a magnetc eld. You wll also examne converson o mechanc energy nto electrc energy
More informationImplementation of Deutsch's Algorithm Using Mathcad
Implementaton of Deutsch's Algorthm Usng Mathcad Frank Roux The followng s a Mathcad mplementaton of Davd Deutsch's quantum computer prototype as presented on pages - n "Machnes, Logc and Quantum Physcs"
More informationWhat is Candidate Sampling
What s Canddate Samplng Say we have a multclass or mult label problem where each tranng example ( x, T ) conssts of a context x a small (mult)set of target classes T out of a large unverse L of possble
More informationLecture 2: Single Layer Perceptrons Kevin Swingler
Lecture 2: Sngle Layer Perceptrons Kevn Sngler kms@cs.str.ac.uk Recap: McCulloch-Ptts Neuron Ths vastly smplfed model of real neurons s also knon as a Threshold Logc Unt: W 2 A Y 3 n W n. A set of synapses
More informationA Simple Approach to Clustering in Excel
A Smple Approach to Clusterng n Excel Aravnd H Center for Computatonal Engneerng and Networng Amrta Vshwa Vdyapeetham, Combatore, Inda C Rajgopal Center for Computatonal Engneerng and Networng Amrta Vshwa
More informationbenefit is 2, paid if the policyholder dies within the year, and probability of death within the year is ).
REVIEW OF RISK MANAGEMENT CONCEPTS LOSS DISTRIBUTIONS AND INSURANCE Loss and nsurance: When someone s subject to the rsk of ncurrng a fnancal loss, the loss s generally modeled usng a random varable or
More informationAnswer: A). There is a flatter IS curve in the high MPC economy. Original LM LM after increase in M. IS curve for low MPC economy
4.02 Quz Solutons Fall 2004 Multple-Choce Questons (30/00 ponts) Please, crcle the correct answer for each of the followng 0 multple-choce questons. For each queston, only one of the answers s correct.
More informationChapter 4 ECONOMIC DISPATCH AND UNIT COMMITMENT
Chapter 4 ECOOMIC DISATCH AD UIT COMMITMET ITRODUCTIO A power system has several power plants. Each power plant has several generatng unts. At any pont of tme, the total load n the system s met by the
More informationVRT012 User s guide V0.1. Address: Žirmūnų g. 27, Vilnius LT-09105, Phone: (370-5) 2127472, Fax: (370-5) 276 1380, Email: info@teltonika.
VRT012 User s gude V0.1 Thank you for purchasng our product. We hope ths user-frendly devce wll be helpful n realsng your deas and brngng comfort to your lfe. Please take few mnutes to read ths manual
More informationThe Mathematical Derivation of Least Squares
Pscholog 885 Prof. Federco The Mathematcal Dervaton of Least Squares Back when the powers that e forced ou to learn matr algera and calculus, I et ou all asked ourself the age-old queston: When the hell
More information1. Measuring association using correlation and regression
How to measure assocaton I: Correlaton. 1. Measurng assocaton usng correlaton and regresson We often would lke to know how one varable, such as a mother's weght, s related to another varable, such as a
More informationVembu StoreGrid Windows Client Installation Guide
Ser v cepr ov dered t on Cl enti nst al l at ongu de W ndows Vembu StoreGrd Wndows Clent Installaton Gude Download the Wndows nstaller, VembuStoreGrd_4_2_0_SP_Clent_Only.exe To nstall StoreGrd clent on
More informationHow To Calculate The Accountng Perod Of Nequalty
Inequalty and The Accountng Perod Quentn Wodon and Shlomo Ytzha World Ban and Hebrew Unversty September Abstract Income nequalty typcally declnes wth the length of tme taen nto account for measurement.
More informationGENESYS BUSINESS MANAGER
GENESYS BUSINESS MANAGER e-manager Onlne Conference User Account Admnstraton User Gude Ths User Gude contans the followng sectons: Mnmum Requrements...3 Gettng Started...4 Sgnng On to Genesys Busness Manager...7
More informationTypes of Injuries. (20 minutes) LEARNING OBJECTIVES MATERIALS NEEDED
U N I T 3 Types of Injures (20 mnutes) PURPOSE: To help coaches learn how to recognze the man types of acute and chronc njures. LEARNING OBJECTIVES In ths unt, coaches wll learn how most njures occur,
More informationA hybrid global optimization algorithm based on parallel chaos optimization and outlook algorithm
Avalable onlne www.ocpr.com Journal of Chemcal and Pharmaceutcal Research, 2014, 6(7):1884-1889 Research Artcle ISSN : 0975-7384 CODEN(USA) : JCPRC5 A hybrd global optmzaton algorthm based on parallel
More informationProject Networks With Mixed-Time Constraints
Project Networs Wth Mxed-Tme Constrants L Caccetta and B Wattananon Western Australan Centre of Excellence n Industral Optmsaton (WACEIO) Curtn Unversty of Technology GPO Box U1987 Perth Western Australa
More informationActivity Scheduling for Cost-Time Investment Optimization in Project Management
PROJECT MANAGEMENT 4 th Internatonal Conference on Industral Engneerng and Industral Management XIV Congreso de Ingenería de Organzacón Donosta- San Sebastán, September 8 th -10 th 010 Actvty Schedulng
More informationConsider a 1-D stationary state diffusion-type equation, which we will call the generalized diffusion equation from now on:
Chapter 1 Boundary value problems Numercal lnear algebra technques can be used for many physcal problems. In ths chapter we wll gve some examples of how these technques can be used to solve certan boundary
More informationCalculation of Sampling Weights
Perre Foy Statstcs Canada 4 Calculaton of Samplng Weghts 4.1 OVERVIEW The basc sample desgn used n TIMSS Populatons 1 and 2 was a two-stage stratfed cluster desgn. 1 The frst stage conssted of a sample
More informationCHAPTER 14 MORE ABOUT REGRESSION
CHAPTER 14 MORE ABOUT REGRESSION We learned n Chapter 5 that often a straght lne descrbes the pattern of a relatonshp between two quanttatve varables. For nstance, n Example 5.1 we explored the relatonshp
More information8 Algorithm for Binary Searching in Trees
8 Algorthm for Bnary Searchng n Trees In ths secton we present our algorthm for bnary searchng n trees. A crucal observaton employed by the algorthm s that ths problem can be effcently solved when the
More informationTime Value of Money. Types of Interest. Compounding and Discounting Single Sums. Page 1. Ch. 6 - The Time Value of Money. The Time Value of Money
Ch. 6 - The Tme Value of Money Tme Value of Money The Interest Rate Smple Interest Compound Interest Amortzng a Loan FIN21- Ahmed Y, Dasht TIME VALUE OF MONEY OR DISCOUNTED CASH FLOW ANALYSIS Very Important
More informationVision Mouse. Saurabh Sarkar a* University of Cincinnati, Cincinnati, USA ABSTRACT 1. INTRODUCTION
Vson Mouse Saurabh Sarkar a* a Unversty of Cncnnat, Cncnnat, USA ABSTRACT The report dscusses a vson based approach towards trackng of eyes and fngers. The report descrbes the process of locatng the possble
More informationFigure 1. Inventory Level vs. Time - EOQ Problem
IEOR 54 Sprng, 009 rof Leahman otes on Eonom Lot Shedulng and Eonom Rotaton Cyles he Eonom Order Quantty (EOQ) Consder an nventory tem n solaton wth demand rate, holdng ost h per unt per unt tme, and replenshment
More informationJoe Pimbley, unpublished, 2005. Yield Curve Calculations
Joe Pmbley, unpublshed, 005. Yeld Curve Calculatons Background: Everythng s dscount factors Yeld curve calculatons nclude valuaton of forward rate agreements (FRAs), swaps, nterest rate optons, and forward
More informationFinite Math Chapter 10: Study Guide and Solution to Problems
Fnte Math Chapter 10: Study Gude and Soluton to Problems Basc Formulas and Concepts 10.1 Interest Basc Concepts Interest A fee a bank pays you for money you depost nto a savngs account. Prncpal P The amount
More informationCanon NTSC Help Desk Documentation
Canon NTSC Help Desk Documentaton READ THIS BEFORE PROCEEDING Before revewng ths documentaton, Canon Busness Solutons, Inc. ( CBS ) hereby refers you, the customer or customer s representatve or agent
More informationAn Overview of Financial Mathematics
An Overvew of Fnancal Mathematcs Wllam Benedct McCartney July 2012 Abstract Ths document s meant to be a quck ntroducton to nterest theory. It s wrtten specfcally for actuaral students preparng to take
More informationHollinger Canadian Publishing Holdings Co. ( HCPH ) proceeding under the Companies Creditors Arrangement Act ( CCAA )
February 17, 2011 Andrew J. Hatnay ahatnay@kmlaw.ca Dear Sr/Madam: Re: Re: Hollnger Canadan Publshng Holdngs Co. ( HCPH ) proceedng under the Companes Credtors Arrangement Act ( CCAA ) Update on CCAA Proceedngs
More informationSection 5.3 Annuities, Future Value, and Sinking Funds
Secton 5.3 Annutes, Future Value, and Snkng Funds Ordnary Annutes A sequence of equal payments made at equal perods of tme s called an annuty. The tme between payments s the payment perod, and the tme
More informationPOLYSA: A Polynomial Algorithm for Non-binary Constraint Satisfaction Problems with and
POLYSA: A Polynomal Algorthm for Non-bnary Constrant Satsfacton Problems wth and Mguel A. Saldo, Federco Barber Dpto. Sstemas Informátcos y Computacón Unversdad Poltécnca de Valenca, Camno de Vera s/n
More informationCHAPTER 5 RELATIONSHIPS BETWEEN QUANTITATIVE VARIABLES
CHAPTER 5 RELATIONSHIPS BETWEEN QUANTITATIVE VARIABLES In ths chapter, we wll learn how to descrbe the relatonshp between two quanttatve varables. Remember (from Chapter 2) that the terms quanttatve varable
More informationwhere the coordinates are related to those in the old frame as follows.
Chapter 2 - Cartesan Vectors and Tensors: Ther Algebra Defnton of a vector Examples of vectors Scalar multplcaton Addton of vectors coplanar vectors Unt vectors A bass of non-coplanar vectors Scalar product
More informationThe University of Texas at Austin. Austin, Texas 78712. December 1987. Abstract. programs in which operations of dierent processes mayoverlap.
Atomc Semantcs of Nonatomc Programs James H. Anderson Mohamed G. Gouda Department of Computer Scences The Unversty of Texas at Austn Austn, Texas 78712 December 1987 Abstract We argue that t s possble,
More information1 Example 1: Axis-aligned rectangles
COS 511: Theoretcal Machne Learnng Lecturer: Rob Schapre Lecture # 6 Scrbe: Aaron Schld February 21, 2013 Last class, we dscussed an analogue for Occam s Razor for nfnte hypothess spaces that, n conjuncton
More informationELM for Exchange version 5.5 Exchange Server Migration
ELM for Exchange verson 5.5 Exchange Server Mgraton Copyrght 06 Lexmark. All rghts reserved. Lexmark s a trademark of Lexmark Internatonal, Inc., regstered n the U.S. and/or other countres. All other trademarks
More informationHosted Voice Self Service Installation Guide
Hosted Voce Self Servce Installaton Gude Contact us at 1-877-355-1501 learnmore@elnk.com www.earthlnk.com 2015 EarthLnk. Trademarks are property of ther respectve owners. All rghts reserved. 1071-07629
More informationEE31 Series. Manual. Logger & Visualisation Software. BA_EE31_VisuLoggerSW_01_eng // Technical data are subject to change V1.0
EE31 Seres Manual Logger & Vsualsaton Software BA_EE31_VsuLoggerSW_01_eng // Techncal data are subject to change V1.0 Logger & Vsualsaton Software - EE31 Seres GENERAL Ths software has been developed by
More informationForecasting the Direction and Strength of Stock Market Movement
Forecastng the Drecton and Strength of Stock Market Movement Jngwe Chen Mng Chen Nan Ye cjngwe@stanford.edu mchen5@stanford.edu nanye@stanford.edu Abstract - Stock market s one of the most complcated systems
More informationChapter 7: Answers to Questions and Problems
19. Based on the nformaton contaned n Table 7-3 of the text, the food and apparel ndustres are most compettve and therefore probably represent the best match for the expertse of these managers. Chapter
More informationSIMPLE LINEAR CORRELATION
SIMPLE LINEAR CORRELATION Smple lnear correlaton s a measure of the degree to whch two varables vary together, or a measure of the ntensty of the assocaton between two varables. Correlaton often s abused.
More informationIS-LM Model 1 C' dy = di
- odel Solow Assumptons - demand rrelevant n long run; assumes economy s operatng at potental GDP; concerned wth growth - Assumptons - supply s rrelevant n short run; assumes economy s operatng below potental
More information0.02t if 0 t 3 δ t = 0.045 if 3 < t
1 Exam FM questons 1. (# 12, May 2001). Bruce and Robbe each open up new bank accounts at tme 0. Bruce deposts 100 nto hs bank account, and Robbe deposts 50 nto hs. Each account earns an annual effectve
More informationExtending Probabilistic Dynamic Epistemic Logic
Extendng Probablstc Dynamc Epstemc Logc Joshua Sack May 29, 2008 Probablty Space Defnton A probablty space s a tuple (S, A, µ), where 1 S s a set called the sample space. 2 A P(S) s a σ-algebra: a set
More informationMathematics of Finance
5 Mathematcs of Fnance 5.1 Smple and Compound Interest 5.2 Future Value of an Annuty 5.3 Present Value of an Annuty;Amortzaton Chapter 5 Revew Extended Applcaton:Tme, Money, and Polynomals Buyng a car
More informationPeriod and Deadline Selection for Schedulability in Real-Time Systems
Perod and Deadlne Selecton for Schedulablty n Real-Tme Systems Thdapat Chantem, Xaofeng Wang, M.D. Lemmon, and X. Sharon Hu Department of Computer Scence and Engneerng, Department of Electrcal Engneerng
More information7.5. Present Value of an Annuity. Investigate
7.5 Present Value of an Annuty Owen and Anna are approachng retrement and are puttng ther fnances n order. They have worked hard and nvested ther earnngs so that they now have a large amount of money on
More informationLecture 3: Annuity. Study annuities whose payments form a geometric progression or a arithmetic progression.
Lecture 3: Annuty Goals: Learn contnuous annuty and perpetuty. Study annutes whose payments form a geometrc progresson or a arthmetc progresson. Dscuss yeld rates. Introduce Amortzaton Suggested Textbook
More informationCISCO SPA500G SERIES REFERENCE GUIDE
CISCO SPA500G SERIES REFERENCE GUIDE Part of the Csco Small Busness Pro Seres, the SIP based Csco SPA504G 4-Lne IP phone wth 2-port swtch has been tested to ensure comprehensve nteroperablty wth equpment
More informationHALL EFFECT SENSORS AND COMMUTATION
OEM770 5 Hall Effect ensors H P T E R 5 Hall Effect ensors The OEM770 works wth three-phase brushless motors equpped wth Hall effect sensors or equvalent feedback sgnals. In ths chapter we wll explan how
More informationMATLAB Workshop 15 - Linear Regression in MATLAB
MATLAB: Workshop 15 - Lnear Regresson n MATLAB page 1 MATLAB Workshop 15 - Lnear Regresson n MATLAB Objectves: Learn how to obtan the coeffcents of a straght-lne ft to data, dsplay the resultng equaton
More informationInstitute of Informatics, Faculty of Business and Management, Brno University of Technology,Czech Republic
Lagrange Multplers as Quanttatve Indcators n Economcs Ivan Mezník Insttute of Informatcs, Faculty of Busness and Management, Brno Unversty of TechnologCzech Republc Abstract The quanttatve role of Lagrange
More informationAlarm Task Script Language
Alarm Task Scrpt Language Verson 5.51 en Scrpt Language Alarm Task Scrpt Language Table of Contents 3 Table of contents 1 Introducton 4 2 Defntons 5 2.1 Actons 5 2.2 Events and states 5 2.3 Alarm Task
More informationTesting Database Programs using Relational Symbolic Execution
Testng Database Programs usng Relatonal Symbolc Executon Mchaël Marcozz 1, Wm Vanhoof, Jean-Luc Hanaut Faculty of Computer Scence Unversty of Namur Rue Grandgagnage, 21 5000 Namur, Belgum Abstract Symbolc
More information1. Fundamentals of probability theory 2. Emergence of communication traffic 3. Stochastic & Markovian Processes (SP & MP)
6.3 / -- Communcaton Networks II (Görg) SS20 -- www.comnets.un-bremen.de Communcaton Networks II Contents. Fundamentals of probablty theory 2. Emergence of communcaton traffc 3. Stochastc & Markovan Processes
More information(6)(2) (-6)(-4) (-4)(6) + (-2)(-3) + (4)(3) + (2)(-3) = -12-24 + 24 + 6 + 12 6 = 0
Chapter 3 Homework Soluton P3.-, 4, 6, 0, 3, 7, P3.3-, 4, 6, P3.4-, 3, 6, 9, P3.5- P3.6-, 4, 9, 4,, 3, 40 ---------------------------------------------------- P 3.- Determne the alues of, 4,, 3, and 6
More informationA Novel Methodology of Working Capital Management for Large. Public Constructions by Using Fuzzy S-curve Regression
Novel Methodology of Workng Captal Management for Large Publc Constructons by Usng Fuzzy S-curve Regresson Cheng-Wu Chen, Morrs H. L. Wang and Tng-Ya Hseh Department of Cvl Engneerng, Natonal Central Unversty,
More informationCHOLESTEROL REFERENCE METHOD LABORATORY NETWORK. Sample Stability Protocol
CHOLESTEROL REFERENCE METHOD LABORATORY NETWORK Sample Stablty Protocol Background The Cholesterol Reference Method Laboratory Network (CRMLN) developed certfcaton protocols for total cholesterol, HDL
More informationAddendum to: Importing Skill-Biased Technology
Addendum to: Importng Skll-Based Technology Arel Bursten UCLA and NBER Javer Cravno UCLA August 202 Jonathan Vogel Columba and NBER Abstract Ths Addendum derves the results dscussed n secton 3.3 of our
More informationFINANCIAL MATHEMATICS
3 LESSON FINANCIAL MATHEMATICS Annutes What s an annuty? The term annuty s used n fnancal mathematcs to refer to any termnatng sequence of regular fxed payments over a specfed perod of tme. Loans are usually
More informationAn Alternative Way to Measure Private Equity Performance
An Alternatve Way to Measure Prvate Equty Performance Peter Todd Parlux Investment Technology LLC Summary Internal Rate of Return (IRR) s probably the most common way to measure the performance of prvate
More informationCalibration and Linear Regression Analysis: A Self-Guided Tutorial
Calbraton and Lnear Regresson Analyss: A Self-Guded Tutoral Part The Calbraton Curve, Correlaton Coeffcent and Confdence Lmts CHM314 Instrumental Analyss Department of Chemstry, Unversty of Toronto Dr.
More informationPERRON FROBENIUS THEOREM
PERRON FROBENIUS THEOREM R. CLARK ROBINSON Defnton. A n n matrx M wth real entres m, s called a stochastc matrx provded () all the entres m satsfy 0 m, () each of the columns sum to one, m = for all, ()
More informationTime Value of Money Module
Tme Value of Money Module O BJECTIVES After readng ths Module, you wll be able to: Understand smple nterest and compound nterest. 2 Compute and use the future value of a sngle sum. 3 Compute and use the
More informationThe Greedy Method. Introduction. 0/1 Knapsack Problem
The Greedy Method Introducton We have completed data structures. We now are gong to look at algorthm desgn methods. Often we are lookng at optmzaton problems whose performance s exponental. For an optmzaton
More informationLecture 3: Force of Interest, Real Interest Rate, Annuity
Lecture 3: Force of Interest, Real Interest Rate, Annuty Goals: Study contnuous compoundng and force of nterest Dscuss real nterest rate Learn annuty-mmedate, and ts present value Study annuty-due, and
More information1. Math 210 Finite Mathematics
1. ath 210 Fnte athematcs Chapter 5.2 and 5.3 Annutes ortgages Amortzaton Professor Rchard Blecksmth Dept. of athematcal Scences Northern Illnos Unversty ath 210 Webste: http://math.nu.edu/courses/math210
More informationIDENTIFICATION AND CORRECTION OF A COMMON ERROR IN GENERAL ANNUITY CALCULATIONS
IDENTIFICATION AND CORRECTION OF A COMMON ERROR IN GENERAL ANNUITY CALCULATIONS Chrs Deeley* Last revsed: September 22, 200 * Chrs Deeley s a Senor Lecturer n the School of Accountng, Charles Sturt Unversty,
More informationSeries Solutions of ODEs 2 the Frobenius method. The basic idea of the Frobenius method is to look for solutions of the form 3
Royal Holloway Unversty of London Department of Physs Seres Solutons of ODEs the Frobenus method Introduton to the Methodology The smple seres expanson method works for dfferental equatons whose solutons
More informationMathematics of Finance
CHAPTER 5 Mathematcs of Fnance 5.1 Smple and Compound Interest 5.2 Future Value of an Annuty 5.3 Present Value of an Annuty; Amortzaton Revew Exercses Extended Applcaton: Tme, Money, and Polynomals Buyng
More informationFINANCIAL MATHEMATICS. A Practical Guide for Actuaries. and other Business Professionals
FINANCIAL MATHEMATICS A Practcal Gude for Actuares and other Busness Professonals Second Edton CHRIS RUCKMAN, FSA, MAAA JOE FRANCIS, FSA, MAAA, CFA Study Notes Prepared by Kevn Shand, FSA, FCIA Assstant
More informationFeature selection for intrusion detection. Slobodan Petrović NISlab, Gjøvik University College
Feature selecton for ntruson detecton Slobodan Petrovć NISlab, Gjøvk Unversty College Contents The feature selecton problem Intruson detecton Traffc features relevant for IDS The CFS measure The mrmr measure
More informationHow To Solve A Problem In A Powerline (Powerline) With A Powerbook (Powerbook)
MIT 8.996: Topc n TCS: Internet Research Problems Sprng 2002 Lecture 7 March 20, 2002 Lecturer: Bran Dean Global Load Balancng Scrbe: John Kogel, Ben Leong In today s lecture, we dscuss global load balancng
More informationLeast Squares Fitting of Data
Least Squares Fttng of Data Davd Eberly Geoetrc Tools, LLC http://www.geoetrctools.co/ Copyrght c 1998-2016. All Rghts Reserved. Created: July 15, 1999 Last Modfed: January 5, 2015 Contents 1 Lnear Fttng
More informationLogistic Regression. Lecture 4: More classifiers and classes. Logistic regression. Adaboost. Optimization. Multiple class classification
Lecture 4: More classfers and classes C4B Machne Learnng Hlary 20 A. Zsserman Logstc regresson Loss functons revsted Adaboost Loss functons revsted Optmzaton Multple class classfcaton Logstc Regresson
More information