Skip to main content
Taylor & Francis Group Logo
Advanced Search

Click here to search books using title name,author name and keywords.

  • Login
  • Hi, User  
    • Your Account
    • Logout
Advanced Search

Click here to search books using title name,author name and keywords.

Breadcrumbs Section. Click here to navigate to respective pages.

Chapter

Calculating

Chapter

Calculating

DOI link for Calculating

Calculating book

Calculating

DOI link for Calculating

Calculating book

ByVictor A. Bloomfield
BookUsing R for Numerical Analysis in Science and Engineering

Click here to navigate to parent product.

Edition 1st Edition
First Published 2014
Imprint Chapman and Hall/CRC
Pages 30
eBook ISBN 9781315373799

ABSTRACT

R can be used, without any programming, as a powerful calculator. It has all the standard arithmetic operators and functions, which operate on numeric or complex vectors (including scalars, which are vectors of length 1).

Arithmetic operators: The binary arithmetic operators are +, -, *, /, ^ (exponentiation), %% (mod), and %/% (integer division).

Logarithms and exponentials: log (natural log), log10, (base 10 log), log2 (base 2 log), log (x,b) (log of x to base b). log1p(x) computes log(1+x) accurately for |x| << 1.

exp computes the exponential function, and expm1 computes exp(x)-1 accurately for |x| << 1.

Trigonometric functions : cos(x), sin(x), tan(x), acos(x), asin(x), atan(x), atan2(y,x) where angles are in radians and x and y are numeric or complex scalars or vectors. atan2(y,x) = atan(y/x) for positive arguments. The pracma package, to which we will refer later, adds more trigonometric functions: cot(x), csc(x), sec(x), acot(x), acsc(x), asec(x).

Hyperbolic functions : cosh(x), sinh(x), tanh(x), acosh(x), asinh(x), atanh(x). pracma adds coth(x), csch(x), sech(x), acoth(x), acsch(x), asech(x).

Miscellaneous mathematical functions: abs(x), sqrt(x).

T&F logoTaylor & Francis Group logo
  • Policies
    • Privacy Policy
    • Terms & Conditions
    • Cookie Policy
    • Privacy Policy
    • Terms & Conditions
    • Cookie Policy
  • Journals
    • Taylor & Francis Online
    • CogentOA
    • Taylor & Francis Online
    • CogentOA
  • Corporate
    • Taylor & Francis Group
    • Taylor & Francis Group
    • Taylor & Francis Group
    • Taylor & Francis Group
  • Help & Contact
    • Students/Researchers
    • Librarians/Institutions
    • Students/Researchers
    • Librarians/Institutions
  • Connect with us

Connect with us

Registered in England & Wales No. 3099067
5 Howick Place | London | SW1P 1WG © 2021 Informa UK Limited