Is there a better way to write this:
g(x, n) = D(\frac{x}{n})*(n)
Where D(h), unless already a decimal, expands h into a sum of its places i.e. 47=40+7, then subtracts all of the terms that are greater than or equal to one.
Also, if I have a function, say f(x) = \sqrt{x}, and I only...