~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to examples/intersci-examples/ex9.sce

  • 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
//1-Creating interface source file (matusr.f)
 
2
// from ex9fi.desc file by call to intersci
 
3
// Making object files
 
4
//   Interface file '/tmp/ex9fi.o'
 
5
//   User's files '/tmp/ex9f.o';
 
6
files=G_make(['/tmp/ex9fi.o','/tmp/ex9f.o'],'ex9.dll');
 
7
//2-Link object files .o with addinter
 
8
//addinter(files,'ex9fi',matusr_funs);
 
9
exec('ex9fi.sce');
 
10
//Test Scilab functions:
 
11
//calc7: function with two optional values, a string and a scilab variable.
 
12
bb=33;  //scilab optional variable
 
13
[a,b,c,d]=calc9(10);
 
14
if c<>'toto' then pause,end
 
15
if norm(d-[2,4,6,8])> %eps then pause,end
 
16
if b<>bb then pause,end
 
17
 
 
18
 
 
19
 
 
20
 
 
21
 
 
22
 
 
23
 
 
24
 
 
25
 
 
26