bugGNU Octave - Bugs: bug #55934, typo in the recurrence relation in...

 
 

bug #55934: typo in the recurrence relation in comment of legendre.m

Submitter:  None
Submitted:  Sat 16 Mar 2019 12:44:09 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 16 Mar 2019 04:59:16 PM UTC, comment #1: 

Thank you very much for noticing this. I confirmed this with the Wikipedia article and updated the comment on the default branch

https://hg.savannah.gnu.org/hgweb/octave/rev/c8055304ad21

Mike Miller <mtmiller>
Group Member
Sat 16 Mar 2019 12:44:09 PM UTC, original submission:  

A small typo happens to be found in the comment of legendre.m
when I study the associated Legendre polynomials.

According to the first equation at https://en.wikipedia.org/wiki/Associated_Legendre_polynomials#Recurrence_formula


--- a/scripts/specfun/legendre.m
+++ b/scripts/specfun/legendre.m
@@ -196,7 +196,7 @@

   ## Based on the recurrence relation below
   ##            m                 m              m
-  ## (n-m+1) * P (x) = (2*n+1)*x*P (x)  - (n+1)*P (x)
+  ## (n-m+1) * P (x) = (2*n+1)*x*P (x)  - (n+m)*P (x)
   ##            n+1               n              n-1
   ## http://en.wikipedia.org/wiki/Associated_Legendre_function


Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-16 mtmiller StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code