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

  Journal of pharmaceutical sciences

This journal is a scientific publication of Indian Pharmaceutical Association and highlights various bright points of it.

  Optical fibres

This document discuss about the main attributes and characteristics of optical fibres.

  Micro organisms

This project report reveals the fact and proves a specific objective mentioned to be studied upon.

  Describing histology of an organ

The discussion of the technique should include a literature review on the evolution of the technique.

  Interpret the sensitivity of mammography

Calculate and interpret the sensitivity of mammography. Diagnostic test with Sensitivity 50%, Specificity 50% and prevalence 50%. Crude mortality rate. Damage caused by motor vehicle accidents.

  Discuss the role that science plays in your daily life

Role that science plays in your daily life and Integrity, Intensity, Innovation, and involvement in scientific field

  Prepare a flexible budget gator divers

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.

  Neurological disorders

Designing a neuroprosthesis for the neurological disorders

  Complexity of cell surfaces

Lipid rafts provide another example of the complexity of cell surfaces in both their structural character and biologic functionality. Please explain the nature of these structures and their functionality.

  Exploratory activity on bird beaks

Describe how natural selection and evolution are demonstrated by this activity

  Spatial and temporal variation of heat content in the upper

In this study the temporal and spatial variation of heat content in the upper 70m layer of the Arabian Sea was for a period of 1991 to 2008 have been attempted.

  Earthquake databases

Earthquake Databases

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