8 views

Uploaded by JonahJunior

- upsc
- Broucher
- cs
- Advanced Mathematics &Mechanics Applications Using MATLAB
- Seismic Analysis
- Langtangen PEM1991 Fokker Planck2
- 215771527
- Part 01
- Gate Syllabi
- imls ritz.pdf
- matlab
- 145_05
- fm60_fcaa_gololu_4
- 1 Introduction
- A Representation of the Exact Solution of Generalized Lane-Emden Equations Using a New Analytical Method
- NM Practical File
- Automation_and_robitics_2011_Uploaded_on_14_05_13.pdf
- MA 8452 SNM HOSTEL COACHING SHEET.docx
- Fast Transient Stability Solutions
- calculus With Matlab

You are on page 1of 13

Many problems in Mathematics, Physics, Economics, etc can only be solved in very idealized situations in an exact analytical fashion. Even solvable problems can often only be tackled with great effort. Numerical methods often lead to solutions which are extremely close to the correct answers. They lead very often quickly to some insights. Especially with the advance in computer technology, in terms of speed and storage capacity the limits of what can be computed are permanently pushed. Here we only have a glimpse at some methods to get an idea what could be possible and to apply the programming structures we have learned so far.

Numerical Integration

Recall:

- Take the subdivision of the domain [a,b] to be evenly spaced: Trapezoid rule for integration:

= f(

Let us write a module (program) for this:

b upper integration limit n number of subdivisions some function f(x) which we want to integrate

= f(a) = f(b)

-Output: approximate value for the integral (gets better the larger n becomes)

Sub Nint() a=0 b=5 n = 100 h = (b - a) / n I = h * (f(a) + f(b)) / 2 For m = 2 To n I = I + f(a + h * (m - 1)) * h Next Range("B3").Value = I End Sub

Put the result onto the Excel sheet into the cell B3

Function f(x) f=x^4 End Function

Example 2: - Generate the by 4 Arctan(1). In VBA this is written as 4 *Atn(1). - The program yields:

- So far we could have solved the integrals also analytically, but not the next integral.

Example 3:

- How do we deal with the lower bound a=0? This is well defined analytically, but the computer can not handle 0/0, if we dont specify how to do that. Recipe: Just take the lower bound a to be a very small number, e.g.a=0.0000001. - The program yields:

Example 4:

- How do we deal with infinity? Introduce a cut-off at some value large enough such that the mistake is small. This is possible because the integrant falls off sharply after certain values:

- Runge-Kutta methods, Monte Carlo integration, Here we do not derive these rules, but just take them as facts. See a different course on numerical methods for details. - Implement the Simpsons 1/3 rule in Labsession 3.

Function Nintff(a, b, n) h = (b - a) / n I=0 For m = 1 To n - 2 Step 3 I = I + (f(a+h*(m-1)) +3* f(a+h* m) +3* f(a+h*(m+1))+f(a+h*(m+2))) Next Nintff = I * h * 3 / 8 End Function Example 1:

A problem here is to find a good cut-off for the upper limit. b=10 ?

i) open a worksheet

In this example we introduce an additional error though the cut-off. When the subdivision of the interval is large enough the three methods are almost equally good.

10

Limitations:

- The speed of the computer. - The accuracy of the numerical method used. (In principle there exist procedures to estimate the errors made.) - The accuracy of the computer, i.e. in computing functions used in the program and variables employed such as single or double precision. - Various other approximations such as division by zero, cut-offs for lower and upper bounds etc. There exist different types of numerical methods for other mathematical problems, such as solving polynomial equations, solving differential equations etc. Some methods are implemented in Excel as Built-in functions:

11

Goal Seek Goal seek is a numerical routine implemented in Excel as a built-in function. It can be used to solve equations. Usage: select Data What if analysis goal seek - Set cell contains the left hand side of an equation you want to solve

- To value contains the RHS of the equation - By changing cell contains the variable of the equation

Disadvantage: You have to guess a value near the answer.

- Type into the cell C4: =2*B4^2-9*B4-5

12

- open the Goal Seek dialog box and fill in

- OK

- The cell B3 and C3 have changed to -0.5 and 1.912E-07 - Repeat this process for the cells C4 and B3 to find the other solution. (You need a new guess for the starting value.) A more sophisticated method is the Excel Solver.

13

