Question

3. Consider the function f(x) = -0.1.24 – 0.15x3 – 0.522 – 0.25x + 1.2. (a) Obtain the analytical expression (i.e. True or Ex

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution The given function is, Muse -0.251 +12 f(x) = -0 1x _ 0.15x² -0.5x² - a) Towe/Exact Solution of df dx df doc -0.4x²s(num) - $(15)-f(-0.5) 2(h) = -1.3125 - (1 2125) 2 f (num) -- 1.2625 Error, E = Il f (num) - flexad 11 € - ||- 1.2625-(-0.91f)h= 0.00001) x=0.5 Xiti in=0.00oooool x=0.5 xi 0.50001 » (0.92499) = 05 +0.925) 0.49999760-92501) xirl =-0.912500603 f (numf(x) TRUE(f(exact)) h 1 0.49 0.1 0.01 0.001 0.0001 0.00001 0.000001 0.0000001 0.00000001 0.000000001 (-(0.1*(x^4))-(0.15*(x^Step size(h) 1 0.1 0.01 0.001 0.0001 0.00001 0.000001 0.0000001 15-08 1E-09 1 0.1 0.01 E r 0.001 r 0.0001 0 0.00001 r 0.00000the step size h decreases . Later, C) (i) Error value decreases initially it slightly increases after certain point a certain

Add a comment
Know the answer?
Add Answer to:
3. Consider the function f(x) = -0.1.24 – 0.15x3 – 0.522 – 0.25x + 1.2. (a)...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • please show me a Matlab script that will compute the total errors of the approximation due...

    please show me a Matlab script that will compute the total errors of the approximation due to the given function, also include the panel plot as well, thank you. 1) This problem studies the errors due to the approximation of the first derivative of a given function f(x) using the forward and centered difference methods. For this problem, we consider f(x)=sin(x). a) First, we will investigate the effect of the step size h on the first derivative approximation. Set h=10',...

  • Consider the system 0.28 +0.2x + 2x = f(t), where f(t) is a unit step function,...

    Consider the system 0.28 +0.2x + 2x = f(t), where f(t) is a unit step function, and the initial conditions are zero. (a) Use MATLAB to plot the step response of the system. Attach the MATLAB plot and the script used to create the plot. Using only the printed MATLAB plot, extract by hand (i.e. use a ruler) the (b) maximum percent overshoot, (c) rise time, and (d) peak time, and then using the extracted values, estimate the (e) damping...

  • 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...

  • Consider a table values of f(x) = sinx for x on [0,1.58] with a spacing h=0.01. Bound the error o...

    Consider a table values of f(x) = sinx for x on [0,1.58] with a spacing h=0.01. Bound the error of quadratic interpolation in this table please show solution ( answer in bolt) K 2 >Consider a table values of f(x)sinx for x on [O,1.58] with a spacing h=0.01. Bound the error of guadratic interpolation in this table (1) = 6.42 x 10-8 K 2 >Consider a table values of f(x)sinx for x on [O,1.58] with a spacing h=0.01. Bound the...

  • #7. [Extra Credit] is calculus wrong?! Consider f(x) = ex (a) Calculate the derivative of fx) atx...

    #7. [Extra Credit] is calculus wrong?! Consider f(x) = ex (a) Calculate the derivative of fx) atx 0 using O(h) finite difference (forward and backward) and O(h2) centered finite difference. Vary h in the following manner: 1, 101,102... 1015. (Write a MATLAB script for this purpose and call it pset5_prob7) (b) Modify your script to plot (log-log) the the true percent error in all three cases as a function of h in one plot. (c) In calculus we learned that...

  • 4. Consider the mechanical system shown below with a spring with stiffness, k (N/m), in parallel...

    4. Consider the mechanical system shown below with a spring with stiffness, k (N/m), in parallel with a viscous damper with coefficient, h (Nós/m) and an externally applied force, Fexi(t) (N). u(t) a. Find the equation that relates the applied force, Fext(t) and the displacement, u(t). b. If the spring component has a stiffness of k = 75 N/m, the damper component has coefficient h = 50 N s/m and the externally applied force is a constant 4.5 N applied...

  • (a) Write a code that uses to approximate f(), where f(x) tan-1z and a-v2. (Note (v2...

    (a) Write a code that uses to approximate f(), where f(x) tan-1z and a-v2. (Note (v2 Output k, h,r,e. Here k is the iteration index, h is the step size, r is the approximate value of () and e is the error i.e. erl. From a nicely displayed table of the error, estimate the order of the finite difference approximation you just coded, by repeatedly changing the value of h.

  • Problem 2 (hand-calculation): Consider the function f(x) tabulated in table 1. Apply improved trapezoid rule to estimat...

    Problem 2 (hand-calculation): Consider the function f(x) tabulated in table 1. Apply improved trapezoid rule to estimate the integral, If) J ) dz, by using the following number of subintervals, n (a) n-3. Use grid points at i0, 4, 8 and 12 (b) n- 6. Use grid points at i0, 2,4, 6, 8, 10 and 12 (c) n = 12, Use all grid points For each part, compute the integral, T(f) and the corresponding absolute error Er(f), and the error...

  • (10 pts) Write a function to call python modules (either re-write or re-use the program you...

    (10 pts) Write a function to call python modules (either re-write or re-use the program you developed before) to calculate the derivative of In(1+x) at X = 1 using the forward difference, central difference and extrapolated dif- ference methods. Also use this function to create a similar log-log plot that compares the absolute value of the approximation error (you can ignore the rounding error) as a function of the size of the intervals used for these three methods. Choose the...

  • 1. Consider the function y f(x) defined by Supposing that you are given x, write an...

    1. Consider the function y f(x) defined by Supposing that you are given x, write an R expression for y using if state- ments Add your expression for y to the following program, then run it to plot the function f. # input x,values <-seq(-2, 2, by 0.1) # for each x calculate y n <- length(x.values) y.values <- rep(0, n) for (i in 1 :n) x <- x. values[i] # your expression for y goes here y.values ij <-...

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