lcapy.oneport.R

class lcapy.oneport.R(Rval='R', **kwargs)

Bases: OnePort

Defines a simple linear one-port resistor

Parameters:

Rval (int or float or complex or str) – Resistance value

args

Resistance value, or, placeholder value ‘R’

Type:

tuple[ int or float or complex or str]

Methods

__init__

current_equation(v[, kind])

Return expression for current through component given applied voltage.

voltage_equation(i[, kind])

Return expression for voltage across component given applied current.

Attributes

is_noiseless

Indicates the resistor is not noiseless.

is_resistor

Indicates the component is a resistor

current_equation(v, kind='t')

Return expression for current through component given applied voltage.

Parameters:
  • v (str or float) – Applied voltage

  • kind (str) –

    The chosen representation of the equation.

    See lcapy.super.Superposition.select() for a description of the different representations supported.

Return type:

Expression for current through the resistor

is_noiseless = False

Indicates the resistor is not noiseless. For noiseless resistor see lcapy.oneport.NR.

Type:

bool

is_resistor = True

Indicates the component is a resistor

Type:

bool

voltage_equation(i, kind='t')

Return expression for voltage across component given applied current.

Parameters:
  • i – Applied current

  • kind (str) –

    The chosen representation of the equation.

    See lcapy.super.Superposition.select() for a description of the different representations supported.