-------------------------------------------------------------------------------- import DC import Circuit circuit :: ([Int],[Double]) -> [Double] -> [Double] -> [([[Int]], Double)] circuit p0 n0 t0 = (res1 1 1 0 2.0 p0 n0 t0) ++ (res1 2 2 0 8.0 p0 n0 t0) ++ (res1 3 2 3 4.0 p0 n0 t0) ++ (vdc1 4 2 1 32.0 p0 n0 t0) ++ (vdc1 5 3 0 20.0 p0 n0 t0) main = circuit ([mOP],[]) [] [] {- array (1,5) [(1,-8.0),(2,24.0),(3,20.0),(4,-4.0),(5,1.0)] -}