Abstract
Functions allow programming code reuse, and thus are essential in any programming language. We have discussed earlier in Sect. 2.10 how to define general-purpose functions in the Python programming language. But this book is about numerical and statistical computations, therefore, we will turn to the question of how to build mathematical functions. In this chapter, we will remind how to construct mathematical functions in Python and then we will discuss how to extend this approach to call Java-implemented mathematical functions using Jython. The latter topic describes the flagship concept of numerical computations used in this book. In addition to simplicity, this approach also allows easy transformation of code examples into Java programs or other scripting languages, such as Groovy and JRuby, which can directly access Java numeric libraries.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Funk N, A Java library for mathematical expressions. http://sourceforge.net/projects/jep/
Asseg F et al, Exp4j. A mathematical expression evaluator. http://www.objecthunter.net/exp4j/
The Colt Development Team, The Colt project. https://dst.lbl.gov/software/colt/
Bose A, 3D graph explorer
T. D.-X. Consortium, The 3d-xplormathj project. http://3d-xplormath.org/
James F (2013) MINUIT. Function minimization and error analysis, reference manual. http://wwwasdoc.web.cern.ch/wwwasdoc/minuit/
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2016 Springer International Publishing Switzerland
About this chapter
Cite this chapter
Chekanov, S.V. (2016). Mathematical Functions. In: Numeric Computation and Statistical Data Analysis on the Java Platform. Advanced Information and Knowledge Processing. Springer, Cham. https://doi.org/10.1007/978-3-319-28531-3_3
Download citation
DOI: https://doi.org/10.1007/978-3-319-28531-3_3
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-28529-0
Online ISBN: 978-3-319-28531-3
eBook Packages: Computer ScienceComputer Science (R0)