Resistance calculator: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 43: | Line 43: | ||
6.000 10.800 1.800 19.440 | r |
6.000 10.800 1.800 19.440 | r |
||
=={{header|Python |
=={{header|Python}}== |
||
<lang python> |
<lang python> |
||
# RPN |
|||
class Resistor : |
class Resistor : |
||
def __init__(self, resistance, a=None, b=None, symbol='r'): |
def __init__(self, resistance, a=None, b=None, symbol='r'): |
||
Line 92: | Line 93: | ||
</lang> |
</lang> |
||
=={{header|Python |
=={{header|Python}}== |
||
<lang python> |
<lang python> |
||
# Infix |
|||
class Resistor : |
class Resistor : |
||
def __init__(self, resistance, a=None, b=None, symbol='r') : |
def __init__(self, resistance, a=None, b=None, symbol='r') : |