Talk:Forward difference: Difference between revisions

From Rosetta Code
Content added Content deleted
No edit summary
(Continuing...)
Line 1: Line 1:
What's the forward difference of one element? --[[User:Mwn3d|Mwn3d]] 07:17, 11 January 2008 (MST)
What's the forward difference of one element? --[[User:Mwn3d|Mwn3d]] 07:17, 11 January 2008 (MST)
:With regard to pure mathematics I suppose it is undefined. It is natural, however, to extend it by definition so that the forward difference of a list of one element is the empty list. That's how the J code resolves it, too. --[[User:TBH|TBH]] 07:31, 11 January 2008 (MST)
:With regard to pure mathematics I suppose it is undefined. It is natural, however, to extend it by definition so that the forward difference of a list of one element is the empty list. That's how the J code resolves it, too. --[[User:TBH|TBH]] 07:31, 11 January 2008 (MST)
::I guess the FD of an empty list should just be another empty list then? These corner cases always get you. --[[User:Mwn3d|Mwn3d]] 07:39, 11 January 2008 (MST)

Revision as of 14:39, 11 January 2008

What's the forward difference of one element? --Mwn3d 07:17, 11 January 2008 (MST)

With regard to pure mathematics I suppose it is undefined. It is natural, however, to extend it by definition so that the forward difference of a list of one element is the empty list. That's how the J code resolves it, too. --TBH 07:31, 11 January 2008 (MST)
I guess the FD of an empty list should just be another empty list then? These corner cases always get you. --Mwn3d 07:39, 11 January 2008 (MST)