Report Typos and Errors
This example demonstrates the use of DMNetwork interface for solving a simple electric circuit.
The example can be found in p.150 of 'Strang, Gilbert. Computational Science and Engineering. Wellesley, MA'.
This example is based on ex1 using MATNEST.
This example is based on ex1.c, but generates a random network of chosen sizes and parameters.
Usage: -n determines number of nodes. The nonnegative seed can be specified with the flag -seed, otherwise the program generates a random seed.