1 Starting With Matlab 2 Creating Arrays 3 Mathematical Operations With Arrays 4 Using Script Files And Managing Data 5 Two-dimensional Plots 6 Programming In Matlab 7 User-defined Functions And Function Files 8 Polynomials, Curve Fitting, And Interpolation 9 Applications In Numerical Analysis 10 Three-dimensional Plots 11 Symbolic Math Chapter1: Starting With Matlab
Chapter Questions Section: Chapter Questions
Problem 1P Problem 2P: Calculate: (a) 8+802.6+e3.53 (b) 175)+733.131/4+550.41 Problem 3P: Calculate: (a) 23+453160.7+log10589006 (b) (36.12.25)(e2.3+20) Problem 4P: Calculate: (a) 3.822.754125+5.2+1.853.5 (b) 2.110615.21053610113 Problem 5P: Calculate: (a)sin0.2cos/6+tan72 (b) (tan64cos15)+sin237cos220 Problem 6P: Define the varialbe z as z = 4.5; than evaluate: (a) 0.44+3.1z2162.3z80.7 (b) z323/z2+17.53 Problem 7P: Define the variable t as t= 3.2; then evalute: (a) 12e2t3.81t3 (b) 6t2+6t2t21 Problem 8P: Define the variable xandy as x = 6.5 and y = 3.8; then evaluate: (a) x2+y22/3+xyyx (b) x+yxy2+2x2xy2 Problem 9P: Define the variables a, b, c, and d as: c= 4.6, d = 1.7, a = cd2, and b=c+acd; then evaluate: (a)... Problem 10P: Two trigonometric identities are given by: (a) cos2xsin2x=12sin2x (b) tanxsinx2tanx=1cosx2 For each... Problem 11P: Two trigonometric identities are given by: (a) sinx+cosx2=1+2sinxcosx (b)... Problem 12P: Define two variables: alpha =8, and beta = 6. Using these variables, show that the following... Problem 13P: Given: x2cosxdx=2xcosx+x22sinx . Use MATLAB to calculaet the following difinite integral:... Problem 14P: A rectangular box has the dimensions shown. (a) Determine the angle BAC to the nearest degree. (b)... Problem 15P: The are length of a segment of a parabola ABC is given by: LABC=a2+4h2+2ha+2ha2+1 Determine LABC if... Problem 16P: The three shown circles, with radius 15 in., 10.5 in., and 4.5 in., are tangent to each other. (a)... Problem 17P: A frustum of cone is filled with ice cream such that the portion above the cone is a hemisphere.... Problem 18P: 18. In the triangle shown a =27 in., b 43 in., c=57 in. Define a, b, and c as variables, and then:... Problem 19P: For the triangle shown, a = 72°, ß=43°, and its perimeter is p = 114 mm. Define a, ß, and p, as... Problem 20P: The distance d from a point P (xp,yp,zp) to the line that passes through the two points A (xA,yA,zA)... Problem 21P: The perimeter of an ellipse can be approximated by: P=(a+b)3(3a+b)(a+3b)a+b Calculate the perimeter... Problem 22P: A total of 4217 eggs have w be packed in boxes that can hold 36 eggs each. By typing one line... Problem 23P: A total of 777 people have to be transported using buses that have 46 seats and vans that have 12... Problem 24P: Change the display to format long g. Assign the number 7E8/13 to a variable, and then use the... Problem 25P: The voltage difference Vabbetween points a and b in the Wheatstone bride circuit is given by:... Problem 26P: The current in a series RCL circuit is given by: I=VR2(L1C)2 Where =2 f. Calculate I for the... Problem 27P: The monthly payment M of a mortgage P for n years with a fixed annual interest rate r can be... Problem 28P: The number of permutations nProf taking r Objects out of n objects without repetition is given by:... Problem 29P: The number of combinations Cn,r of taking r objects out of n objects is given by: aye In the... Problem 30P: The equivalent resistance of two resistors R1and R2connected in parallel is given by Req=R1R2R1+R2 .... Problem 31P: The output voltage Voutin the circuit shown is given by (Millman’s theorem):... Problem 32P: Radioactive decay of carbon-14 is used for estimating the age of organic material. The decay is... Problem 33P: The greatest common divisor is the largest positive integer that divides the numbers without a... Problem 34P: The amount of energy E (in joules) that is released by an earthquake is given by: E=1.741019101.44M... Problem 35P: According to the Doppler effect of light, the perceived wavelength ?p, of a light source with a... Problem 36P: Newton’s law of cooling gives the temperature T(t) of an object at time tin terms of T0, its... Problem 37P: The velocity v and the falling distance d as a function of time of a skydiver that experience the... Problem 38P: Use the Help Window to find a display format that displays the output as a ratio of integers. For... Problem 39P: Gosper’s approximation for factorials is given by: n!=2n+13nnen Use the formula for calculating 19!.... Problem 40P: According to Newton’s law of universal gravitation, the attraction force between two bodies is given... Problem 1P
Related questions
There are two Gaussian curves below (Plots A and B), along with the respective R source codes. Looking at the plots and the source codes provided, identify the parameters of respective Gaussian pdf 's (probability density functions ) and the numeric value of x in the PDF F(x) to express the areas under the curves in terms of F(x). ( Do not calculate those areas. The answers must be like F(x) or 1-F(x) for a relevant value of x.)
Below is the source code and image for part a
Transcribed Image Text: The image depicts a normal distribution curve with a shaded area under the curve. The graph is a standard normal distribution, which is symmetrical and bell-shaped, and represents a probability density function.
- **Axes and Scale**:
- The horizontal axis (x-axis) ranges from -4 to 8. This axis represents the variable for which the normal distribution is plotted.
- The vertical axis (y-axis) ranges from 0.00 to 0.20 and represents the probability density.
- **Curve**:
- The curve follows the characteristic bell shape of a normal distribution, peaking at the mean.
- **Shaded Area**:
- The shaded area under the curve extends from approximately 0 to 3 on the x-axis. The shading likely represents the probability or proportion of the data that falls between these values. The total area under the normal distribution curve sums to 1, indicating probabilities across the distribution.
This graph is useful in statistics for understanding how data is distributed around the mean and for calculating probabilities for continuous random variables within a specified range.
Transcribed Image Text: ### PLOT-A
The following R code generates a plot that visualizes a portion of a normal distribution curve and fills a specified area with color.
```r
x <- seq(-4,8,0.01) # Creates a sequence of x values from -4 to 8 in increments of 0.01
y <- -dnorm(x,2.2,1.9) # Computes the negative density of a normal distribution with mean 2.2 and standard deviation 1.9
plot(x,y,type = "l") # Plots y against x as a line graph
polygon( # Draws a polygon to highlight a specific area under the curve
c(x[x > 0],0), # X coordinates: values where x is greater than 0, ending at 0
c(y[x > 0],y[x == -4]), # Y coordinates: corresponding y values for x > 0, ending at y value when x = -4
col = "honeydew2" # Fills the polygon with the color "honeydew2"
)
```
#### Explanation of the plot:
- **X-axis:** Represents the values from -4 to 8.
- **Y-axis:** Corresponds to the negative normal distribution values calculated for each x.
- **Curve:** Illustrates the shape of the normal distribution, inverted due to the negative sign.
- **Filled Area:** The polygon function shades the area for x > 0 up to x = -4, using the color "honeydew2" to visually distinguish this part of the distribution.
This visualization can be useful for emphasizing specific sections of a probability distribution, such as the tail of the distribution beyond a certain point.
Expression, rule, or law that gives the relationship between an independent variable and dependent variable. Some important types of functions are injective function, surjective function, polynomial function, and inverse function.
Expert Solution
From the first line of the code we can see that,
x<- seq(-4,8,0.01)
The lower limit of x is -4 and upper limit is 8. The value of x is between- and 8. From the second line,
y<- dnorm(x,2.2,1.9)
we know that, y<-dnorm(x,mean,standard deviation)
So, mean= 2.2 and standard deviation = 1.9
Step by step
Solved in 3 steps