Resistance calculator: Difference between revisions
Content added Content deleted
SqrtNegInf (talk | contribs) (Added Perl example) |
SqrtNegInf (talk | contribs) m (→Infix: added output) |
||
Line 529: | Line 529: | ||
say ' Ohm Volt Ampere Watt Network tree'; |
say ' Ohm Volt Ampere Watt Network tree'; |
||
$node.report;</lang> |
$node.report;</lang> |
||
{{out}} |
|||
<pre> Ohm Volt Ampere Watt Network tree |
|||
10.000 18.000 1.800 32.400 | + |
|||
4.000 7.200 1.800 12.960 | | * |
|||
8.000 7.200 0.900 6.480 | | | + |
|||
4.000 3.600 0.900 3.240 | | | | * |
|||
8.000 3.600 0.450 1.620 | | | | | + |
|||
4.000 1.800 0.450 0.810 | | | | | | * |
|||
12.000 1.800 0.150 0.270 | | | | | | | + |
|||
4.000 0.600 0.150 0.090 | | | | | | | | * |
|||
12.000 0.600 0.050 0.030 | | | | | | | | | + |
|||
10.000 0.500 0.050 0.025 | | | | | | | | | | r |
|||
2.000 0.100 0.050 0.005 | | | | | | | | | | r |
|||
6.000 0.600 0.100 0.060 | | | | | | | | | r |
|||
8.000 1.200 0.150 0.180 | | | | | | | | r |
|||
6.000 1.800 0.300 0.540 | | | | | | | r |
|||
4.000 1.800 0.450 0.810 | | | | | | r |
|||
8.000 3.600 0.450 1.620 | | | | | r |
|||
4.000 3.600 0.900 3.240 | | | | r |
|||
8.000 7.200 0.900 6.480 | | | r |
|||
6.000 10.800 1.800 19.440 | | r</pre> |
|||
=={{header|Python}}== |
=={{header|Python}}== |