RealDomain - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Overview of the RealDomain Package

 

Description

List of RealDomain Package Commands

Examples

Description

• 

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.

1. 

The arguments to a procedure P are preprocessed by replacing any calls to procedures exported by RealDomain with calls to the shadowed global procedure.

2. 

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.

3. 

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.

List of RealDomain Package Commands

• 

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

 

 

Examples

simplifysqrtx2

csgnxx

(1)

useRealDomaininsimplifyx2end use

x

(2)

813

−813

(3)

useRealDomainin813end use

−2

(4)

withRealDomain

,,`^`,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

(5)

:-evalarcsincoshx,x=π2

π2Iπ2

(6)

eval:-arcsin:-coshx,x=π2

undefined

(7)

113

−1

(8)

813

−2

(9)

ln1

undefined

(10)

ln2.3

Floatundefined

(11)

See Also

assume

assuming

envvar

help

module

NumericEvent

use

UsingPackages

with