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

« back to all changes in this revision

Viewing changes to macros/m2sci/sci_files/sci_floor.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_floor(tree)
 
2
// File generated from sci_PROTO6.g: PLEASE DO NOT EDIT !
 
3
// Copyright INRIA
 
4
// M2SCI function
 
5
// Conversion function for Matlab floor()
 
6
// Input: tree = Matlab funcall tree
 
7
// Ouput: tree = Scilab equivalent for tree
 
8
// V.C.
 
9
 
 
10
A=getrhs(tree)
 
11
A=convert2double(A)
 
12
tree.rhs=Rhs(A)
 
13
 
 
14
tree.lhs(1).dims=A.dims
 
15
if is_real(A) then
 
16
  tree.lhs(1).type=Type(Double,Real)
 
17
else
 
18
  tree.lhs(1).type=Type(Double,Unknown)
 
19
end
 
20
endfunction