Message Boards Message Boards

0
|
5213 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

[?] Use the command Simplify, Normal etc. to the function inside?

Posted 7 years ago

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.

POSTED BY: Jacques Ou
2 Replies

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]]}} *)
POSTED BY: Carl Woll

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]]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract