Chapter 5 4ed

Chapter 5

Solved Problems

Problem 1

Script File:

x=linspace(-3,5,200); y=(x+5).^2./(4+3*x.^2); plot(x,y) xlabel('x') ylabel('y')

y

7

6

5

4

3

2

1

0

-3

-2

-1

0

1

2

3

4

5

x

1

2

Problem 2

Script File:

Chapter 5: Solved Problems

fplot('5*sin(x)/(x+exp(-0.75*x))',[-5 10]) xlabel('x') ylabel('y')

y

3

2

1

0

-1

-2

-3

-4

-5

0

5

10

x

Chapter 5: Solved Problems

3

Problem 3

Script file:

x1=linspace(0,3,200); y1=(x1+1).*(x1-2).*(2*x1-0.25)-exp(x1); x2=linspace(-3,6,200); y2=(x2+1).*(x2-2).*(2*x2-0.25)-exp(x2); plot(x1,y1) xlabel('x') ylabel('y') figure plot(x2,y2) xlabel('x') ylabel('y')

y

4

2

0

-2

-4

-6

-8

-10

0

0.5

1

1.5

2

2.5

3

x

y

40

20

0

-20

-40

-60

-80

-3

-2

-1

0

1

2

3

4

5

6

x

4

Chapter 5: Solved Problems

Problem 4

Script File:

plot('sqrt(abs(cos(3*x)))+sin(4*x)^2',[-2 2]) xlabel('x') ylabel('y'))

y

2

1.8

1.6

1.4

1.2

1

0.8

0.6

0.4

0.2

0

-2

-1.5

-1

-0.5

0

0.5

1

1.5

2

x

Chapter 5: Solved Problems

5

Problem 5

Script File:

fplot('exp(2*sin(0.4*x))*5*cos(4*x)',[-20 30]) xlabel('x') ylabel('y')

y

40

30

20

10

0

-10

-20

-30

-40

-20 -15 -10

-5

0

5

10

15

20

25

30

x

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download