There are Computer Algebra System (CAS) systems on the market with complete solutions for manipulation of analytical models. But exporting a model that implements specific algorithms on specific platforms, for target languages or for particular numerical library, is often a rigid procedure that requires manual post-processing. This work presents a Ruby library that exposes core CAS capabilities, i.e. simplification, substitution, evaluation, etc. The library aims at programmers that need to rapidly prototype and generate numerical code for different target languages, while keeping separated mathematical expression from the code generation rules, where best practices for numerical conditioning are implemented. The library is written in pure Ruby language and is compatible with most Ruby interpreters. © 2017 The Author. Published by Elsevier B.V.

Mr.CAS —A minimalistic (pure) Ruby CAS for fast prototyping and code generation / Ragni, Matteo. - In: SOFTWAREX. - ISSN 2352-7110. - 2017, 6:(2017), pp. 128-134. [10.1016/j.softx.2017.05.002]

Mr.CAS —A minimalistic (pure) Ruby CAS for fast prototyping and code generation

Ragni, Matteo
2017-01-01

Abstract

There are Computer Algebra System (CAS) systems on the market with complete solutions for manipulation of analytical models. But exporting a model that implements specific algorithms on specific platforms, for target languages or for particular numerical library, is often a rigid procedure that requires manual post-processing. This work presents a Ruby library that exposes core CAS capabilities, i.e. simplification, substitution, evaluation, etc. The library aims at programmers that need to rapidly prototype and generate numerical code for different target languages, while keeping separated mathematical expression from the code generation rules, where best practices for numerical conditioning are implemented. The library is written in pure Ruby language and is compatible with most Ruby interpreters. © 2017 The Author. Published by Elsevier B.V.
2017
Ragni, Matteo
Mr.CAS —A minimalistic (pure) Ruby CAS for fast prototyping and code generation / Ragni, Matteo. - In: SOFTWAREX. - ISSN 2352-7110. - 2017, 6:(2017), pp. 128-134. [10.1016/j.softx.2017.05.002]
File in questo prodotto:
File Dimensione Formato  
1-s2.0-S2352711017300146-main.pdf

accesso aperto

Tipologia: Versione editoriale (Publisher’s layout)
Licenza: Creative commons
Dimensione 464.67 kB
Formato Adobe PDF
464.67 kB Adobe PDF Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11572/179241
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact