~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to macros/scicos_blocks/Electrical/Capacitor.mo

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
class Capacitor
 
2
        Pin p, n;
 
3
        Real v;
 
4
        parameter Real C "Capacitance";
 
5
equation
 
6
        C*der(v) = p.i;
 
7
        v = p.v - n.v;
 
8
        p.i = -n.i;
 
9
end Capacitor;