Overview of the RealDomain Package
Description
List of RealDomain Package Commands
Examples
By default, Maple performs computations under the assumption that the underlying number system is the complex field. The RealDomain package provides an environment in which computations are performed under the assumption that the basic underlying number system is the field of real numbers.
Each command in the RealDomain package can be accessed by using either the long form or the short form of the command name in the command calling sequence.
The long form, RealDomain:-command, is always available. The short form can be used after loading the package.
To create a RealDomain environment, use the use RealDomain in ... end syntax.
All the exports of this package shadow the global Maple procedures of the same name. For example, RealDomain[sqrt] shadows the global sqrt procedure. The package exports all differ uniformly from the global procedures they shadow.
The arguments to a procedure P are preprocessed by replacing any calls to procedures exported by RealDomain with calls to the shadowed global procedure.
The procedure call is evaluated with the assumption that all unassigned symbols in the input are real. In addition, the environment variable _EnvSolveOverReals is set to true and a special numeric event handler is installed for the real_to_complex event.
Results returned by procedures are postprocessed by discarding values containing any detectable non-real answers or replacing them with undefined where appropriate.
Within the environment of a use statement, or after issuing the command with(RealDomain);, the global (default) procedures shadowed by the procedures exported by the RealDomain package can still be accessed using the :− prefix. For example, access the default sin procedure using :-sin.
The RealDomain package is not compatible with the use of the assume facility.
Only expressions involving commands and operators exported by this package are expected to be free of complex values. For example, integration (which goes beyond precalculus mathematics) is not expected to yield only real-values answers.
A limited number of Maple procedures are shadowed in this package. The scope of the package is intended to cover basic precalculus mathematics along with a number of routines that may be used in symbolic manipulations of expressions and formulae encountered at that level. The following is a list of available commands in this package.
^
arccos
arccosh
arccot
arccoth
arccsc
arccsch
arcsec
arcsech
arcsin
arcsinh
arctan
arctanh
cos
cosh
cot
coth
csc
csch
eval
exp
expand
Im
limit
ln
log
Re
sec
sech
signum
simplify
sin
sinh
solve
sqrt
surd
tan
tanh
simplify⁡sqrt⁡x2
csgn⁡x⁢x
useRealDomaininsimplify⁡x2end use
x
−813
useRealDomainin−813end use
−2
with⁡RealDomain
ℑ,ℜ,`^`,arccos,arccosh,arccot,arccoth,arccsc,arccsch,arcsec,arcsech,arcsin,arcsinh,arctan,arctanh,cos,cosh,cot,coth,csc,csch,eval,exp,expand,limit,ln,log,sec,sech,signum,simplify,sin,sinh,solve,sqrt,surd,tan,tanh
:-eval⁡arcsin⁡cosh⁡x,x=π2
π2−I⁢π2
eval⁡:-arcsin⁡:-cosh⁡x,x=π2
undefined
−113
−1
ln⁡−1
ln⁡−2.3
Float⁡undefined
See Also
assume
assuming
envvar
help
module
NumericEvent
use
UsingPackages
with
Download Help Document