Menu

#8 Wrong return type for some elements in `mf`

0.6.2
fixed
aditsu
bug (5)
2014-09-02
2014-09-02
Dennis
No

Took me forever to track this down...

The type of all occurrences of the smallest prime factor in the array returned by mf executed on any composite integer is Integer instead of Long.

This causes some strange behavior:

2mf[2]|p   " [2]                                                    ";
3mf[3]|p   " [3]                                                    ";
4mf[2]|p   " [2 2]                                                  ";
6mf[2Z]|p  " [2 3 2]                                                ";
9mf[3]|p   " [3 3]                                                  ";
15mf[Z5]|p " [3 5 3]                                                ";

6mf1=mpp   " 1                                                      ";
6mf0=mpp   " java.lang.RuntimeException: Integer mp not implemented ";

Related

Tickets: #17

Discussion

  • aditsu

    aditsu - 2014-09-02

    Ooops, it looks like all the factors except the last one were Integer. And it also affected mF (including the exponents).
    Good find!
    Fixed now, will release in 0.6.3

     

    Last edit: aditsu 2014-09-02
  • aditsu

    aditsu - 2014-09-02
    • status: open --> fixed
    • assigned_to: aditsu
     
  • Dennis

    Dennis - 2014-09-02

    That was quick. Thanks!

     

Log in to post a comment.