Rank of Permutation

Description:Computes the rank (lexicographic index) of a permutation, or returns a permutation (as a list) given the rank. The rank assumes 1-based lists, i.e. a sorted list has the rank 1. For the HP-48, the maximum length of the permutation list is 14. For the 49 and 50, the length is limited only by memory if used in Exact mode. Requires ListExt on the 49 series.
Author:John Keith
Downloaded file size:3,334 bytes
Size on calculator:1 KB
Platforms:49/50 48  
User rating:Not yet rated (you must be logged in to vote)
Primary category:Math/Numeric
File date:2024-05-01 15:11:56
Creation date:2024-05-01
Source code:Included
Download count:76
Version history:2024-06-06: Updated (no version number specified)
2023-09-24: Added to site
Archive contents:
  Length      Date    Time    Name
---------  ---------- -----   ----
      537  2024-05-01 15:06   RANKPERM.48
      441  2024-05-01 15:06   RANKPERM.49
     9097  2024-05-01 15:11   rankperm.html
---------                     -------
    10075                     3 files
User comments:

No comments at this time.

You must be logged in to add your own comment.

Part of the HP Calculator Archive,
Copyright 1997-2024 Eric Rechlin.