var Turtle1 var Turtle2 var Is_Turtle

  • Leate_Wonceslace@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    4
    ·
    4 months ago

    What’s wrong with making a recursive function in a recursive function with variables M, m, N, n? It’s perfectly fine when I’m writing infinite series.

    • CanadaPlus@lemmy.sdf.org
      link
      fedilink
      arrow-up
      1
      ·
      3 months ago

      If we’re talking mathematicians, you just know it’s going to be ω-nested recursive functions any moment now. Just be grateful it’s not all n with polynomial subscripts or something.

        • CanadaPlus@lemmy.sdf.org
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          3 months ago

          Uhh, I’m pretty sure I’ve seen that, but I’m not sure where now. Any time you need to access a member of a list or array that’s determined by a polynomial - which by Horner’s rule covers all combinations of multiplications and additions - it would be a possible notation.

          Transfinite algorithms are definitely a topic of research.