Re: How do declare real functions?
- To: mathgroup at smc.vnet.net
- Subject: [mg67963] Re: How do declare real functions?
- From: Peter Pein <petsie at dordos.net>
- Date: Wed, 19 Jul 2006 05:21:04 -0400 (EDT)
- References: <e9frkc$2m4$1@smc.vnet.net> <e9ibi3$4v4$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
wandering.the.cosmos at gmail.com schrieb: > I have a related question: is it possible in Mathematica to declare my > function to be strictly real? > Compare In[1]:= Simplify[Log[Exp[f[x]]]] Out[1]= Log[E^f[x]] with In[2]:= Simplify[Log[E^realf[x]], Element[_realf, Reals]] Out[2]= realf[x] Of course, "Element[_realf, Reals]" can be used in Assuming[],$Assumptions=... etc. Peter