Write script and function to implement the secant algorithm

Assignment Help Mathematics
Reference no: EM13969881

Preliminary Information

In this assignment you will write a script and a function to implement the secant algorithm.

The function will implement the secant algorithm and return the root of the function.

The script will define the required data and send the data to the function. Included in the required data there should be a string that defines the required function as an anonymous function. The string can be converted into a function handle using MATLAB's str2func function.

After the root is returned from the secant function is should be written to a data file on disk with 6 decimal places. The data file should read:

The root = (value_of_root)

For your function use

f(x) = 2-2log?(x)-√x

Goals:

  • Writing numerical analysis software
  • The use of anonymous functions
  • I/O to disk files

Reading Assignment: Recommended reading from MATLAB help documentation:

• str2func
• fopen
• fprintf
• fclose

Note: you should write the output to a file in your current directory.

What to Submit

You are required to upload the following files to Blackboard

1) Your script M-file.
2) Your secant function M-file.
3) A documentation file.

You should note that your documentation file is extremely important. It is this information that users of your software will consult when running your software. Too many programmers make extreme efforts writing and testing software and then fail to provide proper documentation. This hinders the use of your software and prevents users from gaining the full benefits of your hard work.

All you M-file should contain comments explaining how the program works. In addition, you should include the follows:

File name
Description
Program variables
Programmer
Student number
Date

Your documentation file should contain the following information:

Programmer
Student number
Date
File software names of all your programs
Description of program
Instructions on how to run the program

Reference no: EM13969881

Questions Cloud

Advise malcolm regarding what you feel : Advise Malcolm regarding what you feel should be the key elements in recruiting, training and managing his new sales force.
Find the equation of the family of circle : Find the equation of the family of circle at the intersection of x^2+y^2-x+3y-4=0 and x^2+y^2-8x-4y+10=0 through the member at point (1, -7). Find k, general form, standard form and C(h,k) & r
Decision under the business judgment : When they approved Mr. Eisner's severance package, Disney s board did not know how much his sev¬erance package would cost. How could this be considered an informed decision under the business judgment?
Determine which books he should order to maximize his profit : Determine which books he should order to maximize his profit based on the above information - The local bookstores accept all shipments from Books, Books, Books because of BK's incredibly low prices.
Write script and function to implement the secant algorithm : Write a script and a function to implement the secant algorithm - function will implement the secant algorithm and return the root of the function.
Script that takes in either a binary or decimal number : Write a script that takes in either a binary or decimal number and converts it to either decimal or binary respectively. The program should first ask whether to convert to binary or decimal and should not use the built in bin2dec or dec2bin funct..
What is the periodic rate and effective rate of interest : Your bank your bank pays 8% nominal rate of interest. The interest is compounded quarterly. What is the periodic rate and effective rate of interest
Find the volume of the tetrahedron : Find the mass of the region R bounded and find the volume of the tetrahedron
Explain how useful you think the bsc is : Discuss with your group your recommendations and best practises for utilising BSCs in general. Note the various formats that may be used across examples, and discuss any advantages you may see to one style of presentation over another.

Reviews

Write a Review

Mathematics Questions & Answers

  Questions on ferris wheel

Prepare a Flexible Budget Gator Divers is a company that provides diving services such as underwater ship repairs to clients in the Tampa Bay area.

  Logistic map

This assignment has two question related to maths. Questions are related to bifurcation cascade and logistic map.

  Finding the probability of cards

This assignment has questions related to probabiltiy.

  Systems of ode

Find all the xed points, and study their stability and Draw the phase portrait of the system, as well as the graphs of the solutions in all relevant cases.

  Derive the boolean expression

Derive the Boolean Expression and construct the switching circuit for the truth table stated

  System of equations

Evaluate which equations are under-identified, just-identified, and over-identified.

  Linear programming problem

Linear programming problem consisting of only two constraints with one objective function.

  Find the natural domain

Find the natural domain of the given functions.

  Introduction to numerical methods

Compute the coecients of the polynomials using the term recurrence relation.

  Chart of the topological manifold

De?nition of smoothness of functions on a smooth manifold is chart independent and hence geometric.

  Mathematics in computing

Questions related on mathematics in computing.

  Complex problems

Complex problems

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