Abstract
The base installation of R has many built-in functions, including sort and order to arrange vectors or arrays in ascending or descending order; all the standard trigonometric and hyperbolic functions log(base e), log10, exp, sqrt, abs, etc.; and more sophisticated mathematical functions such as factorial, gamma, bessel, fft (Fourier transform), etc. Additional mathematical functions, the orthogonal polynomials used in mathematical physics and chemistry, are available in the contributed package orthopolynom, available through the CRAN web site. The functions uniroot (Section 3.4.1) and polyroot (Section 3.4.2) are used to solve for the zeros of general functions and polynomials, respectively. In addition to those mathematical functions, R has numerous others that are useful to scientists.We’ll discuss three of them here in this section: sorting, splines, and sampling. At the end of this chapter, we’ll introduce some of the R functions that are commonly used in numerical analysis.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2009 Springer-Verlag New York
About this chapter
Cite this chapter
Bloomfield, V. (2009). Functions and Programming. In: Computer Simulation and Data Analysis in Molecular Biology and Biophysics. Biological and Medical Physics, Biomedical Engineering. Springer, New York, NY. https://doi.org/10.1007/978-1-4419-0083-8_3
Download citation
DOI: https://doi.org/10.1007/978-1-4419-0083-8_3
Published:
Publisher Name: Springer, New York, NY
Print ISBN: 978-1-4419-0084-5
Online ISBN: 978-1-4419-0083-8
eBook Packages: Physics and AstronomyPhysics and Astronomy (R0)