Converting table output and plotting
From: Vince Wong (vincemeister_at_gmail.com)
Date: 06/29/04
- Next message: Paul Abbott: "Re: roots of polynomials"
- Previous message: Scientific Books: "Scientific books: cheap sell-out of the library"
- Next in thread: Daniel Lichtblau: "Re: Converting table output and plotting"
- Reply: Daniel Lichtblau: "Re: Converting table output and plotting"
- Messages sorted by: [ date ] [ thread ]
Date: 28 Jun 2004 19:03:22 -0700
Hello,
I have the following equation:
Table[{v, NSolve[{i == v/r2 + i1, i1==i1(r1+r2)/r2 + a/r2*Log[i1/io +
1] - v/r2} /. {r2 -> 200, r1 -> .025, io -> 10^-9, a -> .05}, {i,
i1}]},{v, 1, 1.2, .1}]//ColumnForm
OUTPUT IS:
{1, {{i->.402, i1->.397}}}
{1.1{{i->1.611,i1->1.60}}}
{1.2,{{i->3.86, i1->3.85}}}
The first terms 1, 1.1,1.2 are Voltage (v) and the second term is
Current (i), the third term is Current1 (i1).
My objective is to vary my equation above and then create the output
in such a form that I can directly plot v vs. i, that is "1st term"
vs. "2nd term". Unfortunately, I don't know how to do this since the
outputs in the table aren't as I like.
Note: My original approach was to write the transcendental equation in
a single form whereby, NSolve[ i == function (v, i) ] Unfortunately,
Mathematica seems to choke on this one. By calculating an additional
(uninteresting) value (namely, v1), it gives me the output I'm looking
for. Again, except that I don't know how to convert this into a set of
numbers that I can plot.
Hopefully this makes sense. Any help would be greatly appreciated.
Thanks,
Vince
- Next message: Paul Abbott: "Re: roots of polynomials"
- Previous message: Scientific Books: "Scientific books: cheap sell-out of the library"
- Next in thread: Daniel Lichtblau: "Re: Converting table output and plotting"
- Reply: Daniel Lichtblau: "Re: Converting table output and plotting"
- Messages sorted by: [ date ] [ thread ]