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

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


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


circuit :: ESim -> [Device]       
circuit z0 = (res1 1 1 0 10.0 z0) ++
             (res1 2 2 0 10.0 z0) ++
             (ind1 3 1 2 1e-2 z0) ++
             (vsrc1 4 1 0 10.0 z0)            
                                                       
z = dcOP1 0.0 [] [] circuit
k = dcTran1 0.0 5.0e-4 6.0e-3 [] [] circuit 

main = trPrint [0,1,2] k

{- 

-}

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].