Jump to content

catrahpete

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by catrahpete

  1. Hi,

     

    I've discovered that if I run the following code:

    (list
     (gen-combine '(1/2 1/4) '(1/8 1/16))
     (gen-combine '(1/2 1/3) '(1/4 1/5)))

     

    the result is:

     

    (((1/2 1/8) (1/4 1/16)) ((1/2 1/4) (1/3 1/3 1/3 1/5 1/5 1/5 1/5 1/5)))

     

    whilst I was expecting (and the documentation suggests should be the result):

     

    (((1/2 1/8) (1/4 1/16)) ((1/2 1/4) (1/3 1/5)))

     

    In general any input that is not of the form 1/2^n  (n>1) generates a sequence of the input elements rather than a single instance.

     

    Am I misunderstanding the function or is this a bug?

     

    Many thanks for any assistance.

     

    Pete

×
×
  • Create New...

Important Information

Terms of Use Privacy Policy