Write a simple program to compare the secant method

Assignment Help Engineering Mathematics
Reference no: EM132158945

Use MatLab.

Write a simple program to compare the secant method with Newton's method for finding a root of each function.

a) x^3 - 3x + 1 with x0 = 2

b) x^3 - 2sin(x) with x0 = 1/2

Use the x1 value from Newton's method as the second starting point for the secant method. Print out each iteration for both methods.

Reference no: EM132158945

Questions Cloud

Write a user-defined function that accepts these four points : Write a user-defined function that accepts these four points as input and computes the coefficients a, b, c, and d.
Write a new factorial function using pattern matching : Write a new factorial function using pattern matching which is tail-recursive (i.e. it doesn't cause the stack to grow and there are no pending operations).
Hillsborough street roundabout by the ncsu bell tower : Let X be the number of accidents per week at the Hillsborough Street roundabout by the NCSU Bell Tower. Assume X varies with mean 2.2 and standard deviation
State the null and alternate hypotheses : State the null and alternate hypotheses. Will you use a left-tailed, right-tailed, or two-tailed test?
Write a simple program to compare the secant method : Use the x1 value from Newton's method as the second starting point for the secant method. Print out each iteration for both methods.
What are the mean and standard deviation : What are the mean and standard deviation of this weight distribution? (Please show the working process)
Write a simply-recursive function to compute factorials : Write a simply-recursive (not tail recursive) function to compute factorials
Compute a confidence interval with a sample size : Suppose you compute a confidence interval with a sample size of 100. What will happen to the confidence interval if the sample size decreases to 80?
Create the array inside the class : Create the array inside the class. Create a method that will fill the array with 10 random integers.

Reviews

Write a Review

Engineering Mathematics Questions & Answers

  Conditions for correlation / linear regression

What is the probability that the fourth part retrieved from stock is the first defective?

  Accept a higher level

Researchers routinely choose an alpha level of 0.05 for testing their hypotheses. What are some experiments for which you might want a lower alpha level (e.g., 0.01)? What are some situations in which you might accept a higher level (e.g., 0.1)?

  Estimate a regression of hs on y and rr

Estimate a VAR model with one lag. Compute the characteristic roots. Test for cointegration and estimate the cointegrating vectors, if any.

  Analysis of pneumatic suspension system modeling

Mathematical Design and Analysis of Pneumatic Suspension System modeling: Get datas, Solve solution and Plot graphs

  Discuss the stages of model formulation

Discuss the stages of model formulation with respect to the aggregate model. In particular, interpret the objective function and constraints given by expressions (1) to (15).

  Discuss about the maximum number of servings

(An optimal breakfast) We are given a set of n = 3 types of food, each of which has the nutritional characteristics described in Table.

  Why would low policy rates suggest low long-term ir

Pacific Investment Management Company, generally known as PIMCO, is one of the world's largest investment companies. Among other things, it runs PIMCO.

  Analyze the problems the author uses the concept of duality

In one of the papers (to be cited along with solutions) published in Operations Research journal, the author considers the following problem and its LP model: To analyze the problems the author uses the concept of duality. Formulate the dual proble..

  How will a gilt and a corporate bond prices compare

A gilt and a corporate bond have the same principal and the same coupons and coupon dates. How will their prices compare?

  Determine the general solution of the differential equation

Use Euler's Method or Euler's improved method, find the particular solution of the differential equation, and By using the separation of variables method, find the particular solution of differential equation.

  Use the data to develop a probability distribution for x

For unemployed persons in the United States. the average number of months of unemployment at the end of December 2009 was approximately seven months.

  What is the venn diagram

The Outcome (A or B) sometimes is called the union of A and B. The union event occurs if either Outcome A or Outcome B (or both) occurs.

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