Finds networks of resistors to approximate resistances.
Revisión | dcac3c08c0529570331212733fb42ecd6168b095 (tree) |
---|---|
Tiempo | 2020-03-11 15:46:59 |
Autor | AlaskanEmily <emily@alas...> |
Commiter | AlaskanEmily |
Print total resistance of each network when reporting results
@@ -34,7 +34,9 @@ | ||
34 | 34 | %-----------------------------------------------------------------------------% |
35 | 35 | |
36 | 36 | :- pred print(network::in, io.io::di, io.io::uo) is det. |
37 | -print(Network) --> print(0, Network), io.nl, io.nl. | |
37 | +print(Network) --> | |
38 | + io.write_int(value(Network)), io.nl, | |
39 | + print(0, Network), io.nl, io.nl. | |
38 | 40 | |
39 | 41 | %-----------------------------------------------------------------------------% |
40 | 42 |