clc;
clear all;
YOUR_NAME = @(x)
(cos(.5*x)-exp(cos(x-Day)))./sqrt(Month-x.^2);
fprintf('The y-intercept = %0.9f\n',YOUR_NAME(0));
a = -1;b = 1;
u=YOUR_NAME(a);
v=YOUR_NAME(b);
err=abs(b-a);
while (err>10^-9)
x0=b-v*(b-a)/(v-u);
a=b;
u=v;
b=x0;
v=YOUR_NAME(b);
err=abs(b-a);
end
fprintf('The x-intercept = %0.9f\n',b);
x = -2:0.00001:2;
f = YOUR_NAME(x);
I = imag(f) == 0;
Xl = min(x(I));
Xr = max(x(I));
fprintf('The domain is [%0.4f %0.4f]\n',Xl,Xr);
Alhasn_min = min(YOUR_NAME(x(I)));
Alhasn_max = max(YOUR_NAME(x(I)));
fprintf('The range of the function in the selected domain [%0.4f
%0.4f]\n',Alhasn_min,Alhasn_max);
Fun = @(x) YOUR_NAME(x)-sin(x);
a = -1;b = 1;
u=Fun(a);
v=Fun(b);
err=abs(b-a);
while (err>10^-5)
x0=b-v*(b-a)/(v-u);
a=b;
u=v;
b=x0;
v=Fun(b);
err=abs(b-a);
end
if(Fun(-sqrt(2)) > 0)
fprintf('Alhasn_(x)> sin(x) is true for x in [%0.4f
%0.4f]\n',-sqrt(2),b);
elseif(Fun(sqrt(2)) > 0)
fprintf('Alhasn_(x)> sin(x) is true for x in [%0.4f
%0.4f]\n',b,sqrt(2));
end
OUTPUT
The y-intercept = 0.376313459
The x-intercept = 0.783889597
The domain is [-1.4142 1.4142]
The range of the function in the selected domain [-292.4427
92.2908]
YOUR_NAME_(x)> sin(x) is true for x in [-1.4142 0.2966]
Comprehension Check 1. Write commands to solve the equation e <x+2 by graphing functions and determining...
6. Use Matlab to find the point(s) of intersection (if any) between the functions f()10sin(2 5) and g(x)-6r-4, accurate to two decimal places. Write down the Matlab commands to produce the x-vector, the vectors representing the f- and g-values and the plot of the graphs. 7. Use Matlab to find the minimum (accurate to two decimal places) of the function in the interval (0,π). 6. Use Matlab to find the point(s) of intersection (if any) between the functions f()10sin(2 5)...
PLEASE USE MATLAB COMMANDS THANK YOU Use Matlab to graph the functions f(x) = 3xsin(3x) and g(x)= 12 - 2x² so that you can read off the point(s) of intersection (if any), accurate up to two decimal places. 1) Write down the Matlab command(s) you used to create the x-vector. 2) Write down the Matlab command(s) you used to produce the vectors containing the f- and g-function values. 3) Write down the Matlab command(s) you used to plot the graphs....
1: Solve the following inequalities and express your answer in interval notation. (10 points) x? - 5x-620 Solution 1: 2: Solve the absolute value inequality; 3 - 2x > 9. Write the solution in interval notation. (10 points) Solution 2: (5 points each) 3: For the following function, 3x + 4 f(x)= x+2 3.1: State the domain of the function, Solution 3.1: 3.2: Find x- and y-intercepts (if any), Solution 3.2: 4: Given f(x)=x+5x+2, evaluate the following expression: f(x+h)-f(x) +0....
1. Use sign analysis to solve x2 + 2x 53 and write interval notation. the your inequality it bord answer in 2. Simplify cos (1 - 0) 3. Solve 2 (x+2) = 168 analytically. Do not round. 4. Rewrite In (2x) + In (1) + logarithm. 4 In () 6) - 10(x) as a single
Need f-e a large airine wants to estimate r. To accomplish this, the 2) Unoccupied seats on flights cause airtines to lose revenue. Suppose its average number of unoccupied sests per flights over the past yea records of 225 flights are randomly selected, and the number of unoccupied seats is noted for each of the sampled flights. Descriptive statistics for the data are as follows: 11.596 and s 4.103. Give a point estimate for the target parameter u. What symbol...
3.6.13 Solve the inequality f(x)20, where f(x) = 2(x - 1)(x + 4), by using the graph of the function The solution set for f(x) 20 is (Type your answer in interval notation.) 120- 80- 40- -6 2 4 FO 8 -2 -40- 180 -120-
[1+1 Write a program to solve the equation y = sqrt(5 {x}^{5) + 3 {x}^{4} + 10). a) In the function, you should take the value of the integer from the user b) The value of x should be between 1 and 9. Make sure that the user has not entered a valid value. c) Calculate the value according to the formula and print it on the screen. d) The value of the output variable y should be printed only...
(a) Approximate fby a Taylor polynomial with degree n at the number a. T3(x)-11n( 4) + (1 + In(4))(x-1) +に1)?+ 1)i(-1) (b) Use Taylor's Inequality to estimate the accuracy of the approximation fx)- Tne) when x lies in the given interval. (Round your answer to four decimal places.) (c) Check your result in part (b) by graphing |Rn(x) 0.004 0.8 1.4 0.003 -0.001 0.002 -0.002 0.001 -0.003 -0.004 1.2 1.4 0.8 1.0 0.004 1.4 1.0 -0.001 0.003 -0.002 0.002 0.003...
Consider the following function. /(x)=x-5, a= 1, n= 2, 0.8SXS 1.2 (a) Approximate f by a Taylor polynomial with degree n at the number a T2(x) = (b) Use Taylor's Inequality to estimate the accuracy of the approximation x) ~ Tn(x) when x lies in the given interval. (Round your answer to six decimal places.) (c) Check your result in part (b) by graphing Rn(x) 0.6 0.4 0.2 0.6 0.4 0.2 0.9 0.9 1.2 -0.2 -0.4 -0.6 -0.2 -0.4 -0.6...
Please solve for part (b) and (c) thank you! 1. Consider the function f(x) = e-x defined on the interval 0 < x < 1. (a) Give an odd and an even extension of this function onto the interval -1 < x < 1. Your answer can be in the form of an expression, or as a clearly labelled graph. [2 marks] (b) Obtain the Fourier sine and cosine representation for the functions found above. Hint: use integration by parts....