Write a script to integrate a function

Assignment Help MATLAB Programming
Reference no: EM131026491

Problem:

Write a script to integrate a function in three different ways: by eyeballing it, by calling trapz with a list of points, and by calling quad with a function.

Equation we're going to integrate: y(x) = -x4 + 2x2 + 2.

Additional information

This problem belongs to MATLAB software and discusses about application of MATLAB in mathematics to solve polynomials and to perform certain operations.

Answer is in MATLAB format

Reference no: EM131026491

Questions Cloud

Prove that there are no matrices : Show that the trace is a linear map of the space of n n matrices into K.
Create a ppt on a training method for executives : You have been asked to create a PowerPoint presentation on a training method for executives at an organization you currently work for or an organization you wish to work for in the future.
Which degree do you think best represents the data : Write a Matlab script to try fitting a 1st, 2nd, and 3rd degree polynomial to the dataset described by volume of water vs. volume of ice. Use subplot to draw all three
What power of reading glasses should be prescribed for her : A person struggles to read by holding a book at arm's length, a distance of 49cm away. What power of reading glasses should be prescribed for her, assuming they will be placed 1.9cm from the eye and she wants to read at the "normal" near point of ..
Write a script to integrate a function : Write a script to integrate a function in three different ways: by eyeballing it, by calling trapz with a list of points, and by calling quad with a function.
Why an electronic device might be able to interfere : Explain why an electronic device might be able to interfere with equipment in the airplane. What exactly would your electronic device be doing and why would it cause a problem?
Proportions favoring the proposition and place : Estimate the difference in the proportions favoring the proposition and place a 2-standard-deviation bound on the error of estimation.
Calculate its kinetic energy at the low point : Calculate its kinetic energy at the low point. Ignoring air resistance, how high will the bob swing above the low point before reversing direction?
Write a script to use a polynomial : Write a script to use a polynomial to create data and then practice fitting - belongs to MATLAB software and discusses about application of MATLAB in mathematics to solve polynomials and to perform certain operations.

Reviews

Write a Review

MATLAB Programming Questions & Answers

  How to plot each of these vector fields

You need to help on how to plot each of these vector fields - v=yi-xj and v=xi in MATLAB Programming.

  Write a matlab script that solves ode

Write a matlab script that solves ODE: y' = 4/(1+x^2) using forward Euler's, improved Euler, classical Runge-Kutta, and Adams-Bashforth methods.

  Create from the stack a structure string stac

Design a structure stack that represents a stack of elements of some arbitrary type. Include the functions: create(returns an empty stack), push(add an element to the top of the stack and return the resulting stack), pop(delete the top element and re..

  Let''s combine everything together

Let's combine everything together! In this question, you will be asked to combine scaling and translations. Write a function named "problem5" that accepts a single input and scales the image by 0.5 and shifts it up by 7 units. The input variable h..

  Consider a cstr with a feed stream

Consider a CSTR with a feed stream containing only A at a concentration of cA and the reactions A?B?C taking place in the CSTR. Both reactions are first order in the reactant

  Compute the output response

Write a MATLAB M-file to compute the output response y[n] of the 6-point MA filter to the input x[n]=5sin(pn/10 + p/4), for 0

  Write a matlab script using the randn command

Write a Matlab script using the "randn" command to generate a vector of 10,000 random numbers that are normally distributed around zero, with a variance of 1. Use the "hist" command to plot a histogram of these data, specifying 50 bins.

  Finds the largest integer in the list recursively

Write a program that, given a list of 20 integers, finds the largest integer in the list recursively

  Error between the exact solution and explicit solution

Calculate the error between the exact solution and explicit solution and draw the exact solution and compare the results.

  The function should compute and return

Define a function that takes as input parameters a function handle f, start and end values a and b, and a number of steps n. The function should compute and return the x and y values of the maximum of the function over the range a to b.

  Stepper motor driven xy table

Stepper Motor Driven XY Table - Use Matlab and Labjack to acquire digital inputs from limit switches and use Matlab to analyze acquired data

  The gauss-newton method

Write up your results using our standard format. Show and discuss the results of Steps 1-3 in some detail, including the observed convergence rates of steepest descent versus the Gauss-Newton method

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd