Returns the numerator of a transfer or of a detector voltage or current. :return: SLiCAP results object of which the following attributes with be set as a result of this instruction: :rtype: SLiCAP.SLiCAPinstruction.instruction object **Return value attri
(cir, source='circuit', detector='circuit', lgref='circuit',
transfer='gain', convtype=None, pardefs=None, numeric=False,
stepdict=None)
| 526 | return result |
| 527 | |
| 528 | def doNumer(cir, source='circuit', detector='circuit', lgref='circuit', |
| 529 | transfer='gain', convtype=None, pardefs=None, numeric=False, |
| 530 | stepdict=None): |
| 531 | """ |
| 532 | Returns the numerator of a transfer or of a detector voltage or current. |
| 533 | |
| 534 | :return: SLiCAP results object of which the following attributes with be |
| 535 | set as a result of this instruction: |
| 536 | |
| 537 | :rtype: SLiCAP.SLiCAPinstruction.instruction object |
| 538 | |
| 539 | **Return value attributes** |
| 540 | |
| 541 | - doNumer(<circuit>).M: MNA matrix (sympy.Matrix) |
| 542 | - doNumer(<circuit>.Iv: Vector with independent variables (sympy.Matrix) |
| 543 | - doNumer(<circuit>).Dv: Vector with dependent variables (sympy.Matrix) |
| 544 | - doNumer(<circuit>).numer: Numerator of the voltage transfer from V1 to |
| 545 | V_out (sympy.Expr) |
| 546 | |
| 547 | If parameter stepping is applied, all above attributes are lists of values |
| 548 | or expressions for each step. |
| 549 | |
| 550 | **Parameters** |
| 551 | |
| 552 | See section `General instruction format`_. |
| 553 | |
| 554 | **Example** |
| 555 | |
| 556 | .. code-block:: python |
| 557 | |
| 558 | import SLiCAP as sl |
| 559 | sl.initProject("My First RC Network") |
| 560 | # Generate the circuit object from the netlist |
| 561 | cir = sl.makeCircuit("myFirstRCnetwork.cir") |
| 562 | # Obtain the numerator od the voltage transfer from V1 to V_out: |
| 563 | V_gain = sl.doNumer(cir).laplace |
| 564 | |
| 565 | """ |
| 566 | result = _executeInstruction(cir, transfer=transfer, source=source, |
| 567 | detector=detector, lgref=lgref, |
| 568 | convtype=convtype, datatype='numer', |
| 569 | pardefs=pardefs, numeric=numeric, |
| 570 | stepdict=stepdict) |
| 571 | return result |
| 572 | |
| 573 | def doDenom(cir, source='circuit', detector='circuit', lgref='circuit', |
| 574 | transfer='gain', convtype=None, pardefs=None, numeric=False, |
nothing calls this directly
no test coverage detected