Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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

share|improve this question
1  
f[x_, l_Integer] := kr*g[x] + (c^l*x^l)/(KIR + c^l*x^l) –  Mike Honeychurch Oct 28 '13 at 6:08
add comment

closed as unclear what you're asking by Kuba, Artes, Yves Klett, belisarius, m_goldberg Oct 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.

2 Answers

up vote 0 down vote accepted

You can use Simplify here

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

f[0]
kr g[0]
share|improve this answer
add comment
f[x_] := kr*g[x] + (c^l*x^l)/(KIR + c^l*x^l) /. {0^_ -> 0}
share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.