Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/escomma/ex14.hs

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


--------------------------------------------------------------------------------
import DC
import Circuit
import Print

import Array

circuit :: ([[Int]],[[Double]]) -> [([[Int]], Double)]
circuit z0 = (npn1 1 2 3 0 z0) ++
             (res1 2 1 2 100.0 z0) ++
             (res1 3 3 4 1000.0 z0) ++
             (vdc1 4 1 0 (15.0) z0) ++
             (vdc1 5 4 0 (5.0) z0)            
                                                       
z = dcOP [15, 0, 5.0, 5.0, 0, 0] [] circuit
main = opPrint z

{-


-}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].