Matlab Question, Mechanical Engineering

Assignment Help:
help write the matlab code desired:
The sine function can be evaluated by the following infinite series as (where the angle x is given in
radians):
xsinx = x-(x^3)/3! + (x^5)/5! - (x^7)/7!....
(a) Create a function M-file mysin1 that takes the angle x (in degrees) and the number of terms n as
the input, and returns sin(x) as the output using n number of terms in the above expansion. Test
your function with x=1.53, and n=10.
(b)Create a second function M-file mysin2 that takes the angle x (in radians) and the significant
digits sigdig as the input, and returns sin(x) correct to sigdig significant digits as the output.  Test
your function to find sine of 2.24 correct to 14 significant digits.

Related Discussions:- Matlab Question

Why we need ambient air temperatures, Q. Why we need Ambient Air Temperatur...

Q. Why we need Ambient Air Temperatures? Climatic temperatures and humidity conditions will have an impact on the type of equipment selected for the plant. A type of "wind c

Objectives of general safety and service tips , Objectives After study...

Objectives After studying this general safety and services tips, you should be able to appreciate the importance of safety precautions, accomplish the servicing wo

Brazing vs welding, Brazing Vs Welding Following are the differences be...

Brazing Vs Welding Following are the differences between brazing and welding. (i)  In brazing, the joint surfaces are not raised to fusion point (or melted) and the joint is

Illustrate the gks system, Illustrate the GKS system The user communica...

Illustrate the GKS system The user communicates with the graphic system via his program. The GKS system is embedded in the user program by an application-oriented layer and a l

Describe cope and drag pattern, Cope and drag pattern These are similar...

Cope and drag pattern These are similar to split patterns. In addition to splitting the pattern, the cope and drag halves of the patterns along with the gating and risering sys

Calculate the magnitudes of the force, The end gates of a lock are 5m high ...

The end gates of a lock are 5m high and when closed include an angle of 120 o . The width of the lock is 6.25 m. Each gate is carried on two hinged placed at the top and the bottom

Camprofile, knifer edge follower program in java

knifer edge follower program in java

Bodies stick together after collision the heat liberated, Two bodies of mas...

Two bodies of mass 1 kg and 2 kg move towards each other in mutually perpendicular direction with velocities 3m/s and 2 m/s respectively. If the bodies stick together after collisi

Create a pay - off table, Bhasker operates a retail shop and sells the high...

Bhasker operates a retail shop and sells the high priced "Hot Food" thermoware. Each unit I priced at Rs.250. Experience has shown that the weekly demand schedule for items is as f

Determine the value of shunt connected capacitance, An electric heating ele...

An electric heating element is rated at 4.0kW when connected to a single phase 240Vrms, 50 Hz AC supply, and is known to have a power factor of 0.833 lagging. 1. Calculate the c

Write Your Message!

Captcha
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