|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.sip.ch04.RC
public class RC
RC demonstrates how to implement the ODE interface for an RC circuit.
| Constructor Summary | |
|---|---|
RC(double _r,
double _c,
double _omega)
Construct an RC circuit with the given values. |
|
| Method Summary | |
|---|---|
void |
getRate(double[] state,
double[] rate)
Get the rate array. |
double |
getSourceVoltage(double t)
Get the source voltage at given time. |
double[] |
getState()
Get state array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RC(double _r,
double _c,
double _omega)
| Method Detail |
|---|
public double[] getState()
getState in interface ODEpublic double getSourceVoltage(double t)
t -
public void getRate(double[] state,
double[] rate)
getRate in interface ODEstate - the state arrayrate - the rate array
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||