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

« back to all changes in this revision

Viewing changes to examples/link-examples/ext7f.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
//Copyright INRIA
 
2
 
 
3
//creating vector c in scilab internal stack
 
4
 
 
5
files=G_make(['/tmp/ext7f.o'],'ext7f.dll');
 
6
link(files,'ext7f');
 
7
 
 
8
a=[1,2,3]; b=[2,3,4];
 
9
//c does not exist (c made by ext7f)
 
10
c1=call('ext7f',a,1,'d',b,2,'d','out',2);
 
11
if norm(c1-b) > %eps then pause,end
 
12
//c now exists
 
13
if norm(c-(a+2*b)) > %eps then pause,end
 
14
//d exists 
 
15
if d<>"test" then pause,end
 
16