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

« back to all changes in this revision

Viewing changes to demos/dae/dae2.dem

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright INRIA
 
2
 
 
3
mode(-1)
 
4
deff("[]=demoexc(fil)","exec(""SCI/demos/dae/""+fil)")
 
5
 
 
6
x_message(["Modeling of a sliding dumped pendulum";
 
7
           "  using Lagrange formulation";
 
8
           "You can choose the curve on which the pendulum slides"]);
 
9
while %t do
 
10
  n=x_choose(["Parabola";"Upside down camel"],..
 
11
      "Choose a curve");
 
12
  select n
 
13
  case 0
 
14
    return
 
15
  case 1
 
16
    demoexc("pendg1.sce");
 
17
  case 2
 
18
    demoexc("pendg2.sce");
 
19
  case 3
 
20
    demoexc("pendg3.sce");
 
21
  end
 
22
end