<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@PMingLiU";
        panose-1:2 2 5 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
p.Example, li.Example, div.Example
        {mso-style-name:Example;
        margin-top:6.0pt;
        margin-right:0cm;
        margin-bottom:6.0pt;
        margin-left:0cm;
        mso-add-space:auto;
        background:#F3F3F3;
        border:none;
        padding:0cm;
        font-size:10.0pt;
        font-family:"Courier New";
        mso-fareast-language:EN-GB;}
p.ExampleCxSpFirst, li.ExampleCxSpFirst, div.ExampleCxSpFirst
        {mso-style-name:ExampleCxSpFirst;
        mso-style-type:export-only;
        margin-top:6.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        mso-add-space:auto;
        background:#F3F3F3;
        border:none;
        padding:0cm;
        font-size:10.0pt;
        font-family:"Courier New";
        mso-fareast-language:EN-GB;}
p.ExampleCxSpMiddle, li.ExampleCxSpMiddle, div.ExampleCxSpMiddle
        {mso-style-name:ExampleCxSpMiddle;
        mso-style-type:export-only;
        margin:0cm;
        margin-bottom:.0001pt;
        mso-add-space:auto;
        background:#F3F3F3;
        border:none;
        padding:0cm;
        font-size:10.0pt;
        font-family:"Courier New";
        mso-fareast-language:EN-GB;}
p.ExampleCxSpLast, li.ExampleCxSpLast, div.ExampleCxSpLast
        {mso-style-name:ExampleCxSpLast;
        mso-style-type:export-only;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:6.0pt;
        margin-left:0cm;
        mso-add-space:auto;
        background:#F3F3F3;
        border:none;
        padding:0cm;
        font-size:10.0pt;
        font-family:"Courier New";
        mso-fareast-language:EN-GB;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-NZ link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>So, I&#8217;m delving into the PREDICT operations in the RPN, and have found something unexpected.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>There are two ways of specifying the shift offsets &#8211; as a (positive) count of shifts and a list; or as a negative count and a base shift.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><div style='mso-element:para-border-div;border:solid windowtext 1.0pt;padding:1.0pt 4.0pt 1.0pt 4.0pt;background:#F3F3F3'><p class=ExampleCxSpFirst style='background:#F3F3F3'><span lang=X-NONE>CDEF:predict1=</span>172800,<span lang=X-NONE>86400</span>,0<span lang=X-NONE>,</span>3<span lang=X-NONE>,3600,x,PREDICT<o:p></o:p></span></p><p class=ExampleCxSpLast style='background:#F3F3F3'><span lang=X-NONE>CDEF:predict2=86400,-</span>3<span lang=X-NONE>,3600,x,PREDICT</span><o:p></o:p></p></div><p class=MsoNormal><span lang=X-NONE><o:p>&nbsp;</o:p></span></p><p class=MsoNormal>My tests (using 1.4.trunk) indicate that the two above have identical behaviour.&nbsp; My question is, is this intended?&nbsp; In particular, when giving a negative&nbsp; shift count, should the resulting list of shifts be based at 0?&nbsp; <o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Given this:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>CDEF:predict=s,-3,w,x,PREDICT<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I had expected to get shifts of s, 2s and 3s.&nbsp; Instead I get 0, s and 2s.&nbsp; Is this intentional, or a feature?<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>As a corollary, it means that these two lines are also equal for ANY value of s<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><div style='mso-element:para-border-div;border:solid windowtext 1.0pt;padding:1.0pt 4.0pt 1.0pt 4.0pt;background:#F3F3F3'><p class=ExampleCxSpFirst style='background:#F3F3F3'><span lang=X-NONE>CDEF:predict1=</span>s<span lang=X-NONE>,</span>-1<span lang=X-NONE>,3600,x,PREDICT<o:p></o:p></span></p><p class=ExampleCxSpLast style='background:#F3F3F3'><span lang=X-NONE>CDEF:predict2=x,</span>3600,TRENDNAN<o:p></o:p></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Thanks,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Steve<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><b>Steve Shipway<o:p></o:p></b></p><p class=MsoNormal>University of Auckland<o:p></o:p></p><p class=MsoNormal><i>UNIX Systems Design Team Lead<o:p></o:p></i></p><p class=MsoNormal><span style='font-size:10.0pt'>s.shipway@auckland.ac.nz<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>+64 (9) 3737 599 ext 86487<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>