Write a function perim that receives the radius r of a circle and calculates and returns the perimeter p of the circle (p = 2 * π * r). a) def perim(r): b) perim(r): c) def perim_circle(r): d) def calculate_perimeter(r):

Answers

Answer 1
Answer:

Answer:

Write a function perim that receives the radius r of a circle, and calculates and returns the perimeter P of the circle (P = 2 π r). Here are examples of using the function:

>>perimeter = perim(5.3)

perimeter =33.3009

>>fprintf(‘The perimeter is %.1f\n’, perim(4))

The perimeter is 25.1

>>help perim

Calculates the perimeter of a circle

Renewable energy sources, such as biomass, are gaining increasing attention. Biomass energy units include megawatt hours (MWh) and gigajoules (GJ). One MWh is equivalent to 3.6 GJ. For example, 1 cubic meter of wood chips produces 1 MWh.

Step-by-step solution

Step 1 of 3

The perimeter of a circle is,

Here,

r is the radius of the circle and

P is the perimeter of the circle.

Chapter 3, Problem 25E is solved.

View this answer

View a sample solution

Back to top

Corresponding textbook

MATLAB | 3rd Edition

MATLAB | 3rd Edition

9780124058767

ISBN:

0124058760

Authors:

Stormy Attaway

Rent | Buy

MATLAB

(3rd Edition)

Solutions for Chapter 3

Problem 25E: Write a function perim that receives

the radius r of a circle, and calculates and returns

the perimeter P of the circle (P = 2 π r). Here are …

Solutions for problems in chapter 3

Get solutions


Related Questions

Alex has $30,000 in his savings account that earns 10% annually. How much interest will he earn in on year?
Find the exact value of tan A in simplest radical form.
Which equation represents the line that passes through (-8,11) andand (4, 7/2)?A) y = -5/8x + 6 B) y = -5/8x + 16 C) y = 15/2x - 49 D) y = -15/2x + 71
During a certain five-year period the consumer price index decreased by 40% but during the next five-year period it increases by only 20%. which if these conditions must have existed during the second five-year period..A. InflationB. ConflationC. DeflationD. Stagnation
Which algebraic expression is equivalent to this expression?3(2x − 8) – 11xA. -5x – 8B. -17x – 24C. -17x – 24D. -5x – 24

A swimming pool holds 900 cubic meters of water. If its length is 20 meters and its height is 3 meters, find its width

Answers

V=900m³

V=L*w*h

V=20*3*w
V=60*w

60*w=900

w=900/60
w=15m
Volume \ of \ a \ Cuboid: \n \n V=9000 m^3 \nthe \ length : \ l=20 \ m \n the \ height: \ h=3 m \n the \ width : \ w= ? \n \nV= l\cdot w \cdot h \n \n900 =20 \cdot w \cdot 3 \n \n900=60w \ \ / :60\n \n w=15 \ m \n\nAnswer : \ A \ swimming \ holds \ 15 \ meters\ the \ width .

1)In a sample of 100 households, the mean number of hours spent on social networking sites during the month of January was 50 hours. In a much larger study, the standard deviation was determined to be 6 hours.
Assume the population standard deviation is the same. What is the 98% confidence interval for the mean hours devoted to social networking in January?

2)Two studies were completed in Florida. One study in northern Florida involved 2,000 patients; 64% of them experienced flu-like symptoms during the month of December.
The other study, in southern Florida, involved 3,000 patients;
54% of them experienced flu-like symptoms during the same month. Which study has the smallest margin of error for a 95% confidence interval?

Answers

So the following is the answer of the following question in your problem and please do not post to many question in just one posting. 
#1 The 98% confidence interval for the mean hours is between 6 and 50.
#2 The smallest margin of error between the two is southern florida with 1.8% margin of error.

Solve the exponential equation. Use a calculator to obtain a decimal approximation, correct to two decimal places, for the solution. Please explain how you got the answer. e^x=3.4


2^x+6=3

Answers

e^x=3.4\n\nlne^x=ln3.4\n\nx=ln3.4\n\nx\approx1.22


