Elementary Functions
Hardware algorithms have been introduced into Maple 17 that greatly speed up operations on complex floating-point numbers. Compared to Maple 16, the Maple 17 is almost 2000 times faster in some cases.
To demonstrate this, the following commands create a random vector, V, containing 10,000 complex floating-point numbers. The time (in seconds) needed to perform operations on all 10,000 elements is found using various functions
V:=LinearAlgebra:-RandomVector⁡104,datatype=complex8:
timerealln~V;
0.002
timereallog~V;
timereallog10~V;
0.005
timerealsqrt~V;
0.001
timerealarcsin~V;
0.003
timerealarcsinh~V;
0.027
timerealarctan~V;
timerealarctanh~V;
timerealarccos~V;
timerealarccosh~V;
The following lists, m16 and m17, contain the measured times to compute these operations using Maple 16 and 17, respectively. The column graph plots these lists to show the speed up between the two versions.
m16:=2.557,2.914,3.162,2.020,5.193,5.417,2.810,2.972,5.655,6.300:
m17:=0.002,0.002,0.005,0.001,0.003,0.0027,0.003,0.003,0.003,0.003:
Statistics:-ColumnGraphm16,m17,datasetlabels=ln,log,log10,sqrt,arcsin,arcsinh,arctan,arctanh,arccos,arccosh,legend=Maple 16,Maple 17,labels=,time (s),title=Computation Times,titlefont=TIMES, BOLD, 18;
*Benchmarks computed on an Intel Q8200 2.33GHz Quad-Core CPU running Linux.
See Also
Hardware Floating-Point Numbers, trig, evalhf, complex
Download Help Document