{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,1,19]],"date-time":"2026-01-19T02:51:22Z","timestamp":1768791082430,"version":"3.49.0"},"reference-count":35,"publisher":"Association for Computing Machinery (ACM)","issue":"2","funder":[{"name":"Spanish National Project","award":["PID2020-114819GB-I00"],"award-info":[{"award-number":["PID2020-114819GB-I00"]}]},{"name":"Spanish National Project","award":["PID2021-122821NB-I00"],"award-info":[{"award-number":["PID2021-122821NB-I00"]}]},{"DOI":"10.13039\/501100002809","name":"Generalitat de Catalunya","doi-asserted-by":"crossref","award":["2021 SGR 00376"],"award-info":[{"award-number":["2021 SGR 00376"]}],"id":[{"id":"10.13039\/501100002809","id-type":"DOI","asserted-by":"crossref"}]},{"name":"Spanish National Project","award":["PID2021-122835OB-C21"],"award-info":[{"award-number":["PID2021-122835OB-C21"]}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Math. Softw."],"published-print":{"date-parts":[[2025,6,30]]},"abstract":"<jats:p>Geometric Algebra (GA) provides a unified, compact mathematical framework for geometric computing, simplifying relations typically handled with more complex tools like matrix multiplication. In fields like robotics, GA replaces conventional coordinate-based approaches with the multiplication of special elements called rotors, offering greater efficiency. Despite its advantages, GA\u2019s complexity and the lack of symbolic tools hinder its broader adoption among applied mathematicians and engineers. To address this, this article introduces Symbolic and User-friendly Geometric Algebra Routines (SUGAR), an open source Matlab toolbox. SUGAR streamlines GA usage in Matlab through a collection of user-friendly functions that support both numeric and symbolic computations, even in high-dimensional algebras. Designed for applied mathematics and engineering, it enables intuitive manipulation of geometric elements and transformations in two- and three-dimensional projective and conformal GAs, consistent with established computational methods. Moreover, SUGAR manages multivector functions such as exponential, logarithmic, sinusoidal, and cosine operations, enhancing its applicability in domains like robotics, control systems, and power electronics. Finally, this article also presents three validation examples across these fields, showcasing SUGAR\u2019s practical utility in solving real-world engineering and applied mathematics problems.<\/jats:p>","DOI":"10.1145\/3734693","type":"journal-article","created":{"date-parts":[[2025,5,6]],"date-time":"2025-05-06T14:45:18Z","timestamp":1746542718000},"page":"1-31","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":2,"title":["Symbolic and User-friendly Geometric Algebra Routines (\n            <tt>SUGAR<\/tt>\n            ) for Computations in Matlab"],"prefix":"10.1145","volume":"51","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-0764-3063","authenticated-orcid":false,"given":"Manel","family":"Velasco","sequence":"first","affiliation":[{"name":"Department of Automatic Control, Universitat Polit\u00e8cnica de Catalunya, Barcelona, Spain"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-0862-3240","authenticated-orcid":false,"given":"Isiah","family":"Zaplana","sequence":"additional","affiliation":[{"name":"Institute of Industrial and Control Engineering, Universitat Polit\u00e8cnica de Catalunya, Barcelona, Spain"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-9352-066X","authenticated-orcid":false,"given":"Arnau","family":"D\u00f2ria-Cerezo","sequence":"additional","affiliation":[{"name":"Institute of Industrial and Control Engineering, Universitat Polit\u00e8cnica de Catalunya, Barcelona, Spain"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-5189-0782","authenticated-orcid":false,"given":"Pau","family":"Mart\u00ed","sequence":"additional","affiliation":[{"name":"Department of Automatic Control, Universitat Polit\u00e8cnica de Catalunya, Barcelona, Spain"}]}],"member":"320","published-online":{"date-parts":[[2025,6,28]]},"reference":[{"key":"e_1_3_2_2_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00006-005-0009-9"},{"key":"e_1_3_2_3_1","unstructured":"L. K. Antanovskii. 2014. Implementation of Geometric Algebra in MATLAB with Applications. Technical Report. DSTO\u2013TR\u20133021 Weapons and Combat Systems Division Defence Science and Technology Organisation Dept. of Defense Australian Government. Retrieved from https:\/\/apps.dtic.mil\/sti\/pdfs\/ADA615302.pdf"},{"key":"e_1_3_2_4_1","unstructured":"Ahmad Hosney Awad Eid. 2016. Optimized automatic code generation for geometric algebra based algorithms with ray tracing application. arXiv:1607.04767. Retrieved from https:\/\/arxiv.org\/abs\/1607.04767"},{"key":"e_1_3_2_5_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-34978-3"},{"key":"e_1_3_2_6_1","doi-asserted-by":"publisher","DOI":"10.1109\/ACCESS.2021.3097756"},{"key":"e_1_3_2_7_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0263574722000741"},{"key":"e_1_3_2_8_1","unstructured":"Alan Bromborsky and GAlgebra Team. 2014. GAlgebra. Army Research Lab. Retrieved from https:\/\/github.com\/pygae\/galgebra"},{"key":"e_1_3_2_9_1","doi-asserted-by":"publisher","DOI":"10.7546\/jgsp-43-2017-1-36"},{"key":"e_1_3_2_10_1","doi-asserted-by":"publisher","DOI":"10.1109\/JPROC.2014.2339299"},{"key":"e_1_3_2_11_1","unstructured":"Pablo Colapinto. 2011. Versor: Spatial computing with conformal geometric algebra. Master\u2019s thesis. University of California Santa Barbara. Retrieved from http:\/\/versor.mat.ucsb.edu"},{"key":"e_1_3_2_12_1","doi-asserted-by":"crossref","unstructured":"Adolfas Dargys and Arturas Acus. 2021. Exponentials of general multivector (MV) in 3D Clifford algebras. arXiv:2104.01905. Retrieved from http:\/\/arxiv.org\/abs\/2104.01905","DOI":"10.15388\/namc.2020.25.16519"},{"key":"e_1_3_2_13_1","unstructured":"Steven De Keninck. 2017. ganja.js. University of Amsterdam. Retrieved from https:\/\/github.com\/enkimute\/ganja.js"},{"key":"e_1_3_2_14_1","volume-title":"Nodal Analysis of Power Systems","author":"Dimo Paul","year":"1975","unstructured":"Paul Dimo. 1975. Nodal Analysis of Power Systems. Abacus Press."},{"key":"e_1_3_2_15_1","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9780511807497"},{"key":"e_1_3_2_16_1","unstructured":"Leo Dorst and Steven De Keninck. 2022. Guided tour to the plane-based geometric algebra PGA. Retrieved from https:\/\/bivector.net\/PGA4CS.html"},{"key":"e_1_3_2_17_1","volume-title":"International Conference on Modeling and Simulation of Electric Machines, Converters and Systems","author":"D\u00f2ria-Cerezo Arnau","year":"2024","unstructured":"Arnau D\u00f2ria-Cerezo, Manel Velasco, Isiah Zaplana, and Pau Mart\u00ed. 2024. The Ohm\u2019s law for (non-symmetric) three-phase three-wire electrical circuits: From a complex-valued to a geometric algebra approach. In International Conference on Modeling and Simulation of Electric Machines, Converters and Systems."},{"key":"e_1_3_2_18_1","doi-asserted-by":"crossref","first-page":"3","DOI":"10.1007\/978-1-4612-0159-5_1","volume-title":"Geometric Algebra with Applications in Science and Engineering","author":"Hestenes David","year":"2001","unstructured":"David Hestenes. 2001. Old wine in new bottles: A new algebraic framework for computational geometry. In Geometric Algebra with Applications in Science and Engineering. Eduardo Bayro Corrochano and Garret Sobczyk (Eds.), Birkh\u00e4user Boston, 3\u201317."},{"key":"e_1_3_2_19_1","doi-asserted-by":"crossref","DOI":"10.1007\/978-94-009-6292-7","volume-title":"Clifford Algebra to Geometric Calculus: A Unified Language for Mathematics and Physics","author":"Hestenes David","year":"1984","unstructured":"David Hestenes, Garret Sobczyk, and D. Reidel. 1984. Clifford Algebra to Geometric Calculus: A Unified Language for Mathematics and Physics. Distributed in the USA and Canada by Kluwer Academic Publishers, Dordrecht; Boston; Hingham, MA, USA."},{"key":"e_1_3_2_20_1","doi-asserted-by":"publisher","DOI":"10.1002\/mma.8316"},{"key":"e_1_3_2_21_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00006-013-0378-4"},{"key":"e_1_3_2_22_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.amc.2017.05.027"},{"key":"e_1_3_2_23_1","volume-title":"SpringerBriefs in Mathematics","author":"Lavor C.","year":"2018","unstructured":"C. Lavor, S. Xamb\u00f3-Descamps, and I. Zaplana. 2018. A Geometric Algebra Invitation to Space-Time Physics, Robotics and Molecular Geometry. SpringerBriefs in Mathematics, Springer Cham."},{"key":"e_1_3_2_24_1","unstructured":"Pertti Lounesto R. Mikkola and V. Vierros. 1987. CLICAL User Manual: Complex Number Vector Space and Clifford Algebra Calculator for MS-DOS Personal Computers. Technical Report. Helsinki University of Technology Finland. Retrieved from https:\/\/users.aalto.fi\/~ppuska\/mirror\/Lounesto\/CLICAL.htm"},{"key":"e_1_3_2_25_1","doi-asserted-by":"publisher","DOI":"10.1109\/TRO.2023.3277282"},{"key":"e_1_3_2_26_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4612-0159-5_24"},{"key":"e_1_3_2_27_1","unstructured":"E. Alejandra Ortiz-Duran and Jose L. Aragon. 2017. CGAlgebra: A mathematica package for conformal geometric algebra. v.2.0. arXiv:1711.02513. Retrieved from https:\/\/arxiv.org\/abs\/1711.02513"},{"key":"e_1_3_2_28_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00006-016-0682-x"},{"key":"e_1_3_2_29_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00006-023-01269-9"},{"key":"e_1_3_2_30_1","unstructured":"Steve Sangwine and Nicolas Le Bihan. 2005. Quaternion and Octonion Toolbox for Matlab. Grenoble-INP and Universit\u00e9 de Grenoble-Alpes. Retrieved from https:\/\/qtfm.sourceforge.io\/"},{"key":"e_1_3_2_31_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00006-016-0666-x"},{"key":"e_1_3_2_32_1","volume-title":"Robotics: Modelling, Planning and Control","author":"Siciliano B.","year":"2008","unstructured":"B. Siciliano, L. Sciavicco, L. Villani, and G. Oriolo. 2008. Robotics: Modelling, Planning and Control. Springer Publishing Company."},{"key":"e_1_3_2_33_1","unstructured":"Manel Velasco. 2023. Symbolic and User-Friendly Geometric Algebra Routines (SUGAR). Universitat Polit\u00e8cnica de Catalunya (UPC). Retrieved from https:\/\/github.com\/distributed-control-systems\/SUGAR"},{"key":"e_1_3_2_34_1","doi-asserted-by":"publisher","DOI":"10.1109\/TIE.2025.3553169"},{"key":"e_1_3_2_35_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.mechmachtheory.2022.104835"},{"key":"e_1_3_2_36_1","doi-asserted-by":"publisher","DOI":"10.3390\/math10122068"}],"container-title":["ACM Transactions on Mathematical Software"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3734693","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,28]],"date-time":"2025-06-28T12:10:24Z","timestamp":1751112624000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3734693"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,6,28]]},"references-count":35,"journal-issue":{"issue":"2","published-print":{"date-parts":[[2025,6,30]]}},"alternative-id":["10.1145\/3734693"],"URL":"https:\/\/doi.org\/10.1145\/3734693","relation":{},"ISSN":["0098-3500","1557-7295"],"issn-type":[{"value":"0098-3500","type":"print"},{"value":"1557-7295","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,6,28]]},"assertion":[{"value":"2024-03-24","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2025-04-23","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2025-06-28","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}