Question

In: Computer Science

For all of the graphs below use a vector x ranging from 0 to 10 in steps of 0.1.

For all of the graphs below use a vector x ranging from 0 to 10 in steps of 0.1. Create two additional vectors using the following formulas: yp=x.^2.5 and ym=x.^(-2.5);

[1;2] Create the formula for the derivative of yp (apply the rules of calculus to the formula for yp). Plot yp versus x. Add a straight line at 3 points (at x = 3, 5, 8) with the slope of the line (determined from the derivative) showing that the derivative is the slope of a tangent line at the indicated points.

Solutions

Expert Solution

clc%clears screen
clear all%clears history
close all%closes all files
format long
x=0:0.1:10;
yp=x.^2.5;
g=@(x) 2.5*x.^1.5;
f=@(x) x.^2.5;
xx=2:0.1:9;
y1=f(3)+(xx-3)*g(3);
y2=f(5)+(xx-5)*g(5);
y3=f(8)+(xx-8)*g(8);
plot(x,yp,xx,y1,xx,y2,xx,y3);


Related Solutions

Use MATLAB to create a vector x having six values between 0 and 10 (including the endpoints 0 and 10
Use MATLAB to create a vector x having six values between 0 and 10 (including the endpoints 0 and 10). Create an array A whose rst row contains the values 3x and whose second row contains the values 5x - 20.  
Use Excel to generate a column of x values from 0 to 2.5 in steps of...
Use Excel to generate a column of x values from 0 to 2.5 in steps of 0.05 (that means your column must have numbers like 0, 0.05, 0.1, 0.15, . . . , 2.5). Plot the PDF f(x) on your computer screen for the different values of x mentioned above for the following distributions. (a) Uniform (use A = 0 and B = 2.5) (b) Exponential (use mean = 2) (c) Gamma (use parameters 1.7 and 1.2) (d) Normal (use...
9.2.8 Find the steady-state vector for the transition matrix. 0.6 0.1 0.1 0.4 0.8 0.4 0...
9.2.8 Find the steady-state vector for the transition matrix. 0.6 0.1 0.1 0.4 0.8 0.4 0 0.1 0.5
Data Structures for R studio Create a numeric vector containing 10 random numbers ranging from 1...
Data Structures for R studio Create a numeric vector containing 10 random numbers ranging from 1 to 10000. Validate that the object you created is a vector Give an example of where you might find this in a biologicall data set. Create a 10-member list containg both numeric and character data. Validate that the object you created is a list Give an example of where you might find this in a biologicall data set. Create a data frame that relates...
Below is a proof of Theorem 4.1.1 (b): For the zero vector ⃗0 in any vector...
Below is a proof of Theorem 4.1.1 (b): For the zero vector ⃗0 in any vector space V and k ∈ R, k⃗0 = ⃗0. Justify for each of the eight steps why it is true. k⃗0+k⃗0=k(⃗0+⃗0) = k ⃗0 k⃗0 is in V and therefore −(k⃗0) is in V . It follows that (k⃗0 + k⃗0) + (−k⃗0) = (k⃗0) + (−k⃗0) and thus k⃗0 + (k⃗0 + (−k⃗0)) = (k⃗0) + (−k⃗0). We conclude that k⃗0 + ⃗0...
Consider the following data: x -4 -3 -2 -1 0 P(X=x) 0.2 0.1 0.2 0.1 0.4...
Consider the following data: x -4 -3 -2 -1 0 P(X=x) 0.2 0.1 0.2 0.1 0.4 Step 2 of 5 : Find the variance. Round your answer to one decimal place. Step 3 of 5 : Find the standard deviation. Round your answer to one decimal place.
What is the pH of 0.1 M FeSO4 please show all steps
What is the pH of 0.1 M FeSO4 please show all steps
All graphs must be neat and legible (use a straightedge to draw straight lines). All graphs...
All graphs must be neat and legible (use a straightedge to draw straight lines). All graphs must be labeled appropriately (as instructed in class). You do not need to write any complete sentences. Your graphs and charts are your work for each problem. 1) The following is the amount of hay (in hundreds of pounds) eaten by a sample of 24 elephants. 2.98, 3.05, 3.19, 3.27, 3.45, 3.51, 3.90, 3.93, 4.03, 4.09, 4.10, 4.15, 4.19, 4.46, 4.48, 4.49, 4.50, 4.55,...
Show that projective plane is homeomorphic to sphere modulo from vector x to - vector x
Show that projective plane is homeomorphic to sphere modulo from vector x to - vector x
Given x = [0, 0.05, 0.1, 0.15, 0.20, ... , 0.95, 1] and f(x) = [1,...
Given x = [0, 0.05, 0.1, 0.15, 0.20, ... , 0.95, 1] and f(x) = [1, 1.0053, 1.0212, 1.0475, 1.0841, 1.1308, 1.1873, 1.2532, 1.3282, 1.4117, 1.5033, 1.6023, 1.7083, 1.8205, 1.9382, 2.0607, 2.1873, 2.3172, 2.4495, 2.5835, 2.7183], write a Matlab script that computes the 1st and 2nd derivatives of O(h^2).
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT