Graphics Programs Reference
In-Depth Information
fzero(char(subs(g, [I0, VT], [(1/2)*10ˆ(-5), .0025])),
[0, 1.5])
ans =
0.0142
Not surprisingly, the voltage goes up slightly.
(c)
fzero(char(subs(g, [I0, VT], [10ˆ(-5), .0025/2])), [0, 1.5])
??? Error using ==> fzero
Function values at interval endpoints must be finite and
real.
The problem is that the values of the exponential are too big at the
right-hand endpoint of the test interval. We have to specify an interval
big enoughto catchthe solution, but small enoughto prevent the
exponential from blowing up too drastically at the right endpoint. This
will be the case even more dramatically in part (e) below.
fzero(char(subs(g, [I0, VT], [10ˆ(-5), .0025/2])), [0, 0.5])
ans =
0.0063
This time the voltage goes down.
(d)
Next we halve both:
fzero(char(subs(g, [I0, VT], [(1/2)*10ˆ(-5), .0025/2])), [0,
0.5])
ans =
0.0071
The voltage is less than in part (b) but more than in part (c).
(e)
syms u
h = subs(g, [I0, VT], [10ˆ(-5)*u, 0.0025*u])
Search WWH ::




Custom Search