[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Need a calculator that knows about coulombs



On Tuesday 29 December 2015 06:03:14 Joel Rees wrote:

> I don't believe I did this.
>
> On Tue, Dec 29, 2015 at 7:56 PM, Joel Rees <joel.rees@gmail.com> wrote:
> > On Tue, Dec 29, 2015 at 6:12 PM, Gene Heskett <gheskett@shentel.net> 
wrote:
> >> A paste of what I entered:
> >>
> >> define vc(vs,t,r,c) {
> >> return vs * (1-e(-t/(r*c)))
> >> }
> >> for ( i=0.0; i<5.0; i += 0.1 ) { print i, ":", vc(120,i,83,.01
> >> ),"\n" } 0:0
> >
> > Sorry I missed that. Probably should stay off the list when I'm in a
> > hurry. Rip the 0:0 off the end and see how that works:
> >
> > for ( i=0.0; i<5.0; i += 0.1 ) { print i, ":", vc(120,i,83,.01
> > ),"\n" }
> >
> > Or you could unpack it  bit:
> >
> > for ( i=0.0; i<5.0; i += 0.1 ) {
> >   print i, ":", vc(120,i,83,.01 ),"\n"
> > }
> >
> > The units should be volts, seconds, ohms, and farads. I'm not
> > positive about farads, but the units were set up so that this
> > equation would work without conversion, as I recall.
> >
> > Adding current and power should look something like
> >
> > scale=5;
> > vs = 120;
> > r = 100000;
> > c = .00001;
> > for ( t=0.0; t<5.0; t += 0.1 ) {
>
> vc = vc(vs,t,r,c );
>
> >   vr = vs - vc;
> >   a = vr / r;
> >   p = vr * a;
> >   print"t: ", t, "  vc:", vc(vs,t,r,c ), "  a: ", a, "  p: ", p, 
> > "\n" }
> >
> >
> > --
> > Joel Rees
> >
> > Be careful when you look at conspiracy.
> > Arm yourself with knowledge of yourself, as well:
> > http://reiisi.blogspot.jp/2011/10/conspiracy-theories.html
>
> scale=5;
> vs = 120;
> r = 100000;
> c = .00001;
> for ( t=0.0; t<5.0; t += 0.1 ) {
>   vc = vc(vs,t,r,c );
>   vr = vs - vc;
>   a = vr / r;
>   p = vr * a;
>   print"t: ", t, "  vc:", vc(vs,t,r,c ), "  a: ", a, "  p: ", p,  "\n"
> }
Thank you Joel, I have learn more about bc than the man page will ever 
teach me.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>


Reply to: