Advanced Math - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Advanced Math

Maple 2018 includes numerous cutting-edge updates in a variety of branches of mathematics.

 

Integration

PolynomialTools

Simplification

Summation

Sturm Sequences

signum

is, coulditbe

Re, Im

max, min

arctan

SMTLIB

Integration

The int command has seen improvements to various methods. The following new results come from the asymptotic method:∫0∞sin⁡xx3ⅆx

∞

(1.1)

∫0∞cos⁡x⁢cos⁡x3x2ⅆx

∞

(1.2)

This new result results from an improvement in the elliptic integration code:

∫01∫01ⅇ2⁢I⁢π⁢x+ⅇ2⁢I⁢π yⅆxⅆy

4π

(1.3)

The next two examples are due to improvements to the Risch algorithm:

normal∫sin⁡x⁢arctan⁡a⁢a2+1−x1+ⅇaⅆx

−ⅇ−x⁢ln⁡a2+1⁢−arctan⁡a⁢tan⁡x⁢arctan⁡a22+2⁢ln⁡a2+1⁢tan⁡x⁢arctan⁡a2+arctan⁡aⅇa⁢ln⁡a2+12+arctan⁡a2⁢ⅇa+ln⁡a2+12+arctan⁡a2⁢1+tan⁡x⁢arctan⁡a22

(1.4)

∫83⁢ln⁡u230−20162⁢ln⁡u2025+58497230375⁢u52+4723⁢ln⁡u21260−3961877⁢ln⁡u297675+80288533431255875⁢u72ⅆu

83⁢u72⁢ln⁡u2105−327088⁢u72⁢ln⁡u99225+67139896⁢u7210418625+4723⁢u92⁢ln⁡u25670−8915584⁢u92⁢ln⁡u2679075+5441402884⁢u92843908625

(1.5)

This previously unsolved example is due to an improvement in the hyperexponential algorithm:
∫sinh⁡x+cosh⁡xsinh⁡x+1ⅆx

−−tanh⁡x2+1tanh⁡x2−1⁢tanh⁡x2−1⁢arcsin⁡tanh⁡x2−2+2⁢2+−2+2⁢224⁢2+2⁢2⁢2−−2+2⁢2⁢arctanh⁡1+tanh⁡x2⁢2−tanh⁡x2−2+2⁢2⁢−tanh⁡x22+1⁢2+2⁢2−arcsin⁡tanh⁡x2−2−2⁢2+−2−2⁢224⁢2⁢2+2⁢2+2⁢arcsin⁡tanh⁡x2⁢2+2⁢2+2⁢arctan⁡tanh⁡x2⁢2+tanh⁡x2−12+2⁢2⁢−tanh⁡x22+1⁢2−arcsin⁡tanh⁡x2−2+2⁢2+−2+2⁢224⁢2+2⁢2−arcsin⁡tanh⁡x2−2−2⁢2+−2−2⁢224⁢2+2⁢2+2⁢arctan⁡tanh⁡x2⁢2+tanh⁡x2−12+2⁢2⁢−tanh⁡x22+12⁢−tanh⁡x2+1⁢tanh⁡x2−1⁢2+2⁢2

(1.6)

PolynomialTools

Two new commands, Homogenize and IsHomogeneous, for performing and testing (weighted) homogenization were added to the PolynomialTools package.

withPolynomialTools:

f≔w5+w2x+w y+y3

f≔w5+w2⁢x+y3+w⁢y

(2.1)

IsHomogeneousf

false

(2.2)

g≔Homogenizef,z

g≔w5+w2⁢x⁢z2+w⁢y⁢z3+y3⁢z2

(2.3)

IsHomogeneousg

true

(2.4)

Homogenizef,z,w,x,1,2

y3⁢z5+w⁢y⁢z4+w5+w2⁢x⁢z

(2.5)

Simplification

The simplify command has been enhanced with respect to logarithms whose arguments are constant radical expressions. Some examples:

simplifyln1−2+ln1+2

