Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Formula Manipulation > Assumptions and Domains >

Assuming

Assuming[assum, expr]
evaluates expr with assum appended to $Assumptions, so that assum is included in the default assumptions used by functions such as Refine, Simplify and Integrate.
  • The assumptions can be equations, inequalities or domain specifications, or lists or logical combinations of these.
  • Assumptions from nested invocations of Assuming are combined.
  • Assuming converts lists of assumptions {a1, a2, ...} to a1&&a2&&....
Give the same assumptions to Refine and Integrate:
Specify the same assumptions for several Refine calls:
Give the same assumptions to Refine and Integrate:
In[1]:=
Click for copyable input
Out[1]=
 
Specify the same assumptions for several Refine calls:
In[1]:=
Click for copyable input
Out[1]=
Specify assumptions for simplifiers:
Specify assumptions for Integrate and in integral transforms:
Specify assumptions for Limit and Series:
Write code that uses assumptions; find the number of real roots of a x2+b x+c:
Assuming locally sets the value of $Assumptions:
Assumptions from nested invocations of Assuming are combined:
Block can also be used to locally set the value of $Assumptions:
Here the assumptions from Assuming are not used inside Block:
This is equivalent to using nested Assuming:
Assuming affects functions using the Assumptions :> $Assumptions option setting:
For some functions assumptions can be given both as an argument and as an option value:
When Assumptions option is set directly, assumptions specified with Assuming are not used:
New in 5
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team