- upscUploaded byabhinav_samaiya9497
- BroucherUploaded byqansertam
- csUploaded bysriram5gokul9506
- Advanced Mathematics &Mechanics Applications Using MATLABUploaded byHéctor Paprika
- Seismic AnalysisUploaded byhasan2010j
- Langtangen PEM1991 Fokker Planck2Uploaded bynormancboy
- 215771527Uploaded byYerik Lalo
- Part 01Uploaded byrodi10
- Gate SyllabiUploaded byJanardhan Reddy
- imls ritz.pdfUploaded bymraciaydin
- matlabUploaded byArunaBuddhikaKumbukage
- 145_05Uploaded bybibbiblos
- fm60_fcaa_gololu_4Uploaded byFabian Velazquez
- 1 IntroductionUploaded byGio Ascan
- A Representation of the Exact Solution of Generalized Lane-Emden Equations Using a New Analytical MethodUploaded byDr-Ahmad El Ajou
- NM Practical FileUploaded byjangra014
- Automation_and_robitics_2011_Uploaded_on_14_05_13.pdfUploaded bygobinath
- MA 8452 SNM HOSTEL COACHING SHEET.docxUploaded byV. Kamalakannan kannan
- Fast Transient Stability SolutionsUploaded byyourou1000
- calculus With MatlabUploaded byOnee Yetoo Aseeme
- DifferentialUploaded byAlexander Narváez
- numerical methodUploaded byPrem Kumar
- Modeling Contaminant Transport With Aerobic Biodegradation in a Shallow Water BodyUploaded byZaid Hadi
- UT Dallas Syllabus for cs4334.501.09f taught by Janos Turi (turi)Uploaded byUT Dallas Provost's Technology Group
- BSQUploaded bydinchii
- Syllabus for Electrical Engineering (EE) _ GATE 2013Uploaded byShahnawaz Ahmad
- Chapter6(MBI)ElUploaded byjokowi123
- James Singer-Elements of Numerical Analysis-Academic Press .pdfUploaded byfredycampos
- UT Dallas Syllabus for math6313.501.08f taught by Janos Turi (turi)Uploaded byUT Dallas Provost's Technology Group
- Maths Mech SyllabusUploaded byenticer

- Hypothesis Test Summary011109Uploaded byJonahJunior
- Personalized Astrology LessonsUploaded byKiana Tehrani
- Problem Set 1stats 2Uploaded byJonahJunior
- FacultyUploaded byJonahJunior
- 1 6858 06 Synthetic Division a m PrincipleUploaded byJonahJunior
- Crisis Zimbabwe Briefing Issue 43 110915Uploaded byJonahJunior
- LaunchyUploaded bysatishvis
- PCN_FC201-2x_W05_SummaryUploaded byJonahJunior
- VARUploaded byJonahJunior
- bbUploaded bynaga
- Functions 3Uploaded byJonahJunior
- Solutions EconmetricsUploaded byJonahJunior
- Sta 2030 NotesUploaded byJonahJunior
- Problem Set 8Uploaded byJonahJunior
- 1_6857_05_inspectionUploaded byJonahJunior
- EdrhodgUploaded byJonahJunior
- anaiodine9Uploaded byJonahJunior
- CV TemplateUploaded byalex_dukalskis
- The Photographic Big-5Uploaded byMario Fazekas
- The Three-Month Mass-Gain Plan _ Muscle & Performance Magazine.pdfUploaded byJonahJunior
- VoJ eyechartUploaded byhehena
- Maths Assesment TipsUploaded byJonahJunior
- Mazda 2 Spec SheetUploaded byJonahJunior
- El Mariachi ChordsUploaded byJonahJunior
- S_FMA_2Uploaded byGoran Petrić Čakija
- Resignation From the Position of Executive AssistantUploaded byJonahJunior
- Spyro Gyra Morning Dance Guitar ChordsUploaded byJonahJunior
- Basic Curriculum Vitae ExampleUploaded byLibraan Sajid
- Three Ways to MasterUploaded byJonahJunior
- Academic DishonestyUploaded bysandra

- Humanities (1)Uploaded bysloft_creith
- Lebin v MirasolUploaded byEunice Saavedra
- 1-s2.0-S0020740314002252-main.pdfUploaded byrahulpandit100593
- School PlanningUploaded byAjay Laloo
- Learn Astrology & Numerology- 1 ChapterUploaded byAstrovidhi
- SG 4 wheel combo lockUploaded byBrent Richardson
- 11-01-2016-lab reportUploaded byapi-328605767
- SASO-IEC-62722-2-1-2015-EUploaded byFjgu Fkt
- Flash Cards - GMAT GK - 2009-10-01Uploaded byGovardhanR
- incident_process.docxUploaded byRajesh Kumar
- Map Scales Fs01502Uploaded byVictorJah Lion Contreras
- Alexander Andre - Lhasa JokhangUploaded byCarlos Caicedo-Russi
- Correlated Electrical Conductivity and Mechanical Property Analysis of High-Density Polyethylene Filled With Graphite and Carbon FiberUploaded byAlfredo Olarte Paredes
- Statically-Indeterminate-Beams-.pdfUploaded bygongmaozhe
- Action on Smoking and Health 2004Uploaded bykioll
- Sale and Agreement to SellUploaded byTejas Desai
- Ahjumma OrtoUploaded byIche Juwice
- Liberty Newspost Nov-02-10Uploaded byLiberty Newspost Corp.
- Pet - b1. Exam Unit 5Uploaded byMaria Jose Rosa Yera
- Romania_2020Uploaded byAnghel Radu
- Unto Us A CHild Is BornUploaded byRoman New
- The Sundance of the Blackfoot Indians - Wissler 1918Uploaded bySean Conley
- Factors Affecting Plant GrowthUploaded byBreckenwood
- Complete Oracle P2P Cycle _Simplifying Oracle E Business SuiteUploaded bymandeep_kumar7721
- 11 - pain management.pdfUploaded bySherlocknov
- Chap 4- Basic Principles of ElectricityUploaded byAdiseshuMidde
- GMAT Diagnostic Test GMAT Club v2.8Uploaded bygmatclub2
- ReviewUploaded byHinda Ziani
- Database DevelopmentUploaded bywafasa
- Definition of Task - NunanUploaded byLingRenee