Question: How to use a previous result (output) on a definition of a new function?


I am definitely missing something on how Maple deals with functions and outputs.  I need to define a new function using an output of a previous calculation but I didn't figure out how to do it. 


aux := rsolve({y(0) = y0, y(n) = 4*y(n-1)*(1-y(n-1))}, y(n));
solucao := (n,y0)-> aux;

Neither n nor y0 are replaced for the given values.  What am I missing?


Many thanks




Please Wait...