ex_transistor: The Transistor Amplifier, Index 1 DAE In deTestSet: Test Set for Differential Equations

Description

Electrical circuit model for the transistor amplifier.

It is an index 1 DAE, 8 equations

Usage

 1 2 3 transistor (times = seq(0, 0.2, 0.001), yini = NULL, dyini = NULL, parms = list(), printmescd = TRUE, method = mebdfi, atol = 1e-6, rtol = 1e-6, maxsteps = 1e5, ...)

Arguments

 yini the initial (state) values for the DE system. If y has a name attribute, the names will be used to label the output matrix. dyini the initial derivatives of the state variables of the DE system. times time sequence for which output is wanted; the first value of times must be the initial time. parms list of parameters that overrule the default parameter values method the solver to use maxsteps maximal number of steps per output interval taken by the solver atol absolute error tolerance, either a scalar or a vector, one value for each y. rtol relative error tolerance, either a scalar or a vector, one value for each y, printmescd if TRUE the mixed error significant digits computed using the reference solution at time 1e13 are printed ... additional arguments passed to the solver .

Details

The default parameters are: ub=6, uf=0.026, alpha=0.99, beta=1e-6, r0=1000, r1=9000, r2=9000, r3=9000, r4 = 9000, r5=9000, r6=9000, r7=9000, r8 = 9000, r9 = 9000, c1=1e-6, c2=2e-6, c3=3e-6, c4=4e-6, c5=5e-6

Value

A matrix of class deSolve with up to as many rows as elements in times and as many columns as elements in yini, plus an additional column (the first) for the time value.

There will be one row for each element in times unless the solver returns with an unrecoverable error. If yini has a names attribute, it will be used to label the columns of the output value.

Note

This model is implemented in FORTRAN

Author(s)

Karline Soetaert <[email protected]>

Francesca Mazzia

Examples

 1 2 3 4 out <- transistor() plot(out, lwd = 2) out[nrow(out),-1]-reference("transistor")

Example output

Transistor Amplifier
Solved with mebdfi
Using rtol = 1e-06, atol=1e-06
Mixed error significant digits:
6.635059
1             2             3             4             5
1.207393e-12 -1.036504e-12  2.868816e-13  6.081423e-08 -3.180869e-08
6             7             8
-7.055646e-08  2.310026e-07 -5.183302e-07

deTestSet documentation built on May 29, 2017, 2:56 p.m.