Equation help needed...

Official support for: sonicbirth.sourceforge.net
Post Reply New Topic
RELATED
PRODUCTS

Post

I'd appreciate any help implementing an equation to generate a multistage exponential output from a linear input, either in SB1 (or more likely SB2..!)


v(t)=V0+A1exp (-t/tau1)+A2exp (-t/tau2)+A3 exp (-t/tautau1)

v is the voltage , t is time, tau1, tau2 and tau3 are characteristic decay times, and A1, A2, A3 and V0 are constants.

The three time constants have values of approximately 5-10 ms, 50-100 ms, and 800-1500 ms respectively

A1, A2 and A3 should be available as input variables as should "tau".

I've tried v(t)=i7+i1exp (-i6/i4)+i2exp (-i6/i5)+i3exp (-i6/i4)

Should I do this piecemeal, rather than one large (and very "red" ) equation?

Post

zmix wrote:i7+i1exp (-i6/i4)+i2exp (-i6/i5)+i3exp (-i6/i4)
maybe i7+i1*exp(-i6/i4)+i2*exp(-i6/i5)+i3*exp(-i6/i4)

Post

zmix wrote:Should I do this piecemeal, rather than one large (and very "red" ) equation?
Red ?

Image

Post

Kewl wrote:
zmix wrote:i7+i1exp (-i6/i4)+i2exp (-i6/i5)+i3exp (-i6/i4)
maybe i7+i1*exp(-i6/i4)+i2*exp(-i6/i5)+i3*exp(-i6/i4)
Thanks Kewl, I had the syntax wrong! the * is the key...!

Post Reply

Return to “SonicBirth”