Thursday, January 28, 2010

Matlab 7.5 Plp Using Matlab Func "fzero" Solve: 2sin(x)-exp^x/4-1=0 Has Root Interval Of [-7, -5]?

Using Matlab func "fzero" solve: 2sin(x)-exp^x/4-1=0 has root interval of [-7, -5]? - matlab 7.5 plp

If the function

2 sin (x) - exp (x) / 4 to 1

then type

X = fzero (@ (x) 2 * sin (x) - exp (x) / 4 to 1, -6)

In the command window. Here I was -6 in the form of seeds, because it is halfway between the interval. The result should be similar

>> X = fzero (@ (x) 2 * sin (x)-exp (x) / 4-1, -6)

X =

-5.759131252648253

No comments:

Post a Comment