# I want to define a function that has integer power [closed]

I am defining this function: f[x_] = kr*g[x] + (c^l*x^l)/(KIR + c^l*x^l) But I want to make l bigger than 0, so if I evaluate f[0] I want to get kr*g[0]. However, I get the expression evaluated at 0, for example 0^l instead of 0. Thanks for the help

-

## closed as unclear what you're asking by Kuba, Artes, Yves Klett, belisarius, m_goldbergOct 28 '13 at 15:11

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

f[x_, l_Integer] := krg[x] + (c^lx^l)/(KIR + c^l*x^l) –  Mike Honeychurch Oct 28 '13 at 6:08

You can use Simplify here
f[x_] := Simplify[kr*g[x] + (c^l*x^l)/(KIR + c^l*x^l), Assumptions -> {l > 0}]

kr g[0]

f[x_] := kr*g[x] + (c^l*x^l)/(KIR + c^l*x^l) /. {0^_ -> 0}