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

  Prime number theorem

Dirichlet series

  Proof of bolzano-weierstrass to prove the intermediate value

Every convergent sequence contains either an increasing, or a decreasing subsequence.

  Antisymmetric relations

How many relations on A are both symmetric and antisymmetric?

  Distributed random variables

Daily Airlines fies from Amsterdam to London every day. The price of a ticket for this extremely popular flight route is $75. The aircraft has a passenger capacity of 150.

  Prepare a system of equations

How much money will Dave and Jane raise for charity

  Managing ashland multicomm services

This question is asking you to compare the likelihood of your getting 4 or more subscribers in a sample of 50 when the probability of a subscription has risen from 0.02 to 0.06.]  Talk about the comparison of probabilities in your explanation.

  Skew-symmetric matrices

Skew-symmetric matrices

  Type of taxes and rates in spokane wa

Describe the different type of taxes and their rates in Spokane WA.

  Stratified random sample

Suppose that in the four player game, the person who rolls the smallest number pays $5.00 to the person who rolls the largest number. Calculate each player's expected gain after one round.

  Find the probability density function

Find the probability density function.

  Develop a new linear programming for an aggregate production

Linear programming applied to Aggregate Production Planning of Flat Screen Monitor

  Discrete-time model for an economy

Discrete-time model for an economy

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