Skip to main content

Part of the book series: Biological and Medical Physics, Biomedical Engineering ((BIOMEDICAL))

  • 2251 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 109.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Victor Bloomfield .

Rights and permissions

Reprints 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

Publish with us

Policies and ethics