8 Pages

lecture14

Course: CS CS143, Fall 2010
School: Stanford
Rating:
 
 
 
 
 

Word Count: 1798

Document Preview

Outline Lecture Intermediate code Intermediate Code & Local Optimizations Local optimizations Lecture 14 Next time: global optimizations Prof. Aiken CS 143 Lecture 14 Prof. Aiken CS 143 Lecture 14 1 Code Generation Summary Optimization We have discussed 2 Optimization is our last compiler phase Runtime organization Simple stack machine code generation Improvements to stack machine code...

Register Now

Unformatted Document Excerpt

Coursehero >> California >> Stanford >> CS CS143

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.
Outline Lecture Intermediate code Intermediate Code & Local Optimizations Local optimizations Lecture 14 Next time: global optimizations Prof. Aiken CS 143 Lecture 14 Prof. Aiken CS 143 Lecture 14 1 Code Generation Summary Optimization We have discussed 2 Optimization is our last compiler phase Runtime organization Simple stack machine code generation Improvements to stack machine code generation Our compiler maps AST to assembly language And does not perform optimizations Prof. Aiken CS 143 Lecture 14 Most complexity in modern compilers is in the optimizer Also by far the largest phase First, we need to discuss intermediate languages 3 Prof. Aiken CS 143 Lecture 14 4 Why Intermediate Languages? Intermediate Languages When should we perform optimizations? Intermediate language = high-level assembly On AST Uses register names, but has an unlimited number Uses control structures like assembly language Uses opcodes but some are higher level Pro: Machine independent Con: Too high level On assembly language Pro: Exposes optimization opportunities Con: Machine dependent Con: Must reimplement optimizations when retargetting E.g., push translates to several assembly instructions Most opcodes correspond directly to assembly opcodes On an intermediate language Pro: Machine independent Pro: Exposes optimization opportunities Prof. Aiken CS 143 Lecture 14 5 Prof. Aiken CS 143 Lecture 14 6 1 Three-Address Intermediate Code Generating Intermediate Code Each instruction is of the form x := y op z x := op y Similar to assembly code generation But use any number of IL registers to hold intermediate results y and z are registers or constants Common form of intermediate code The expression x + y * z is translated t1 := y * z t2 := x + t1 Each subexpression has a name Prof. Aiken CS 143 Lecture 14 7 Prof. Aiken CS 143 Lecture 14 8 Generating Intermediate Code (Cont.) Intermediate Code Notes igen(e, t) function generates code to compute the value of e in register t Example: You should be able to use intermediate code igen(e1 + e2, t) = igen(e1, t1) igen(e2, t2) t := t1 + t2 At the level discussed in lecture You are not expected to know how to generate intermediate code (t1 is a fresh register) (t2 is a fresh register) Because we wont discuss it But really just a variation on code generation . . . Unlimited number of registers simple code generation Prof. Aiken CS 143 Lecture 14 9 An Intermediate Language 10 Definition. Basic Blocks PSP|e ids are register names S id := id op id Constants can replace ids | id := op id Typical operators: +, -, * | id := id | push id | id := pop | if id relop id goto L | L: | jump L Prof. Aiken CS 143 Lecture 14 Prof. Aiken CS 143 Lecture 14 11 A basic block is a maximal sequence of instructions with: no labels (except at the first instruction), and no jumps (except in the last instruction) Idea: Cannot jump into a basic block (except at beginning) Cannot jump out of a basic block (except at end) A basic block is a single-entry, single-exit, straight-line code segment Prof. Aiken CS 143 Lecture 14 12 2 Basic Block Example Definition. Control-Flow Graphs A control-flow graph is a directed graph with Consider the basic block 1. L: 2. t := 2 * x 3. w := t + x 4. if w > 0 goto L Basic blocks as nodes An edge from block A to block B if the execution can pass from the last instruction in A to the first instruction in B E.g., the last instruction in A is jump LB E.g., execution can fall-through from block A to block B (3) executes only after (2) We can change (3) to w := 3 * x Can we eliminate (2) as well? Prof. Aiken CS 143 Lecture 14 13 Example of Control-Flow Graphs x := 1 i := 1 L: x := x * x i := i + 1 if i < 10 goto L 14 Optimization Overview The body of a method (or procedure) can be represented as a controlflow graph There is one initial node All return nodes are terminal Prof. Aiken CS 143 Lecture 14 Prof. Aiken CS 143 Lecture 14 Optimization seeks to improve a programs resource utilization Execution time (most often) Code size Network messages sent, etc. Optimization should not alter what the program computes The answer must still be the same 15 Prof. Aiken CS 143 Lecture 14 16 A Classification of Optimizations Cost of Optimizations In practice, a conscious decision is made not to implement the fanciest optimization known For languages like C and Cool there are three granularities of optimizations 1. Local optimizations Why? Apply to a basic block in isolation 2. Global optimizations Apply to a control-flow graph (method body) in isolation 3. Inter-procedural optimizations Apply across method boundaries Most compilers do (1), many do (2), few do (3) Prof. Aiken CS 143 Lecture 14 17 Some optimizations are hard to implement Some optimizations are costly in compilation time Some optimizations have low benefit Many fancy optimizations are all three! Goal: Maximum benefit for minimum cost Prof. Aiken CS 143 Lecture 14 18 3 Local Optimizations Algebraic Simplification The simplest form of optimizations Some statements can be deleted No need to analyze the whole procedure body Just the basic block in question Some statements can be simplified x := x * 0 x := 0 y := y ** 2 y := y * y x := x * 8 x := x << 3 x := x * 15 t := x << 4; x := t - x (on some machines << is faster than *; but not on all!) Example: algebraic simplification Prof. Aiken CS 143 Lecture 14 x := x + 0 x := x * 1 19 Prof. Aiken CS 143 Lecture 14 Constant Folding Flow of Control Optimizations Operations on constants can be computed at compile time 20 Eliminate unreachable basic blocks: If there is a statement x := y op And z y and z are constants Then y op z can be computed at compile time E.g., basic blocks that are not the target of any jump or fall through from a conditional Why would such basic blocks occur? Example: x := 2 + 2 x := 4 Example: if 2 < 0 jump L can be deleted When might constant folding be dangerous? Prof. Aiken CS 143 Lecture 14 Code that is unreachable from the initial block Removing unreachable code makes the program smaller And sometimes also faster Due to memory cache effects (increased spatial locality) 21 Prof. Aiken CS 143 Lecture 14 Single Assignment Form Common Subexpression Elimination Some optimizations are simplified if each register occurs only once on the left-hand side of an assignment 22 If Rewrite intermediate code in single assignment form x := z + y b := z + y a := x a := b x := 2 * x x := 2 * b (b is a fresh register) More complicated in general, due to loops Prof. Aiken CS 143 Lecture 14 Basic block is in single assignment form A definition x := is the first use of x in a block Then When two assignments have the same rhs, they compute the same value Example: x := y + z x := y + z w := y + z w := x (the values of x, y, and z do not change in the code) 23 Prof. Aiken CS 143 Lecture 14 24 4 Copy Propagation Copy Propagation and Constant Folding If w := x appears in a block, replace subsequent uses of w with uses of x Example: Assumes single assignment form Example: b := z + y a := b x := 2 * a b := z + y a := b x := 2 * b a := 5 x := 2 * a y := x + 6 t := x * y a := 5 x := 10 y := 16 t := x << 4 Only useful for enabling other optimizations Constant folding Dead code elimination Prof. Aiken CS 143 Lecture 14 25 Prof. Aiken CS 143 Lecture 14 26 Copy Propagation and Dead Code Elimination Applying Local Optimizations If Each local optimization does little by itself w := rhs appears in a basic block w does not appear anywhere else in the program Typically optimizations interact Then the statement w := rhs is dead and can be eliminated Dead = does not contribute to the programs result Example: (a is not used anywhere else) x := z + y a := x x := 2 * a b := z + y a := b x := 2 * b Prof. Aiken CS 143 Lecture 14 b := z + y x := 2 * b Performing one optimization enables another Optimizing compilers repeat optimizations until no improvement is possible The optimizer can also be stopped at any point to limit compilation time 27 Prof. Aiken CS 143 Lecture 14 An Example An Example Initial code: 28 Algebraic optimization: a := x ** 2 b := 3 c := x d := c * c e := b * 2 f := a + d g := e * f Prof. Aiken CS 143 Lecture 14 a := x ** 2 b := 3 c := x d := c * c e := b * 2 f := a + d g := e * f 29 Prof. Aiken CS 143 Lecture 14 30 5 An Example An Example Algebraic optimization: Copy propagation: a := x * x b := 3 c := x d := c * c e := b << 1 f := a + d g := e * f Prof. Aiken CS 143 Lecture 14 a := x * x b := 3 c := x d := c * c e := b << 1 f := a + d g := e * f 31 Prof. Aiken CS 143 Lecture 14 An Example An Example Copy propagation: 32 Constant folding: a := x * x b := 3 c := x d := x * x e := 3 << 1 f := a + d g := e * f Prof. Aiken CS 143 Lecture 14 a := x * x b := 3 c := x d := x * x e := 3 << 1 f := a + d g := e * f 33 Prof. Aiken CS 143 Lecture 14 An Example An Example Constant folding: 34 Common subexpression elimination: a := x * x b := 3 c := x d := x * x e := 6 f := a + d g := e * f Prof. Aiken CS 143 Lecture 14 a := x * x b := 3 c := x d := x * x e := 6 f := a + d g := e * f 35 Prof. Aiken CS 143 Lecture 14 36 6 An Example An Example Common subexpression elimination: Copy propagation: a := x * x b := 3 c := x d := a e := 6 f := a + d g := e * f Prof. Aiken CS 143 Lecture 14 a := x * x b := 3 c := x d := a e := 6 f := a + d g := e * f 37 Prof. Aiken CS 143 Lecture 14 An Example An Example Copy propagation: 38 Dead code elimination: a := x * x b := 3 c := x d := a e := 6 f := a + a g := 6 * f Prof. Aiken CS 143 Lecture 14 a := x * x b := 3 c := x d := a e := 6 f := a + a g := 6 * f 39 Prof. Aiken CS 143 Lecture 14 An Example Peephole Optimizations on Assembly Code Dead code elimination: 40 These optimizations work on intermediate code a := x * x Target independent But they can be applied on assembly language also Peephole optimization is effective for improving assembly code f := a + a g := 6 * f The peephole is a short sequence of (usually contiguous) instructions The optimizer replaces the sequence with another equivalent one (but faster) This is the final form Prof. Aiken CS 143 Lecture 14 41 Prof. Aiken CS 143 Lecture 14 42 7 Peephole Optimizations (Cont.) Peephole Optimizations (Cont.) Write peephole optimizations as replacement rules Many (but not all) of the basic block optimizations can be cast as peephole optimizations i1, , in j1, , jm where the rhs is the improved version of the lhs Example: addiu $a $b 0 move $a $b Example: move $a $a These two together eliminate addiu $a $a 0 Example: move $a $b, move $b $a move $a $b Works if move $b $a is not the target of a jump Another example As for local optimizations, peephole optimizations must be applied repeatedly for maximum effect addiu $a $a i, addiu $a $a j addiu $a $a i+j Prof. Aiken CS 143 Lecture 14 43 Prof. Aiken CS 143 Lecture 14 44 Local Optimizations: Notes Intermediate code is helpful for many optimizations Many simple optimizations can still be applied on assembly language Program optimization is grossly misnamed Code produced by optimizers is not optimal in any reasonable sense Program improvement is a more appropriate term Next time: global optimizations Prof. Aiken CS 143 Lecture 14 45 8
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:

