Preview

Problems1

Good Essays
Open Document
Open Document
605 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Problems1
Math 307: Problems for section 1.2

Many problems in this homework make use of a few MATLAB/Octave .m files that are provided on the website. In order to use them, make sure that the files are in the same directory that you are running
MATLAB/Octave from (to see which directory this is, type pwd in MATLAB/Octave).
1. Compute the determinant of a 4 × 4 Vandermonde matrix. Bonus: show that the general formula for the determinant of a Vandermonde matrix is correct.
2. Let Vn be the Vandermonde matrix for n equally spaced points between 0 and 1. Do you think the condition number of Vn is increasing exponentially in n? To make an informed guess, use MATLAB/Octave to make a plot of log(cond(Vn )) against n. You will need to use relatively small values of n (say n < 20 or so) to get a reasonable looking plot. What do you think is happening when you use larger values of n?
3. Use MATLAB/Octave to plot the Lagrange interpolating function through the points
(1, 2.3), (2, 5), (2.4, 9), (2.5, 5), (3, 0) and (5, −1). Plot the cubic spline interpolating function on the same figure (and through the same points). You may use the Matlab file plotspline.m. 4. Derive the matrix equation to solve in order to find the cubic spline passing through the three points (0, 1), (0.5, 2) and (1, 4). Plot the resulting spline (you may use the file plotspline.m). 5. What happens to the condition number of the matrix S used in cubic spline interpolation as the size n becomes large (you may use the file splinemat.m)?
6. A parabolic runout spline is the interpolating function you get by changing the condition f ′′ (x1 ) = f ′′ (xn ) = 0 to the condition that p1 (x) and pn−1 (x) should be quadratic polynomials
(that is, a1 = an−1 = 0). Modify the file splinemat.m so that it computes the matrix relevant to this modified problem. Call the modified file splinematpr.m. (Hand in a a print-out of the modified file and an explanation of your changes.) Use your new file to graph the parabolic runout spline

You May Also Find These Documents Helpful

  • Good Essays

    Nt1330 Unit 5 Study Guide

    • 398 Words
    • 2 Pages

    [After plotting the scatterplot, position cursor on one data point and right click. Choose Add Trendline, then select linear. Experiment with Chart Layouts to find regression equation. ]…

    • 398 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    ECT114 week 3 lab

    • 299 Words
    • 2 Pages

    c. Sketch the output of Figure 1 based on the input waveforms shown below. Copy Figure 2 into MS-PAINT and use line draw to sketch your output then replace Figure 2 with your waveforms. (2 points)…

    • 299 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Mat 540 Final

    • 783 Words
    • 4 Pages

    example, in [a] you just enter x(x + 1)dy = 1 {1, 1/2}. [curly brackets for the initial conditions,…

    • 783 Words
    • 4 Pages
    Good Essays
  • Good Essays

    MA1210 U5 PPT1

    • 1517 Words
    • 23 Pages

    Next: Draw a line through the points 7 Section 2.3 Linear Functions and Slopes change in y 2  7 9 3 m   or  change in x 5  (1) 6 2 8 Section 2.3 Linear Functions and Slopes The Point-Slope Form of the Equation of a Line 9 Section 2.3 Linear Functions and Slopes Write the point-slope form of the equation of the line with slope of 3 that passes through (-1,2). Substitute into the point-slope form; y-y1  m( x  x1 ) y  2  3( x  1)…

    • 1517 Words
    • 23 Pages
    Good Essays
  • Good Essays

    Part A – Numerical Methods consists of questions 1 – 3 Part B – Statistics consists of questions 4 – 6 Both parts must be answered…

    • 10483 Words
    • 42 Pages
    Good Essays
  • Satisfactory Essays

    GRPAHING WITH MOTION

    • 928 Words
    • 4 Pages

    1. Describe the difference between the two lines on your graph made in Step 6. Explain why the lines are different.…

    • 928 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Eco 550 Assignment 1

    • 460 Words
    • 2 Pages

    In Microsoft Excel, complete the table below, then using one chart, draw the following curves:…

    • 460 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    qlt1 task 5

    • 296 Words
    • 2 Pages

    • The location where the laser beam hits the ground as an ordered pair. (45,0)…

    • 296 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    4. After the graph is complete, right-click on one of the data points on the graph. Select ‘Add trendline”…

    • 581 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    amr man

    • 554 Words
    • 3 Pages

    3. Complete these steps to draw more points and lines on your graph paper, and then…

    • 554 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Similarly to how you’d use a graph with a linear function, you can also use a table. You can use the function (y=12x, in our case) and plug in points for the x variable to find what the y would be, which you can later graph. If we made a table using our current function, this is what it would look like this:…

    • 526 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Volume and Graph

    • 353 Words
    • 3 Pages

    Create a graph of your data for this part of the lab. You may use any graphing tool to create the graph, but be sure to follow common guidelines for creating a graph.…

    • 353 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    104 demand

    • 268 Words
    • 1 Page

    Use the data generator in the lesson, to get data to plot on your graph. Create the graph and plot out the points given to you. Be sure to label all parts of the graph and give it a title. The easiest way to create your graph is to do it by hand. Draw your graph out on paper, after you have completed all of the steps use a digital camera to take a picture of it. Save your graph to your computer and insert it as a picture at the top of this document.…

    • 268 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Algebra 2 Help

    • 308 Words
    • 2 Pages

    5.Convert the equations you arrived at in question 2 and question 4 into slope-intercept form.…

    • 308 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    G-Force

    • 857 Words
    • 4 Pages

    This graph looks similar to an exponential graph, so a function will be created to see if an exponential function most accurately fits this graph.…

    • 857 Words
    • 4 Pages
    Good Essays