2 ms·
I don't want that, but you can always get there by replacing x by floor(x) everywhere it occurs, or, in strongly typed languages, by declaring the function to t
by Someone 12y ago
I don't want that, but you can always get there by replacing x by floor(x) everywhere it occurs, or, in strongly typed languages, by declaring the function to take an integer value.
For those that dislike taking powers of x, try this in Python:
def f(x):
return 62648012/4**x - 4*(15662003/4**x) + 28
map( f, xrange( 1, 13))