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
The int command has seen improvements to various methods. The following new results come from the asymptotic method:∫0∞sin⁡xx3ⅆx
∞
∫0∞cos⁡x⁢cos⁡x3x2ⅆx
This new result results from an improvement in the elliptic integration code:
∫01∫01ⅇ2⁢I⁢π⁢x+ⅇ2⁢I⁢π yⅆxⅆy
4π
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
∫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
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
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
IsHomogeneousf
false
g≔Homogenizef,z
g≔w5+w2⁢x⁢z2+w⁢y⁢z3+y3⁢z2
IsHomogeneousg
true
Homogenizef,z,w,x,1,2
y3⁢z5+w⁢y⁢z4+w5+w2⁢x⁢z
The simplify command has been enhanced with respect to logarithms whose arguments are constant radical expressions. Some examples:
simplifyln1−2+ln1+2
I⁢π
simplifyln2+2+−2+2
ln⁡2+I⁢π8
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
simplify can now recognize more trig and exp simplifications: simplify⁡−cos⁡112⁢Pi+sin⁡112⁢Pi+12⁢2
0
simplify⁡16⁢sin⁡49⁢Pi−24⁢sin⁡19⁢Pi−32⁢sin⁡29⁢Pi+8⁢3⁢cos⁡49⁢Pi+8⁢3⁢cos⁡29⁢Pi
simplifyⅇI5⁢π⁢54+14−I⁢2⁢5−54
1
simplify now tries harder to simplify constants that appear as subexpressions: simplify⁡−11/5−−12/5+−13/5−−14/5−1⁢x
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
sumi+k−1i zi, i = 0 .. infinity, parametric
11−zkk::ℤ0,−∨z=1∧0<−ℜ⁡k∨z=1∧z≠1∧−1<−ℜ⁡k∧−ℜ⁡k≤0∨z<1∑i=0∞⁡i+k−1i⁢ziotherwise
sumk+a⁢zk,k=0..∞,parametric
−a⁢z+a+zz−12z<1∑k=0∞⁡k+a⁢zkotherwise
The commands sturm and sturmseq have been extended to support polynomials with real algebraic number coefficients.
f≔expandx−2⋅x+1⋅x+2 2
f≔x3+x2⁢2+x2+2⁢x−4⁢x−4
s≔sturmseqf,x
s≔x3+x2⁢2+x2+2⁢x−4⁢x−4,x2+2⁢2⁢x3+2⁢x3+23−43,x+252223−11⁢2446,1
sturms,x=−∞..0
2
sturms,x=0..5
The signum command has had various improvements made. The following examples previously returned with unevaluated signum calls:
signum~−1x,Ix assuming x∷real
−1x,Ix
signum~I2⁢x,I2⁢x+1 assuming x∷even
1,I
signum~I2⁢x,I2⁢x+1 assuming x∷odd
−1,−I
signum⁡−6⁢108+12⁢I⁢6872/3+48108+12⁢I⁢6871/3⁢108+12⁢I⁢6872/3+12⁢6⁢108+12⁢I⁢6871/3+48⁢108+12⁢I⁢6872/3+48108+12⁢I⁢6871/3108+12⁢I⁢6871/3⁢108+12⁢I⁢6872/3+48108+12⁢I⁢6871/3
I
The is and coulditbe commands have had various improvements made. is performs more simplification than it did previously:
isⅇ⁢ⅇ−1,integer
is−I⁢I2⁢n+1>0 assuming n∷even
and takes into account more function properties:
is arccoshx−I⁢π ≥0 assuming x<−1
and operation properties:
iszn,imaginaryassuming z∷imaginary,n∷integer,zn∷Nonreal
The internal solver for systems of inequalities in is and coulditbe has been improved:
map2coulditbe, p, −1, 1 assuming −1 < p, −1 < q, −1 < r, −1 < p+q, −1 < p+r, −1 < r+q, −1 < p+q+r
false,true
The Re and Im commands have had various improvements made. The following examples previously returned with unevaluated Re and Im calls:
ℑz1 assuming z>0, z<1, z1=arccoshz
−I⁢z1
ℜ,ℑI⁢Γ32−12⁢I⁢3⁢Γ32+12⁢I⁢3
0,Γ⁡32−I⁢32⁢Γ⁡32+I⁢32
In some cases, the max and min commands can now recognize numbers as real even though they are composed from nonreal ingredients:
max1,12⁢−4+4⁢I⁢31/3+2−4+4⁢I⁢31/3
−4+4⁢I⁢3132+2−4+4⁢I⁢313
evalc%
2⁢cos⁡2⁢π9
evalf%;
1.532088886
The arctan command now performs some more automatic simplifications:
arctanb+a2+b2a assuming a > 0, b>0
−arctan⁡ab2+π2
arctant+t2+1 assuming t > 0
−arctan⁡1t2+π2
arctan−1+z2+1z
arctan⁡z2
Furthermore, combine performs more simplifications on arctan functions: combinearctan⁡1z+arctan⁡z
csgn⁡z2+1z⁢π2
combineexpand⁡arctan⁡bPi−2⁢arctan⁡b+b2+1Pi assuming 0<b
−12
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:We can use first use SMTLIB[Satisfiable] to verify that a solution exists: SMTLIBSatisfiablesys
In this simple two-dimensional case, we can use plots[inequal] to visualize the solution space:
withplots:inequalsys, x=−5..5, y=−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,y=217
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>−5 and x<5 and y>−5 and y<5
x=−4,y=−4
display inequalsys, x=−5..5, y=−5..5, pointplot evalx,y,pt, symbol=solidcircle, symbolsize=25, color=red ;
Download Help Document