Learn R Programming

ResistorArray (version 1.0-7)

ladder: Jacob's ladder of resistors

Description

Resistor network. Consider node 1 to be Earth. Nodes $2\ldots n$ are each connected to node 1 by a resistor. For $1

Usage

ladder(n, x = 1, y = 1, z = NULL)

Arguments

n
Number of nodes
x
Resistance of vertical resistors. Standard recycling rules are used.
y
Resistance of horizontal resistors. Standard recycling rules are used.
z
Resistance of all resistors in the network. If supplied, x and y are discarded.

Value

  • Returns a standard conductance matrix

See Also

cube, series

Examples

Run this code
##Resistance of an infinite Jacob's ladder known to be (sqrt(5)-1)/2:

 phi <- (sqrt(5)-1)/2
 resistance(ladder(20),1,2) - phi
 resistance(ladder(60),1,2) - phi

 Wu(ladder(20))[1,2]-phi

Run the code above in your browser using DataLab