Description Usage Arguments Details Author(s) See Also Examples

Given two points on a regular lattice of electrical nodes joined by unit
resistors (as created by `makefullmatrix()`

), returns the
resistance between the two points, or (optionally) the potentials of
each lattice point when unit current is fed into the first node, and the
second is earthed.

1 2 | ```
array.resistance(x.offset, y.offset, rows.of.resistors,
cols.of.resistors, give.pots = FALSE)
``` |

`x.offset` |
Earthed node is at |

`y.offset` |
Earthed node is at |

`rows.of.resistors` |
Number of rows of resistors in the network (positive integer) |

`cols.of.resistors` |
Number of columns of resistors in the network (positive integer) |

`give.pots` |
Boolean, with |

Note that the electrical network is effectively toroidal.

Robin K. S. Hankin

1 2 3 4 5 | ```
jj.approximate <- array.resistance(1,2,15,17,give=FALSE)
jj.exact <- 4/pi-1/2
print(jj.exact - jj.approximate)
persp(array.resistance(4,0,14,16,give=TRUE),theta=50,r=1e9,expand=0.6)
``` |

RobinHankin/ResistorArray documentation built on May 24, 2019, 8:50 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.