*To*: debian-user@lists.debian.org*Subject*: Re: Need a calculator that knows about coulombs*From*: Gene Heskett <gheskett@shentel.net>*Date*: Tue, 29 Dec 2015 10:42:21 -0500*Message-id*: <[🔎] 201512291042.21341.gheskett@shentel.net>*In-reply-to*: <[🔎] CAAr43iPqJKkANVAgQs-nGm3PJJBfsxDGdN11y3=-0isskVxRGQ@mail.gmail.com>*References*: <[🔎] 201512222009.55535.gheskett@shentel.net> <[🔎] CAAr43iMhms9bSZ8qKfaLkUrNy0i-KCjaNi=GOgoMDemBgT3avA@mail.gmail.com> <[🔎] CAAr43iPqJKkANVAgQs-nGm3PJJBfsxDGdN11y3=-0isskVxRGQ@mail.gmail.com>

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>

**References**:**Need a calculator that knows about coulombs***From:*Gene Heskett <gheskett@shentel.net>

**Re: Need a calculator that knows about coulombs***From:*Joel Rees <joel.rees@gmail.com>

**Re: Need a calculator that knows about coulombs***From:*Joel Rees <joel.rees@gmail.com>

- Prev by Date:
**Re: HAL** - Next by Date:
**Avermedia Tuner Volar HD Green USB** - Previous by thread:
**Re: Need a calculator that knows about coulombs** - Next by thread:
**removing TexLive Docs packages** - Index(es):