Question

For the final project, you will create an integral calculator polynomials of degree zero, one, two three and four Degree Function yz where z is a constant 3 where a,b.c.d.z e R, real numbers You will ask the user for the degree of the polynomial and then the coefficients and the constant values of the polynomial. Then you will ask the user for the beginning and the end of the interval along with the number of steps between the interval to integrate over. To do the actual integration, use the trapezoid rule for numerical integration to compute the integral which is noted below: 竽(f(z.) + 2 +/(a) + 2 * f(za) + + 2 * f(EN-1) + f(zx)) If you are not sure how the trapezoid rule works, I have a link in the Final folder for trapezoid rule examples. You should print out your answer in just the black DOS window, no need for a file output here. Remember, this is a numerical approximation of error order three s. So if you check your answers with doing the actual calculation by hand you may be off a little bit. Hint, You will want to save the x and y values of your function some way and the number of valnes and steps are determined by the user input. You will apply the trapezoid rule to your y values of the function chosen by the user
0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
For the final project, you will create an integral calculator polynomials of degree zero, one, two...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • 6. Compute four Legendre polynomials degree 0, 1, 2 and 3, respectively. You can assume that...

    6. Compute four Legendre polynomials degree 0, 1, 2 and 3, respectively. You can assume that these polynomials endre polynomial to construct a Gaussian quadrature. Approximate the value of the integral are monic. Use the roots of the cubic Leg- sin(2x) dx using your quadrature rule. 6. Compute four Legendre polynomials degree 0, 1, 2 and 3, respectively. You can assume that these polynomials endre polynomial to construct a Gaussian quadrature. Approximate the value of the integral are monic. Use...

  • Programming Assignment - Numerical Integration In MATH 1775 last semester, you used Riemann sums in Excel...

    Programming Assignment - Numerical Integration In MATH 1775 last semester, you used Riemann sums in Excel to approximate the value of the definite integral that represents the area of the region between the x-axis and the graph of 2 5 y xx = − 8 shown below. The purpose of this assignment is to increase the accuracy of such approximations of integrals. Write a program (using java) that uses the Midpoint Rule, the Trapezoid Rule, and Simpson’s Rule to find...

  • C-Programming please. The task is to create second-degree polynomial calculator for the function, its integral and...

    C-Programming please. The task is to create second-degree polynomial calculator for the function, its integral and its derivative. A second-degree polynomial is described by the equation f(x) = ax +bx+c. Evaluation of the derivative gives the instantaneous slope or rate of change as (where f'(x) is the derivative of f(x)): f"(x)=2x+b The integral of the function f(x) (let us call it F(x)) indicates the area underneath the curve. Between points x; and the area A is A = F(x)-F(x), where,...

  • MATLAB Create a function that provides a definite integration using Simpson's Rule Problem Summar This example demo...

    MATLAB Create a function that provides a definite integration using Simpson's Rule Problem Summar This example demonstrates using instructor-provided and randomized inputs to assess a function problem. Custom numerical tolerances are used to assess the output. Simpson's Rule approximates the definite integral of a function f(x) on the interval a,a according to the following formula + f (ati) This approximation is in general more accurate than the trapezoidal rule, which itself is more accurate than the leftright-hand rules. The increased...

  • These instructions are written with the assumption that code will be done in matlab. You might fi...

    These instructions are written with the assumption that code will be done in matlab. You might find the following built in commands useful: length, plot, xlabel, ylabel, title, legend, fzero, plot, disp, axis, axes, min, max. 2. Numerical Integration (Quadrature). Write FOUR of your own numerical integration routines. One should use left-end, right-end, or mid-points, another should use the trapezoid method, another should use Simpson’s method, and the fourth should use either Guassian Quadrature or Romberg’s method. Use your four...

  • The code should be written with python. Question 1: Computing Polynomials [35 marks A polynomial is...

    The code should be written with python. Question 1: Computing Polynomials [35 marks A polynomial is a mathematical expression that can be built using constants and variables by means of addition, multiplication and exponentiation to a non-negative integer power. While there can be complex polynomials with multiple variable, in this exercise we limit out scope to polynomials with a single variable. The variable of a polynomial can be substituted by any values and the mapping that is associated with the...

  • Matlab code: Task 5 As an engineer you are asked to calculate the approximate surface area of a lake in your local community. In order to do that, you decide to use a GPS to measure the x and y coord...

    Matlab code: Task 5 As an engineer you are asked to calculate the approximate surface area of a lake in your local community. In order to do that, you decide to use a GPS to measure the x and y coordinates at various points around the lake. You pick a starting point and calibrate your GPS position at that point to be (0,0). You begin to walk around the lake collecting the following data below and eventually return to your...

  • Question 14 Suppose f(x) is an decreasing, concave up function and you use numeric integration to...

    Question 14 Suppose f(x) is an decreasing, concave up function and you use numeric integration to compute the integral of f over the interval [0, 1]. Put the values of the approximations using n = 100 for the left end-point rule (L100), right end-point rule (R100), and Simpson's rule (S100) from the least to the greatest. a) OS100, L100, R100 b) L100, S100, R100 R100, L100, S100 $100, R100, 2100 R100, S100, L100 O None of the above. Review La...

  • Problem 6 (programming): Consider a two-dimensional function f(x.y) stored in the file f.mat on TritonED. Down load the...

    Problem 6 (programming): Consider a two-dimensional function f(x.y) stored in the file f.mat on TritonED. Down load the file and load it into MATLAB. The file includes 3 variables: x, y and f, where f contains 2-dimensional function values at (x, y). You can execute: surf(x, y, f); shad ing interp; view(3); in the command window to visualize the function. Do not put the command in your homework script. In the following exercises, estimate the double integral: maz(ycmax(z) f(x, y)...

  • 3. Consider the function f(x) = cos(x) in the interval [0,8]. You are given the following 3 point...

    3. Consider the function f(x) = cos(x) in the interval [0,8]. You are given the following 3 points of this function: 10.5403 2 -0.4161 6 0.9602 (a) (2 points) Calculate the quadratic Lagrange interpolating polynomial as the sum of the Lo(x), L1(x), L2(x) polynomials we defined in class. The final answer should be in the form P)a2 bx c, but with a, b, c known. DELIVERABLES: All your work in constructing the polynomial. This is to be done by hand...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT