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

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Information : Updates : Maple 17 : Elementary Functions

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:-RandomVector104,datatype=complex8:

timerealln~V;

0.002

(1)

timereallog~V;

0.002

(2)

timereallog10~V;

0.005

(3)

timerealsqrt~V;

0.001

(4)

timerealarcsin~V;

0.003

(5)

timerealarcsinh~V;

0.027

(6)

timerealarctan~V;

0.003

(7)

timerealarctanh~V;

0.003

(8)

timerealarccos~V;

0.003

(9)

timerealarccosh~V;

0.003

(10)

 

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