Stanford - CS - CS143
Lecture Outline Global flow analysisGlobal Optimization Global constant propagation Liveness analysisLecture 15Prof. Aiken CS 143 Lecture 15Prof. Aiken CS 143 Lecture 151Local OptimizationGlobal OptimizationRecall the simple basic-block optimiz
Stanford - CS - CS143
Lecture Outline Java: COOL on steroids HistoryJavaLecture 18Prof. Aiken CS 143 Lecture 18ArraysExceptionsInterfacesCoercionsThreadsDynamic Loading &amp; InitializationSummaryProf. Aiken CS 143 Lecture 181Java HistoryThe People Began as Oak at
Stanford - CS - CS143
0.9:70 :930W 043/.425078443,9490788:0835747,223,3:,0/083,3/9448,3:,0$0.:79W77,85493-:11074;077:38090.93-:11074;077:380.9:70$0.9:70$0.9:70!,99:/08083!73.508W ,3:,0/083,831:03.043W $2,3:,0W ,2:2011.03.W $,10908825479,39$,10911.03.$0.:79
Highland CC - ECON - 101
Purdue - MGMT - 200
MGMT 20000INTRODUCTORYFINANCIAL ACCOUNTINGTony GreigKrannert 528greig@purdue.eduTA HoursTeaching assistants office hours (KRAN 513):Monday10am - 1pmMelvin Lamboy-RuizTuesday2pm 5pmDavid ZhangThursday8:30 11:30amKoEun ParkFriday10am 1pmA
Purdue - MGMT - 200
MGMT 200INTRODUCTORY FINANCIAL ACCOUNTINGChapter 1: Accounting as Communication Users of accounting information The four basic financial statements The Balance Sheet and the accountingequation The Income Statement The Statement of Retained Earning
Purdue - MGMT - 200
MGMT 200INTRODUCTORY FINANCIAL ACCOUNTINGChapter 2: Financial Statements Objectives of financial reporting Qualitative characteristics of useful information The financial statements reexamined Ratio analysisThe Conceptual Framework (FASB) Objectiv
Purdue - MGMT - 200
Income MeasurementandAccrual AccountingChapter 4The Accounting Cycle During period Analyze transactions Record journal entries Post amounts to the general ledger At end of period Adjust revenues and expenses for unrecordeditems Prepare financi
Purdue - MGMT - 200
InventoriesandCost of Goods SoldChapter 5Income Statement FormatABC IncIncome Statement for 2008Net SalesCost of goods soldGross marginOperating expensesOperating incomeNon-operating itemsIncome before taxIncome tax expenseNet incomeEarnin
Purdue - MGMT - 200
CashandInternal ControlChapter 6Cash and Cash EquivalentsDefinition of cashCash ManagementInternal control of cashBank ReconciliationTiming differences that affect bank balanceNew information that affects our accounts(needs a journal entry to r
Purdue - MGMT - 200
Accounts ReceivableChapter 7Accounts Receivable Money owed to us by customers Trade, non trade receivable Accounts, Notes receivable Related party receivablesJournal entry:Accounts receivableSales revenue$500$500Subsidiary Ledger Control Acco
Purdue - MGMT - 200
Property, Plant, and EquipmentChapter 8Long-term operating assets Property, Plant, and Equipment(Tangible assets) Natural resources (e.g. mineralresources) Intangible assets: Patents, copyrights,etc Specialized assets (e.g. Films)Long-term opera
Purdue - MGMT - 200
Current Liabilities,Contingencies,andthe Time Value of MoneyChapter 9LIABILITIESDefine: Probable debts or obligations thatresult from past transactions, which willbe paid with assets or services.Classification: Current liabilities, noncurrent lia
Purdue - MGMT - 200
Long-Term LiabilitiesChapter 10Long-term liabilitiesBonds payableNotes payableLeasesPensionsDeferred taxesOtherBonds Payable CharacteristicsControlInterest is tax deductibleLeverage effectDefault riskBond Indenture (Terms: Callable,convert
Purdue - MGMT - 200
Stockholders EquityChapter 11Stockholders Equity Corporate form of organization Benefits of CorporationsAccess to large amounts of capitalLimited liabilityLiquidityRisk sharing Sources of stockholders equity Contributed capital Retained earning
Purdue - MGMT - 200
Statement of Cash FlowsChapter 12Statement of Cash Flows Purpose:To explain the change in cash during a period oftime Categories of Cash Flow: Operating activities Investing activities Financing activities Format: The direct method The indirec
Purdue - MGMT - 200
Financial Statement AnalysisChapter 13Financial Statement Analysis Purpose Firms strategic decisions as reflected in thefinancial statements Industry variations Alternative accounting methods Benchmarks Common size financial statementsBenchmarks
Indian Institute Of Management, Ahmedabad - ECON - 202
79EPS AS A MEASURE OF INTERCOMPANYPERFORMANCE: PHILIPPINE EVIDENCECynthia P. Cudia, De La Salle UniversityGina T. Manaligod, De La Salle UniversityABSTRACTThe objective of financial reporting is to provide information that is useful to a wide range
Indian Institute Of Management, Ahmedabad - ECON - 202
The McKinsey Quarterly: The Online Journal of McKinsey &amp; Co.Page 1 of 9What businesses need to know about the US current-accountdeficitThe US import balancing act could continue for some time, but the correction, when it comes, will havesurprising co
Indian Institute Of Management, Ahmedabad - ECON - 202
trading foreign exchange: a changing market in a changing worldALL ABOUT.CHAPTER1In a universe with a single currency, there would be no foreign exchange market, noforeign exchange rates, no foreign exchange. But in our world of mainly nationalcurre
Indian Institute Of Management, Ahmedabad - ECON - 202
some basic concepts: foreign exchange,the foreign exchange rate, payment and settlement systemsALL ABOUT.CHAPTER21. WHY WE NEED FOREIGN EXCHANGEAlmost every nation has its own nationalcurrency or monetary unitits dollar, its peso,its rupeeused for
Indian Institute Of Management, Ahmedabad - ECON - 202
structure of the foreign exchange marketALL ABOUT.CHAPTER31. IT IS THE WORLDS LARGEST MARKETThe foreign exchange market is by far the largestand most liquid market in the world. Theestimated worldwide turnover of reportingdealers, at around $1 tri
Indian Institute Of Management, Ahmedabad - ECON - 202
CIRCUIT CITY STORES, INC.ANNUAL REPORT 2007 | PROXY STATEMENT | FORM 10-KConsumers today are living a digital life. The variety and complexity ofconsumer electronics enable us to create a theater experience or a fullservice office environment right in
Indian Institute Of Management, Ahmedabad - ECON - 202
A Study of the Efficacy of Altmans Z ToPredict Bankruptcy of Specialty RetailFirms Doing Business in ContemporaryTimesSuzanne K. HayesUniversity of Nebraska at KearneyKay A. HodgeUniversity of Nebraska at KearneyLarry W. HughesCentral Washington
Indian Institute Of Management, Ahmedabad - ECON - 202
C I R C UI T C I T Y S T O R E S I N CF O RM Report)Q10(QuarterlyFiled 09/30/08 for the Period Ending 08/31/08AddressTelephoneCIKSymbolSIC CodeIndustrySectorFiscal Year9950 MAYLAND DRRICHMOND, VA 2323380448640000000104599CC5731 - Radio, T
Indian Institute Of Management, Ahmedabad - ECON - 202
Circuit CityAn LBO CandidateTurnaround ManagementDecember 9, 2008Advisor: Professor Laura ResnikoffAaron BakerLauren CassidyJosh GoodmanJosh SiegelErik UlinTURNAROUND MANAGEMENTFINAL PAPERCIRCUIT CITY STORESTABLE OF CONTENTSExecutive Summary
Indian Institute Of Management, Ahmedabad - ECON - 202
AN IN-DEPTH ANALYSIS OF BEST BUYRachel Raimo, Siena CollegeDelali Fiadjoe, Siena CollegeJason Belyea, Siena CollegeNicolas Duplat, Siena CollegeCamille Jacquemin, Siena CollegePierre-Alain Duftre, Siena CollegeKaitlyn Kroslowitz, Siena CollegeJona
Indian Institute Of Management, Ahmedabad - ECON - 202
CHAPTER 1 GLOBALIZATION AND THE MULTINATIONAL FIRMSUGGESTED ANSWERS TO END-OF-CHAPTER QUESTIONSQUESTIONS1. Why is it important to study international financial management?Answer: We are now living in a world where all the major economic functions, i.e
Indian Institute Of Management, Ahmedabad - ECON - 202
CHAPTER 2 INTERNATIONAL MONETARY SYSTEMSUGGESTED ANSWERS AND SOLUTIONS TO END-OF-CHAPTERQUESTIONS AND PROBLEMSQUESTIONS1. Explain Greshams Law.Answer: Greshams law refers to the phenomenon that bad (abundant) money drives good (scarce)money out of c
Indian Institute Of Management, Ahmedabad - ECON - 202
CHAPTER 3 BALANCE OF PAYMENTSSUGGESTED ANSWERS AND SOLUTIONS TO END-OF-CHAPTERQUESTIONS AND PROBLEMSQUESTIONS1. Define the balance of payments.Answer:The balance of payments (BOP) can be defined as the statistical record of a countrysinternational
Miami University - ECONOMICS - 200
Chapter1:MarketingTodayJoel R. Evans &amp; Barry BermanMarketing, 10e: Marketing in the 21st CenturyCopyright Atomic Dog Publishing, 2007ChapterObjectives Toillustratetheexciting,dynamic,andinfluentialnatureofmarketing Todefinemarketingandtraceitsevol
UBC - MATH - 257
Math 257/316, Midterm 1, Section 10111 October 2006Instructions. The duration of the exam is 55 minutes. Answer all questions. Calculators are not allowed.Maximum score 100.1. Apply the method of separation of variables to determine a solution to the
UBC - MATH - 257
Math 257/316, Midterm 1, Section 10117 October 2007Instructions. The duration of the exam is 55 minutes. Answer all questions. Calculators are not allowed.Maximum score 100.1. Let f (x) = sin(x) on the interval 0 &lt; x &lt; .(a) Sketch the even periodic e
UBC - MATH - 257
Math 257/316, Midterm 1, Section 10120 October 2008Instructions. The duration of the exam is 55 minutes. Answer all questions. Calculators are not allowed.Maximum score 100.1. Let f (x) = 1 + 2x on the interval 0 &lt; x &lt; 3.(a) Sketch the even and odd p
UBC - MATH - 257
Math 257/316, Midterm 1, Sections 101/10219 October 2009Instructions. The duration of the exam is 55 minutes. Answer all questions. Calculators are not allowed.Maximum score 80.1. Consider the second order dierential equation:Ly = 6x2 y 00 + xy 0 + (
UBC - MATH - 257
Math 257/316, Midterm 1, Section 10311 October 2006Instructions. The duration of the exam is 55 minutes. Answer all questions. Calculators are not allowed.Maximum score 100.1. Apply the method of separation of variables to determine a solution to the
UBC - MATH - 257
Math 257/316, Midterm 1, Section 10319 October 2009Instructions. The duration of the exam is 55 minutes. Answer all questions. Calculators are not allowed.Maximum score 80.1. Consider the second order dierential equation:Ly = 9x2 y 00 + 9xy 0 (1 + x)
UBC - MATH - 257
Math 257/316, Midterm 1, Section 10417 October 2007Instructions. The duration of the exam is 55 minutes. Answer all questions. Calculators are not allowed.Maximum score 100.1. Let f (x) = x on the interval 0 &lt; x &lt; .(a) Sketch the even periodic extens
UBC - MATH - 257
Math 257/316, Midterm 1, Section 10420 October 2008Instructions. The duration of the exam is 55 minutes. Answer all questions. Calculators are not allowed.Maximum score 100.1. Let f (x) = x on the interval 0 &lt; x &lt; .(a) Sketch the even and odd periodi
UBC - MATH - 257
UBC - MATH - 257
Math 257/316, Midterm 1, Section 101/1028 October 2010Instructions. The exam lasts 55 minutes. Calculators are not allowed. A formula sheet is attached.1. Consider the ODE2x2 y + (x + )y (x + 1)y = 0,in which is a constant.(a) Classify the point x =
UBC - MATH - 257
Math 257/316, Midterm 2, Section 101/102November 20, 2009Instructions. The duration of the exam is 55 minutes. Answer all questions. Calculators are not allowed.Maximum score 100.1. Solve the following inhomogeneous initial boundary value problem for
UBC - MATH - 257
Math 257/316, Midterm 2, Section 10117 November 2006Instructions. The duration of the exam is 55 minutes. Answer all questions. Calculators are not allowed.Maximum score 100.1. Let f (x) = cos(2x)(a) Determine the sine series expansion for f (x) on t
UBC - MATH - 257
Math 257/316, Midterm 2, Section 10116 November 2007Instructions. The duration of the exam is 55 minutes. Answer all questions. Calculators are not allowed.Maximum score 100.1. Solve the following inhomogeneous initial boundary value problem for the h
UBC - MATH - 257
Math 257/316, Midterm 2, Section 10117 November 2008Instructions. The duration of the exam is 55 minutes. Answer all questions. Calculators are not allowed.Maximum score 100.1. Solve the following inhomogeneous initial boundary value problem for the h
UBC - MATH - 257
Math 257/316, Midterm 2, Section 10317 November 2006Instructions. The duration of the exam is 55 minutes. Answer all questions. Calculators are not allowed.Maximum score 100.1. Let f (x) be a function that has a period of 2 having the values:0 when x
UBC - MATH - 257
Math 257/316, Midterm 2, Section 103November 20, 2009Instructions. The duration of the exam is 55 minutes. Answer all questions. Calculators are not allowed.Maximum score 100.1. Solve the following inhomogeneous initial boundary value problem:utux (
UBC - MATH - 257
Math 257/316, Midterm 2, Section 10416 November 2007Instructions. The duration of the exam is 55 minutes. Answer all questions. Calculators are not allowed.Maximum score 100.1. Solve the following inhomogeneous initial boundary value problem for the h