Please i need your help to code a recursive function.
udisc(k)=udisk(k-1) – tau*M*sign(phi(k));
where tau & M are positive constants and phi(k) is a function
Thank you so much
Best regards
Best Answer
You need to know the value of udisk for one k, like k=0 to define an end of the recursion. Assuming that udisk(0) = 1, the definition is straightforward
Best Answer