I⁢π

(3.1)

simplifyln2+2+−2+2

ln⁡2+I⁢π8

(3.2)

simplify−7 π ln2−3+11⁢π⁢ln2+3+38⁢ln3−1⁢π+2⁢π⁢ln1+3+4⁢ln2⁢π−2⁢3⁢ln22+3⁢ln⁡2−32+3⁢ln⁡2+32+4⁢3⁢ln2⁢ln3−1+4⁢3⁢ln2⁢ln1+3−4⁢3⁢ln⁡3−12−4⁢3⁢ln⁡1+32

24⁢π⁢ln⁡2

(3.3)

simplify can now recognize more trig and exp simplifications:
simplify⁡−cos⁡112⁢Pi+sin⁡112⁢Pi+12⁢2

0

(3.4)

simplify⁡16⁢sin⁡49⁢Pi−24⁢sin⁡19⁢Pi−32⁢sin⁡29⁢Pi+8⁢3⁢cos⁡49⁢Pi+8⁢3⁢cos⁡29⁢Pi

0

(3.5)

simplifyⅇI5⁢π⁢54+14−I⁢2⁢5−54

1

(3.6)

simplify now tries harder to simplify constants that appear as subexpressions:
simplify⁡−11/5−−12/5+−13/5−−14/5−1⁢x

0

(3.7)

Summation

The sum command with the parametric option has been improved for the case of hypergeometric sums with more than one parameter. The following sums used to return unevaluated in Maple 2017.

sumxnn+b, n = 0 .. infinity,parametric

FAILb=01bx=0∧b≠0FAIL1+b::ℤ0,−LerchPhi⁡x,1,bx≤1∧x≠1∧1+b::¬ℤ0,−∑n=0∞⁡xnn+botherwisex≠0∧b≠0

(4.1)

sumi+k−1i zi, i = 0 .. infinity, parametric

11−zkk::ℤ0&comma;−∨z=1∧0<−ℜ⁡k∨z=1∧z≠1∧−1<−ℜ⁡k∧−ℜ⁡k≤0∨z<1∑i=0∞⁡i+k−1i⁢ziotherwise

(4.2)

sumk+a⁢zk&comma;k=0..∞&comma;parametric

−a⁢z+a+zz−12z<1∑k=0∞⁡k+a⁢zkotherwise

(4.3)

Sturm Sequences

The commands sturm and sturmseq have been extended to support polynomials with real algebraic number coefficients.

f≔expandx−2⋅x&plus;1⋅x&plus;2 2

f≔x3+x2⁢2+x2+2⁢x−4⁢x−4

(5.1)

s≔sturmseqf&comma;x

s≔x3+x2⁢2+x2+2⁢x−4⁢x−4&comma;x2+2⁢2⁢x3+2⁢x3+23−43&comma;x+252223−11⁢2446&comma;1

(5.2)

sturms&comma;x&equals;−∞..0

2

(5.3)

sturms&comma;x&equals;0..5

1

(5.4)

signum

The signum command has had various improvements made. The following examples previously returned with unevaluated signum calls:

signum~−1x&comma;Ix assuming x∷real

−1x&comma;Ix

(6.1)

signum~I2⁢x&comma;I2⁢x&plus;1 assuming x∷even

1&comma;I

(6.2)

signum~I2⁢x&comma;I2⁢x&plus;1 assuming x∷odd

−1&comma;−I

(6.3)

signum⁡−6⁢108&plus;12⁢I⁢6872&sol;3&plus;48108&plus;12⁢I⁢6871&sol;3⁢108&plus;12⁢I⁢6872&sol;3&plus;12⁢6⁢108&plus;12⁢I⁢6871&sol;3&plus;48⁢108&plus;12⁢I⁢6872&sol;3&plus;48108&plus;12⁢I⁢6871&sol;3108&plus;12⁢I⁢6871&sol;3⁢108&plus;12⁢I⁢6872&sol;3&plus;48108&plus;12⁢I⁢6871&sol;3

