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

« back to all changes in this revision

Viewing changes to macros/m2sci/sci_files/sci_csc.sci

  • 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
function tree=sci_csc(tree)
 
2
// Copyright INRIA
 
3
// M2SCI function
 
4
// Conversion function for Matlab csc()
 
5
// Input: tree = Matlab funcall tree
 
6
// Ouput: tree = Scilab equivalent for tree
 
7
// V.C.
 
8
 
 
9
X=getrhs(tree)
 
10
X=convert2double(X)
 
11
 
 
12
sin_funcall=Funcall("sin",1,list(X),list())
 
13
tree=Operation("./",list(Cste(1),sin_funcall),tree.lhs)
 
14
 
 
15
tree.out(1).dims=X.dims
 
16
tree.out(1).type=Type(Double,X.property)
 
17
endfunction