Ask Science Expert

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

Science, Academics

  • Category:- Science
  • Reference No.:- M91608816

Have any Question?


Related Questions in Science

Physiology signature assignment -for your signature

Physiology: Signature Assignment - For your signature assignment, compose a 3- to 4-page case analysis (in addition to a title, abstract, and a reference page) written in APA format with at least 3 references, with one n ...

Course descriptionthis course provides an opportunity for

Course Description This course provides an opportunity for nursing students to enhance their knowledge of historical and contemporary issues relevant to Aboriginal and Torres Strait Islander people. This course will expl ...

Individual work - personal reflectionreflect on the roles

Individual work - personal reflection Reflect on the roles you performed in this group task and reflect on the ways you impacted on the group. Describe some of the things that you did that were helpful to the group. Desc ...

A do research or find a peer-reviewed scholarly journal

A. Do research or find a peer-reviewed, scholarly journal article that is related to leadership and motivation with emphasis on morality, write a short summary of the content of the article. If it is not a scholarly jour ...

Rationalesafety and risk management are critical aspects of

Rationale Safety and Risk Management are critical aspects of a workplace and breaches are punishable under Work Health and Safety Law. This task encourages students to analyse and conceptualise responses to safety breach ...

Rationalesafety and risk management are critical aspects

Rationale Safety and Risk Management are critical aspects of a workplace and breaches are punishable under Work Health and Safety Law. This task encourages students to analyse and conceptualise responses to safety breach ...

Midterm exam questions -q1 you are asked to evaluate a

Midterm Exam Questions - Q1. You are asked to evaluate a construction/building project in an area corresponding to the sketch map below. The area has mildly hilly topography and thin soil cover. The bedrock in area X is ...

Assignment -in addition to turning in your isite journal

Assignment - In addition to turning in your iSite journal entry as usual, a short paper with emphasis on writing in a scientific format, properly acknowledging resources, and an overview of the process of thermoregulatio ...

Critical appraisal requirementscritically appraise review

Critical appraisal requirements Critically appraise (review) the literature pertaining to human factors related to work performance and critically analyse the relationship between these and quality and safety in health c ...

Question in a 3 page paper compare and contrast food

Question: In a 3 page paper compare and contrast food insecurity issues in urban environments vs. rural environments. Discuss the role of food security as compared to food justice. The response must be typed, single spac ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As