I

(6.4)

is, coulditbe

The is and coulditbe commands have had various improvements made. is performs more simplification than it did previously:

is&ExponentialE;⁢&ExponentialE;−1&comma;integer

true

(7.1)

is−I⁢I2⁢n&plus;1&gt;0 assuming n∷even

true

(7.2)

and takes into account more function properties:

is arccoshx−I⁢π ≥0 assuming x<−1

true

(7.3)

and operation properties:

iszn&comma;imaginaryassuming z∷imaginary&comma;n∷integer&comma;zn∷Nonreal

true

(7.4)

The internal solver for systems of inequalities in is and coulditbe has been improved:

map2coulditbe&comma; p&comma; −1&comma; 1 assuming −1 < p&comma; −1 < q&comma; −1 < r&comma; −1 < p&plus;q&comma; −1 < p&plus;r&comma; −1 < r&plus;q&comma; −1 < p&plus;q&plus;r

false&comma;true

(7.5)

Re, Im

The Re and Im commands have had various improvements made. The following examples previously returned with unevaluated Re and Im calls:

ℑz1 assuming z&gt;0&comma; z<1&comma; z1&equals;arccoshz

−I⁢z1

(8.1)

ℜ&comma;ℑI⁢Γ32−12⁢I⁢3⁢Γ32&plus;12⁢I⁢3

0&comma;Γ⁡32−I⁢32⁢Γ⁡32+I⁢32

(8.2)

max, min

In some cases, the max and min commands can now recognize numbers as real even though they are composed from nonreal ingredients:

max1&comma;12⁢−4&plus;4⁢I⁢31&sol;3&plus;2−4&plus;4⁢I⁢31&sol;3

−4+4⁢I⁢3132+2−4+4⁢I⁢313

(9.1)

evalc%

2⁢cos⁡2⁢π9

(9.2)

evalf%&semi; 

1.532088886

(9.3)

arctan

The arctan command now performs some more automatic simplifications:

arctanb&plus;a2&plus;b2a assuming a &gt; 0&comma; b&gt;0

−arctan⁡ab2+π2

(10.1)

arctant&plus;t2&plus;1 assuming t &gt; 0

−arctan⁡1t2+π2

(10.2)

arctan−1&plus;z2&plus;1z

arctan⁡z2

(10.3)

Furthermore, combine performs more simplifications on arctan functions:
combinearctan⁡1z&plus;arctan⁡z

csgn⁡z2+1z⁢π2

(10.4)

combineexpand⁡arctan⁡bPi−2⁢arctan⁡b&plus;b2&plus;1Pi assuming 0<b

−12

(10.5)

 

SMTLIB

The SMTLIB package has been extended to support satisfiability queries on Boolean combinations of polynomial equations and inequalities.

Consider the following description of a set:

 

sys≔0≤y2+x∧2⁢x3−3<2⁢y∧y<x3+1∨1<y∧0<x+y−1∧x3≤y∨x<−2∧y<−2&colon;We can use first use SMTLIB[Satisfiable] to verify that a solution exists:
SMTLIBSatisfiablesys

true

(11.1)

 

In this simple two-dimensional case, we can use plots[inequal] to visualize the solution space:

withplots&colon;inequalsys&comma; x&equals;−5..5&comma; y&equals;−5..5

The new command SMTLIB[Satisfy] offers an efficient method of finding a concrete example for a point in the solution space:
SMTLIBSatisfysys

x=6&comma;y=217

(11.2)

To produce a satisfying point within the visual bounds of the plot above, we can simply augment our system with a bounding rectangle:
pt ≔ SMTLIBSatisfysys and x&gt;−5 and x<5 and y&gt;−5 and y<5

x=−4&comma;y=−4

(11.3)

display inequalsys&comma; x&equals;−5..5&comma; y&equals;−5..5&comma; pointplot evalx&comma;y&comma;pt&comma; symbol&equals;solidcircle&comma; symbolsize&equals;25&comma; color&equals;red  &semi;