2^(x+6)=3\n\nlog_22^(x+6)=log_23\n\nx+6=log_23\n\nx=log_23-6\n\nx\approx1.58-3\n\nx\approx-1.42

Mauritius island is 2 km due south of its closest point along a straight coastline. Gibril is staying at a private room on the shore that is 6 km east of that point. Gibril is planning to go from the room to the island. Suppose Gibril runs at a rate of 8 kmph and swims at a rate of 3 kmph. How far should Gibril run before swimming to minimize the time it takes to reach the island?

Answers

Answer:

5.19 Km

Step-by-step explanation:

According To the Question,

Suppose he Runs Xkm before swimming to minimize the time it takes to reach the island .

So, he should swim \sqrt{2^(2)+(6-X)^(2)  } Km .

Now The Total Time is t = (X)/(8) + \frac{\sqrt{2^(2)+(6-X)^(2)  } }{3} .

t = (X)/(8) + \frac{\sqrt{X^(2)-12X+40  } }{3}

(dt)/(dX)=1/8 + 1/3 * 1/2 * \frac{2X-12}{\sqrt{X^(2)-12X+40 } }

(dt)/(dX)=1/8 + (1)/(3)  * \frac{X-6}{\sqrt{X^(2)-12X+40 } }

Now Put (dt)/(dX) = 0 , we get

1/8 + (1)/(3)  * \frac{X-6}{\sqrt{X^(2)-12X+40 } } = 0

(1)/(3)  * \frac{X-6}{\sqrt{X^(2)-12X+40 } } = - (1)/(8)

8(X-6)= -3 × {\sqrt{X^(2)-12X+40 }

square on both side,We get

64(X²-12X+36) = 9X² - 108X +360

55X² -660X + 1944 = 0

Apply Shri Dharacharya formula, To Find The Value of 'X'

X =[ - (-660) ±\sqrt{(-660)^(2)-4*55*1944 }  ] ÷ 2×55

X = (660±√7920) / 110

X= (660 - 89 ) / 110  ⇒ (Neglect '+' because it give 749/110 = 6.8 km Which is not possible )

X=571/110 ⇔ 5.19km he Should Run before swimming to minimize the time .

(For Diagram,Please Find In Attachment)

Simplify 7√2 plsssssssss

Answers

Answer:

Step-by-step explanation:

Multiply numerator and denominator by

7

:

Explanation:

2

7

(

7

7

)

=

2

7

7

.

That is considered "rationalized" since the denominator is now a rational number, 7.

Example: Simplify

2

3

12

Simplify the denominator first, then rationalize.

2

3

4

3

=

2

3

2

3

=

2

6

3

and reduce the

2

6

=

1

3

3

.

NOW, multiply top and bottom by

3

:

1

3

3

(

3

3

)

=

3

3

3

=

3

9

.

Shelby, Allen, and Denise printed their digital photos. Each requested the same size prints. Shelby paid $2.70 for 5 prints. Allen paid $3.24 for 11 prints. Denise paid $4.05 for 20 prints

Answers

Answer:

wrote the ordered pairs (5, 2.70),  (11, 3.24), and (20, 4.05)

used two of the ordered pairs to find the slope

wrote the point-slope form for a linear equation

substituted the slope and the coordinates of one of the points to write the equation of the line

Step-by-step explanation:

Person:    Number of prints      Total Cost
Shelby             5                               2.70
Allen               11                              3.24
Denise            20                             4.05

To solve for the variable cost:
11 - 5 = 6
3.24 - 2.70 = 0.54
0.54 / 6 = 0.09 per print

To solve for the fixed cost
0.09 x 5 = 0.45
2.70 - 0.45 = 2.25 

y = 2.25 + 0.09x

y = 2.25 + 0.09(5) = 2.25 + 0.45 = 2.70
y = 2.25 + 0.09(11) = 2.25 + 0.99 = 3.24
y = 2.25 + 0.09(20) = 2.25 + 1.8 = 4.05