I have a "times" function. I'd like to create a power function using it. It should look like this for an 6th power:
times[x, times[x, times[x, times[x, times[x, x]]]]]
I can't seem to figure out how to use Nest to get this. I'd like to create my power function to be something like p[x,n].
Comments
Post a Comment