| (1) |
>
|
|
| (3) |
>
|
|
>
|
|
>
|
|
>
|
|
>
|
|
| (12) |
>
|
|
The simplify command can be called with assumptions.
>
|
|
>
|
|
| (15) |
The following is an example of the optional argument 'additionally'.
Originally x, renamed x~:
is assumed to be: RealRange(-infinity,Open(1))
| |
As default behavior, the existing assumption is disregarded when computing using `assuming` with assumptions on .
>
|
|
Using 'additionally', is taken into account in addition to the already existing assumption , leading to:
>
|
|
With or without the optional argument 'additionally', any assumptions previously existing on the variables are preserved.
Originally x, renamed x~:
is assumed to be: RealRange(-infinity,Open(1))
| |
>
|
|
| (20) |
Without assumptions, the ODE above is solved in terms of a piecewise function. Assuming is positive:
| (21) |
Assuming is positive, the ODE has the following solution.
>
|
|
This solution can be tested (see odetest) under assumptions.
>
|
|
>
|
|
Computing with quoted objects under assuming occurs normally. If quotation marks are placed around , the information that is ignored.
>
|
|
The assuming command does not place assumptions on integration or summation variables in definite integrals and sums. So, in
>
|
|
| (27) |
no assumptions are placed on the dummy variable .
>
|
|
To obtain the simplification of the integrand taking into account that use simplify.
| (29) |
You can call assuming with assuming as argument (nested computation under different assumptions). In doing so, note assuming is left-associative, so for instance in
>
|
|
first simplify(sqrt(r^2*s^2*t^2)) assuming real is computed then the result evaluated assuming .
It is sometimes useful to place an assumption on a variable or expression, encapsulated, independent of the rest of the computations on the worksheet. One example of that is when the value of expressions depend on where are some variables being evaluated. For this purpose you can use the inert form %assuming. For example,
>
|
|
When using %assuming attention should be given to the order of precedence of operations: assuming and %assuming have higher precedence than the arithmetic operators.
>
|
|
| (33) |
The assuming command does not scan programs regarding the presence of assumed variables; for that purpose use assume. Consider
The variable a is inside the body of f; the assumption that is not effectively used when computing .
For these purposes, you can use the Physics:-Setup command with its assuminguseseAssume keyword, or use assume itself. For example
>
|
|
| (37) |
Alternatively,
>
|
|
| (39) |