ouzhonghui
(Jacques Ou)
October 31, 2017, 9:25am
1
Consider the following code:
{{c20 -> Function[{u},
2^-Pe (2^Pe cinf - B1[1] Gamma[-(Pe/2), u/4])]}}
I want to apply the command Simplify, Normal etc. to the function inside,
2^-Pe (2^Pe cinf - B1[1] Gamma[-(Pe/2), u/4])
Please tell me the way.
Thanks.
Here is one way:
{{c20 -> Function[{u},
2^-Pe (2^Pe cinf - B1[1] Gamma[-(Pe/2), u/4])]}};
myFunction = c20 /. %[[1]];
Simplify[myFunction[u]]
carlw
(Carl Woll)
October 31, 2017, 10:34pm
3
You could try using Activate /Inactivate . For instance:
Activate @ Simplify @ Inactivate[
{{c20->Function[{u},2^-Pe (2^Pe cinf-B1[1] Gamma[-(Pe/2),u/4])]}},
Function
]
(* {{c20 -> Function[{u}, cinf - 2^-Pe B1[1] Gamma[-(Pe/2), u/4]]}} *)