Group Abstract Group Abstract

Message Boards Message Boards

0
|
10.8K Views
|
7 Replies
|
6 Total Likes
View groups...
Share
Share this post:

Resistor simulation

Posted 6 years ago

How can we use the software Mathematica to simulate and calculate the equivalent resistance between node A and node B in the 7x7 grid of resistors?

enter image description here

POSTED BY: Thang Nguyen
7 Replies

This problem is potentially dangerous - I do hope that everyone is still well!

POSTED BY: Henrik Schachner
Posted 6 years ago

Thank you so much!

POSTED BY: Thang Nguyen

With our getting into the correctness of the computation itself (I didn't check that) there is an obvious syntax error You forgot using a Module or a Block

So the code should look like

gridresistor[p_, q_, ai_, aj_, bi_, bj_] := 
  Module [{A, B, k, c, V}, A = ConstantArray[0, {p*q, p*q}];
...
]

Yes you are right.Thanks.

POSTED BY: Mariusz Iwaniuk
POSTED BY: Mariusz Iwaniuk
Posted 6 years ago
POSTED BY: Thang Nguyen

My coding in Wolfram language are quite low so I can't help you.

POSTED BY: Mariusz Iwaniuk
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard