ENGR 102 University of Arizona College MATLAB Questions Create a separate function file for each of the following problems. You must include an appropriate H1-line and Help-text with each function. Spring 2019
ENGR 102: Engineering Problem Solving II
MATLAB Homework #: Custom Functions
Required Homework
Create a separate function file for each of the following problems. You must include an
appropriate H1-line and Help-text with each function. Submit your files (Script file and
function files) to eCampus by DayofWeek, Month, Day, Year at 00:00 AM/PM.
1. Write a user-defined function for the following math function:
??(??) = 5 cos(2 ??????(??))
The input to the function is ? in radians and the output is r.
2. The quadratic formula is defined as:
??=
??? ± ??? 2 ? 4????
2??
Where, ???? 2 + ???? + ?? = 0
Write a MATLAB user-defined function that computes the values for x when the values of a, b and c
are known. The inputs should be a, b and c and the output should be x.
3. The equation for Body Mass Index is:
?????? =
???????????
? 703
??????????? 2
Where Weight is in pounds and Height is in inches. Write a MATLAB user-defined function that
computes the value for BMI when Weight and Height are used as inputs.
4. The equation for the area of a circle is ?? = ????2. Create a user-defined function that calculates the
area of a circle as a function of its radius. The function should display the result in the command
window as
The area of a circle with radius XXXX is XXXXX.
5. Newtons method is an iterative method used to find the roots of complicated functions. It is defined
as:
Spring 2019
??1 = ??0 ?
??(??0 )
?? ? (??0 )
Where ??0 is the users initial guess for the root of the function. Create a user-defined function to
calculate the value of ??1 given ??(??) = ?? 2 ? 5, and ??0 = 2. Where x1 is the output and x0 is the input of
the function.
Purchase answer to see full
attachment
Economic Debate- Progressive Income Tax For this Economic Debate, we are going to discuss the…
TOPIC: Going Global Discussion Thread 1 (initial post due Wednesday for full credit) Please note:…
Assignment Topic This week will culminate in the creation of a narrated PowerPoint to create…
The Assignment must be submitted on Blackboard (WORD format only) via allocated folder. Assignments submitted…
you need to post your 2-page information flier to share with your Final Project Group.…
discussion: Discuss the methods used at your company to measure and ensure quality products and…