Problem 53775. Total resistance of a network of resistors in series and parallel
What is the total resistance of a network of resistors in series and in parallel?
A matrix R contains the resistances (in Ohm) of resistors, which are connected in series and in parallel:
The network consists of one or more 'strings' of resistors in series, each of which is connected in parallel with the others. Each row of the matrix contains the resistances of the resistors in that 'string', and all rows of resistors are connected in parallel. An input matrix may thus be represented as:
Since there must be as many columns in the matrix as the maximum number of resistors in any 'string', NaNs are used to 'pad out' any row in which that string has fewer resistors.
The simple case in the figure above would be represented as:
Your function should take the matrix R as its input and return the total resistance (in Ohm) of the network of resistors.
Solution CommentsShow comments
Problem Recent Solvers21