StudentShare
Contact Us
Sign In / Sign Up for FREE
Search
Go to advanced search...
Free

Numerical Integration and Differentiation - Assignment Example

Cite this document
Summary
This assignment "Numerical Integration and Differentiation" focuses on the notion of road construction which involves leveling of the land. This cannot be achieved without the removal of earth material as opposed to building a road along the slope of the hill…
Download full paper File format: .doc, available for editing
GRAB THE BEST PAPER97% of users find it useful
Numerical Integration and Differentiation
Read Text Preview

Extract of sample "Numerical Integration and Differentiation"

A road needs to be built through hilly terrain at a sloping angle of not more than 10 degrees with minimal material wastage. The various measurements (height of hill and distance across have been provided.

 

Method

In order to determine the volume of material to be removed the area of land above the road must be obtained. By assuming the longitudinal section is a curve it becomes easier to obtain it because it helps map it into a graph. The following specifies the steps

  1. Height and distance readings were taken and plotted using the Matlab plot function
  2. In order to obtain a slope for the road, it was assumed the road would be a line of best fit. In this case, it would neither be high-sloping nor low sloping.
  3. The equation for the line of best fit was obtained. This can be easily obtained in Matlab using the polyfit () function.
  4. Using the road as a second line, its points of intersection with the road were obtained. The area of the hill above the road was the one to be removed.

diff(sign(s-y)) was used to find the points of intersection. Any non-zero result indicated the point of crossing.

find(d>0)  and find(d<0) were used to obtain the non-zero points and the result was used to obtain the exact x-axis points of intersection. This was confirmed by comparing the result with that of the plot.

  1. The area of the land above the planned road was obtained using the integration method (trapezoid method) to find the total area under the curve and subtract the total area of the area of land under the planned road. This was achieved through the MatLab trap ()

            Area of land to be removed=area of land under curve-area of land below the road

  1. The areas of the different sections were summed up and multiplied by the width of the road to get the total volume

Fig3  From the function p=polyfit(x,y,1) the equation for the line of best fit was obtained which is

0.0049*x + 534.8242

On using the d =diff(sign(y-s)) function where s was the equation for the best fit and y was for the terrain curve the non-zero points were obtained.-2 and 2 were the non-zero points which corresponded to respective x points. those x points are shown below

It was noted that those points corresponded with the x points where the two curves intersected. These points were displayed in pairs(the first one showing the x point for the start of the region and the second one showing the endpoint for the region)e.g

V=1900  4400   showed that

  fig4  sample region with x-co-ordinates of the first region.

Next, the program requests the user to enter the number of regions in the graph. In our case, they were 7. This was made in order to allow the user more control over the area calculation and reduce errors.

Sample

 >>how many hills?7

The program then prompts the user for the first and second x-coordinate

>>Enter fp 

     Enter sp

Using the first region as an example where 1900 and 4400 were the values

>>Enter fp  1900

   Enter sp 4400

The program calculates the area of the region under the curve subtracts the region under the best fit then sums it up. It then asks for the second point. Calculates the area then adds it to the total. At the end of the last region, it multiplies the area by 10(road width and gives the total volume.

Read More
Cite this document
  • APA
  • MLA
  • CHICAGO
(“Matlab Assignment Example | Topics and Well Written Essays - 1250 words - 1”, n.d.)
Matlab Assignment Example | Topics and Well Written Essays - 1250 words - 1. Retrieved from https://studentshare.org/engineering-and-construction/1644842-matlab
(Matlab Assignment Example | Topics and Well Written Essays - 1250 Words - 1)
Matlab Assignment Example | Topics and Well Written Essays - 1250 Words - 1. https://studentshare.org/engineering-and-construction/1644842-matlab.
“Matlab Assignment Example | Topics and Well Written Essays - 1250 Words - 1”, n.d. https://studentshare.org/engineering-and-construction/1644842-matlab.
  • Cited: 0 times

CHECK THESE SAMPLES OF Numerical Integration and Differentiation

Comparing Eulers Method with Numerical Methods

This equation satisfies numerical integration that means computation from initial point y0 (the initial condition) to the other successive conditions y1, y2, y3 … since differential equations cannot be solved analytically, they take an algorithm that computes the function or equation as precise as possible, that is, yn+1 from yn.... Nonetheless, differentiation of equation expressing these systems and shapes was noted to be quite complex.... Comparing Euler's Method with numerical Methods Name Institution Comparing Euler's Method with numerical Methods Introduction Differential equations are equations that are used to describe systems that are undergoing change simultaneously....
10 Pages (2500 words) Thesis

Calculus: Numerical analysis

Both terms ‘differential' and ‘integral' constitute the vocabulary of calculus whose principle is widely understood in the applicability and purpose of differentiation and integration relevant for the life of everyday.... Limits apparently are a basic tool in setting up the framework of differentiation.... Since functions come in different types and complexities, calculus thereby exhibits a variety of ways by which integration may be carried out yet where no method seems adequate in evaluating a definite integral, numerical means of approximations are employed as a more flexible alternative....
13 Pages (3250 words) Essay

The Calculus and Levels of Math Education

Limits are a basic tool in setting up the framework of differentiation.... Since functions come in different types and complexities, Calculus thereby promotes a variety of ways or techniques by which integration may be carried out yet where no method seems adequate in evaluating a definite integral, numerical means of approximations are employed as a more flexible alternative....
2 Pages (500 words) Essay

Numerical Analysis

These types of problems (especially systems of differential equations) are solved numerically using several similar algorithms which are based on the principles of numerical integration.... This paper ''numerical Analysis'' tells us that the solution of differential equations often cannot be limited to simple trivial methods.... The definition of the task 'solve the differential equation' means 'integrate differential equation' so all differential equation numerical solving techniques....
1 Pages (250 words) Math Problem

Pre Calculus Questions

Using numerical data, differentiation proved to be the most difficult concept to use and in some case, I realized when doing trial questions that it was difficult to use differentiation.... I realized that differentiation was only nice when using explicit formulae to solve functions.... However, I later discovered that integration is the easier of the two concepts through practice.... integration seemed impossible explicitly but it was comfortable numerically....
1 Pages (250 words) Assignment

Firewires Value Chain Analysis and Competitive Forces Model

Furthermore, it uses a ShapeLogic NX software that allows its customers to feed the CAD, experiments with the designs, and integrate it with the computer numerical control (CNC) process.... The paper "Firewire's Value Chain Analysis and Competitive Forces Model" tells Colgate provided managers with access to deeper warehouse data in a user-friendly manner....
5 Pages (1250 words) Essay

Two-Dimensional Semantics: Clausal Adjuncts and Complements

In lieu of this, languages are lexically divided into two; identity and differentiation.... The author of the paper "Two-Dimensional Semantics: Clausal Adjuncts and Complements" tells that French is among the 389 world languages under the differentiation category; the 'hand' and 'arm' are denoted by two different words.... Based on this, a language is either placed under the identity or differentiation category.... In the differentiation category, one word connotes the 'hand' while another different word denotes the 'finger(s)'....
6 Pages (1500 words) Essay

Design of System

This work called "Design of System" focuses on differentiation of the equation to obtain an equation that can be solved using Matlab.... The author outlines the role of frequency response, Matlab plot off different road conditions, the use of partial differentiation to estimate the values of the parameters....
5 Pages (1250 words) Lab Report
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.
Contact Us