Putting an If in my function
- To: mathgroup at smc.vnet.net
- Subject: [mg101039] Putting an If in my function
- From: Lobotomy <labbman at gmail.com>
- Date: Mon, 22 Jun 2009 04:21:53 -0400 (EDT)
Hi, this is my function #5 (1 + ((E^#2 - 1) - (E^#6 - 1))/#3)^(#3*#4) + (#1*((1 + (((E^#2 - 1) - (E^#6 - 1))/#3))^(#3*#4) - 1))/(((E^#2 - 1) - (E^#6 - 1))/#3) &[a, g, f, x, d, w] in the case when w==g the denominator equals zero. in this case i would like to rewrite the formula above to the much simpler d+a*n. How is this done? I've tried If[w == g, % = d + a*n], but this is not working. Another thing is where to put the "If"
- Follow-Ups:
- Re: Putting an If in my function
- From: Leonid Shifrin <lshifr@gmail.com>
- Re: Putting an If in my function