Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

According to matlab 10. Write a program to plot the function y 3x-26x+12. first and second derivatives for -2sxS4, in all in the same plot

According to matlab image text in transcribed
10. Write a program to plot the function y 3x-26x+12. first and second derivatives for -2sxS4, in all in the same plot with different colours. Hint: use hold on. 11. Write a program to plot the function y 2 for 0.1sx s60, in all in the same figre one with linear axes, one with a log scale for the y axis, one with a log scale for the x axis, an done with a log scale on both axes. Then add axis labels to the plots. Hint: use subplot command. 12. write a program that calculates the tip based on amount of bills, using the following rules and the variable bill" bill is less than 15TL bill is between 15 TL and 60 TL Tip is %24 bill is above 60 TL Tip is 2.80 TL * Tip is %30 13. Plot sin(-5x) and cos(3x) over [0,2n], on the same plot with different colours. Then add axis labels and legend to the plot.. Please use hold on command. 14. n-3 or end total total:total+(1M)'i What is the value of total after executing the program? 15. The function sin(x) can be written as a Taylor series by Write a user-defined function file that calcualtes sin(x) by using the Taylor series. For the function name and arguments use y- Taysin(x,n). The input arguments are the angle x in degrees and the n the number of the terms in the series. Use the function to calculate sin(70) using five and 15 terms

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional SQL Server 2000 Database Design

Authors: Louis Davidson

1st Edition

1861004761, 978-1861004765

More Books

Students also viewed these Databases questions