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

« back to all changes in this revision

Viewing changes to macros/m2sci/%h2sci.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 [stk,txt,top]=%h2sci()
2
 
//  &
3
 
// Copyright INRIA
4
 
s2=stk(top);s1=stk(top-1);
5
 
txt=[]
6
 
[e1,te1]=s1(1:2);
7
 
[e2,te2]=s2(1:2);
8
 
//
9
 
if te2=='2'|te2=='3' then e2='('+e2+')',end
10
 
if te1=='2'|te1=='3' then e1='('+e1+')',end
11
 
 
12
 
if s1(3)=='1'&s1(4)=='1' then
13
 
  stk=list(e1+'&'+e2,'2',s2(3),s2(4),s1(5))
14
 
elseif s2(3)=='1'&s2(4)=='1' then
15
 
  stk=list(e1+'&'+e2,'2',s1(3),s1(4),s1(5))
16
 
else
17
 
  stk=list(e1+'&'+e2,'2',s1(3),s1(4),s1(5))
18
 
end
19
 
top=top-1
20
 
 
21