1
function [stk,txt,top]=%log2sci()
7
s2=stk(top);s1=stk(top-1);top=top-1
10
if s2(2)=='2'|s2(2)=='3' then s2(1)='('+s2(1)+')',end
11
if s1(2)=='2'|s1(2)=='3' then s1(1)='('+s1(1)+')',end
13
if s1(5)=='4'&s2(5)<>'4' then
16
elseif s2(1)=='0' then
23
if s1(5)<>'4'&s2(5)=='4' then
26
elseif s1(1)=='0' then
35
// special case for nargout.
37
if s1(1)=='nargout'&s2(1)=='0' then
39
elseif s2(1)=='nargout'&s1(1)=='0' then
43
if s1(3)=='1'&s1(4)=='1' then
44
stk=list(s1(1)+ops(iop,1)+s2(1),'3',s2(3),s2(4),'4')
45
elseif s2(3)=='1'&s2(4)=='1' then
46
stk=list(s1(1)+ops(iop,1)+s2(1),'3',s1(3),s1(4),'4')
48
stk=list(s1(1)+ops(iop,1)+s2(1),'3',s1(3),s1(4),'4')