Home › Forums › KX Academy › question about rank error in function › Reply To: question about rank error in function
-
, 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