Compute the standard trigonometric function

Assignment Help Science
Reference no: EM13937939

1. Suppose you need to implement a routine to compute the standard trigonometric function sin(x) on an embedded microprocessor that does not have a built-in sine function. For example you would need this when writing the firmware on a simple mobile phone.

You are to implement a Matlab function that computes sin(x) without obviously using the sin(x) or indeed any trig functions. Your routine should use only multiplies (and divides) and additions (and subtractions). Since this is a relatively easy (and common) task, the intention here is that you write a robust routine and that you extensively test it. Marks will be awarded for your testing and analysis of your proposed solution.

Hint: One way to do this is to use the standard Taylor series expansion sin(x) = X∞ k=0 (-1)k (2k + 1)! x 2k+1 You might find it useful to use a while loop and terminate the series when sufficiently accurate, say when the error is less than 10-12. Also note that factorial(n) computes the factorial in Matlab. Root finding

Reference no: EM13937939

Questions Cloud

Stock value is attributable to growth opportunities : Colins Company current return on equity (ROE) is 16%. It pays out one-quarter of earnings as cash dividends. Current book value per share is $35. The company has 5 million shares outstanding. What is the terminal value? What is the current value of C..
Calculate the proper speed of the beacon : Calculate the proper speed of the beacon. That is, imagine there is a comoving obseryer at fixed r, with a locally inertial coordinate system set up as the beacon passes by, and calculate the speed as measured by the comoving observer. What is ita..
Characteristics of self-reliance and leadership : Effective problem-solving, capacity for life-long learning, the ability to work independently and collaboratively, social and ethical responsibility and an understanding of international perspectives, and characteristics of self-reliance and leade..
What is the bonds nominal coupon interest rate : O'Brien Ltd.'s outstanding bonds have a $1,000 par value, and they mature in 25 years. Their nominal yield to maturity is 9.25%, they pay interest semiannually, and they sell at a price of $975. What is the bond's nominal coupon interest rate?
Compute the standard trigonometric function : Suppose you need to implement a routine to compute the standard trigonometric function sin(x) on an embedded microprocessor that does not have a built-in sine function. For example you would need this when writing the firmware on a simple mobile p..
The quoted price of a bond with an actual : It is May 1, and the quoted price of a bond with an Actual/365 day count and 9% per annum coupon in the United States is 106. It has a face value of 100 and pays coupons on April 1 and October 1. What is the cash price rounded to the nearest whole nu..
How do the weighted average and fifo methods differ : In assigning costs to goods transferred out, how do the weighted average and FIFO methods differ? Describe the effect of automation on the process accounting system.
Expected return and risk-free rate : You have $100,000 to invest in either Stock D, Stock F, or a risk-free asset. You must invest all of your money. Your goal is to create a portfolio that has an expected return of 12.3 percent. Assume D has an expected return of 15.8 percent, F has an..
You estimate k using the data : Attachments: Worksheet, data file, guideline template. Parts to be done: Discussion, Problem solving task, Assessment (As an example, here are some guidelines on writing: Use half a page to answer the discussion question; dot points are fine. Use ..

Reviews

Write a Review

Science Questions & Answers

  An imaginary quantitative nursing study

Create an example of an imaginary quantitative nursing study you would design that would use regression analysis.

  In a 750 to 1000 word microsoft word document in apa

in a 750 to 1000 word microsoft word document in apa format respond to the following questionshow great a problem is

  Potential problems

Give an example of using a co-routine in which it is not possible to use a subroutine to accomplish the same task, provide code if necessary

  Problems based on an alternative power source

How realistic is this alternative power source for your community?

  Research paper about the effect of psilocybin

Research paper about the effect of psilocybin on sensation and perception and I have a difficulty in finding the right articles

  What can be done to reduce damages from tropical cyclones

Assume you have been hired by a community tomake the citizens more aware of the landslide hazard in a very steep topographic area. Outline a plan of action and defend it.

  Selected policy and discuss the rationale for your selection

Describe your selected policy and discuss the rationale for your selection. Describe the model of policy making that you feel would be best applied to your policy issue and the rationale for selecting this model.

  The relationship of geography to other scientific discipline

Essay you are required to answer all five (5) of the questions. Although there is no set word limit for these essay questions, you will be graded on your knowledge of the material and the detail with which you write your answers.

  Agencies in effect seek to maintain the statue quo

Agencies in effect seek to maintain the statue quo. Regardless of the basic motives behind social policy, it seems clear that unless and until more successful or satisfying programs are devised to provide for basic needs of people who are unable to p..

  Calculate the temperature of the parcel

Calculate the temperature of the parcel at the following elevations as it rises up the wind-ward side of the mountain: 1000 m ______ °C

  Problems related to bird flu research, dna and rna

Explain the main reasons DNA is the most favorable molecule for genetic material and how RNA compares to it in this respect.

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