KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums KX Academy question about rank error in function Reply To: question about rank error in function

  • rocuinneagain

    Member
    May 9, 2024 at 8:29 am

    , rather than ; separating the arguments of fbis. Otherwise runs fine:

    q)fbis:{[c_;x0;p_]{[xn ;c;p] xn-((xn xexp p)-c)%(p*xn xexp p-1)}[;c_;p_]\[x0]}

    q)fbis[2;1;3]

    1

    1.333333

    1.263889

    1.259933

    1.259921

    1.259921