Your Perfect Assignment is Just a Click Away
We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

Math Assignment: Function

Math Assignment: Function

Summer II 2021 MATH 9 Midterm I Aug 16, 2021 You have 24 hours to take this 50 points midterm. Books and notes are allowed. You can not use internet while you are taking your midterm. Create a MATLAB script in an m-file and then executing the file. Name this file MidtermI YourName.m. All commands should be followed by a semi-colon ”;” so that when the script is run, no mid-step gets displayed to the screen. To receive full credit, you must use exact variables names given below, and you must not have any terms getting printed to the screen. The screen only shows the final answer for each problem.

1. (10 points) Write a user-defined MATLAB function (name this function “myfunction YourName”) for the following math function:

y(x) = 0.6x3e?0.47x + 1.5x2e?0.6x

The input to the function is x and the output is y. Write the function such that x can be a vector (use element-by-element operations).

(a) Use the function to calculate y(?2), y(0) and y(4). (b) Use the function to make a plot of the function y(x) for ?5 ? x ? 8 with a blue dotted

line. (c) Marker the point(s) y(x) = 0 with green “*” and text label their coordinates. Add a title

and label the axes.

2. (10 points) The value of ? can be estimated from the expression:

2

? =

? 2

2 · ?

2 + ?

2

2 ·

? 2 +

? 2 + ?

2

2 · · · ·

Write a MATLAB program in a script file that determine ? for any number of terms. The program asks the user to enter the number of terms, and then calculates the corresponding value of ?. Execute the program with 5, 10, and 40 terms. Compare the result with pi. (Use format long.)

3. (10 points) Fibonacci numbers are the numbers in a sequence in which the first two elements are 0 and 1, and the value of each subsequent element is the sum of the previous two elements:

0, 1, 1, 2, 3, 5, 8, 13, · · ·

Write a MATLAB program in a script file that determines and displays the first 20 Fibonacci numbers. Do NOT use MATLAB’s built-in function fibonacci.

4. (10 points) Write a MATLAB program in a script file that finds and displays all the numbers between 100 and 999 whose product of digits is 6 times the sum of the digits. [e.g. 347 since 3×4×7 = 6(3+4+7)]. Use a for-end loop in the program. The loop should start from 100 and end at 999.

5. (10 points) (a) What are the most appropriate MATLAB script to output the following sequences? Please

show the first 10 terms. You should show all 6 terms of “…”. [Hint: the answer is NOT unique! You only need to show one answer of the rest 6 terms.]

? 1

3 ,

1

6 ,?

1

9 ,

1

18 , …

(b) How are you doing so far? What is the most challenging part for you in MATH 9? How can the instructor help you succeed in MATH 9?

You have to upload two m-file(s) (MidtermI YourName.m and/or myfunction YourName.m) on Grade- scope by the end day of Aug 16, 2021.

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: Homework Free only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Homework Free are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Homework Free is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Homework Free, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

Homework Free Org

Your one stop solution for all your online studies solutions. Hire some of the world's highly rated writers to handle your writing assignments. And guess what, you don't have to break the bank.

© 2020 Homework Free Org