Jump to content

Resistor mesh: Difference between revisions

m
Line 1,272:
=={{header|Mathematica}}==
{{works with|Mathematica|8.0}}
 
<break>
 
Use <b>KirchhoffMatrix</b>, <b>PseudoInverse</b>, and <b>GridGraph</b> to compute the resistance between <em>any</em> two nodes in an <em>m</em> by <em>n</em> grid to the desired precision.
Line 1,307 ⟶ 1,305:
 
Alternative implementation using <b>GridGraph</b>.
 
<break>
 
<lang mathematica>graphresistor[g_, a_, b_] :=
Cookies help us deliver our services. By using our services, you agree to our use of cookies.