The design of Maple's sum-of-products and POLY data structures for representing mathematical objects

被引:0
作者
Monagan, Michael [1 ]
Pearce, Roman [1 ]
机构
[1] Center for Experimental and Constructive Mathematics, Simon Fraser University, Burnaby, BC
来源
ACM Communications in Computer Algebra | 2015年 / 48卷 / 3-4期
关键词
Compilation and indexing terms; Copyright 2025 Elsevier Inc;
D O I
10.1145/2733693.2733720
中图分类号
学科分类号
摘要
The principal data structure Maple uses to represent polynomials and general mathematical expressions involving functions like sin x, e2x, y'(x),(nk) etc., is known to the Maple developers as the sum-of-products data structure. Gaston Gonnet, as the primary author of the Maple kernel, designed and implemented this data structure in the early 1980s. As part of the process of simplifying a mathematical formula, he represented every Maple object and every sub-object uniquely in memory. This makes testing for equality of expressions very fast. In this article, on occasion of Gonnet's retirement, we present details of his design, its pros and cons, and changes we and others have made to it over the years. One of the cons of the sum-of-products data structure is it is not as efficient at multiplying multivariate polynomials as other special purpose computer algebra systems. We describe a new data structure called POLY that we added to Maple 17 (released in 2013) to improve performance for polynomials in Maple, and recent work done for Maple 18 (released in 2014).
引用
收藏
页码:166 / 186
页数:20
相关论文
共 12 条
[1]  
Bosma W., Cannon J., Playoust C., The magma algebra system I: The user language, J. Symb. Cmpt., 24, 3-4, pp. 235-265, (1997)
[2]  
Char B.W., Geddes K.O., Gentleman W.M., Gonnet G.H., The design of maple: A compact, portable and powerful computer algebra system, Proceedings of EUROCAL '83, pp. 101-115, (1983)
[3]  
Fateman R., Comparing the speed of programs for sparse polynomial multiplication, ACM SIGSAM Bulletin, 37, 1, pp. 4-15, (2003)
[4]  
Geddes K.O., Czapor S.R., Labahn G., Algorithms for Computer Algebra, (1992)
[5]  
Geddes K.O., Gonnet G.H., Smedley T.J., Heuristic methods for operations with algebraic numbers, Proc. of ISSAC '88, pp. 475-480, (1988)
[6]  
Gentleman W.M., Johnson S.C., Analysis of algorithms, a case study: Determinants of matrices with polynomial entries, ACM Trans. on Math. Soft., 2, 3, pp. 232-241, (1976)
[7]  
Greuel G.-M., Pfister G., Schonemann H., Singular 3.0: A Computer Algebra System for Polynomial Computations., (2005)
[8]  
Knuth D.E., The Art of Computer Programming, 2, (1981)
[9]  
Monagan M., Pearce R., Parallel sparse polynomial multiplication using heaps, Proceedings of ISSAC '09, pp. 263-269, (2009)
[10]  
Monagan M., Pearce R., POLY: A new polynomial data structure for Maple 17, Extended Abstract, Communications in Computer Algebra, 46, 4, pp. 164-167, (2012)