Resistor mesh: Difference between revisions
Content added Content deleted
Line 1,271: | Line 1,271: | ||
=={{header|Mathematica}}== |
=={{header|Mathematica}}== |
||
⚫ | |||
{{works with|Mathematica|8.0}} |
{{works with|Mathematica|8.0}} |
||
<lang mathematica> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
With[{M = PseudoInverse[N[ KirchhoffMatrix[g], prec]]}, |
With[{M = PseudoInverse[N[ KirchhoffMatrix[g], prec]]}, |
||
Outer[Plus, Diagonal[M], Diagonal[M]] - M - Transpose[M] |
Outer[Plus, Diagonal[M], Diagonal[M]] - M - Transpose[M] |