# Basic Mathematical Functions

[This article was first published on

Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

R can perform the usual mathematical operations, below are the functions:**Analysis with R**, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Arithmetic

**+**– addition**–**– subtraction*****– multiplication**/**– division

Trigonometry

**sin**– sine**cos**– cosine**tan**– tangent**asin**– sine inverse**acos**– cosine inverse**atan**– tangent inverse

Linear Algebra

**+**– element-wise addition**–**– element-wise subtraction*****– element-wise multiplication**/**– element-wise division**%*%**– matrix multiplication**t**– transpose**eigen**– eigenvalues and eigenvectors**solve**– inverse of matrix**ginv**– generalized inverse, requires MASS package**rbind**– combines vectors of observations horizontally into matrix class**cbind**– combines vectors of observations vertically into matrix class

Reference:

- Kabacoff, R. I.
*Matrix Algebra*. Quick-R. Retrieved April 20, 2013 here. - Trigonometric Functions.
*R Documentation.*R.2.15.1

To

**leave a comment**for the author, please follow the link and comment on their blog:**Analysis with R**.R-bloggers.com offers

**daily e-mail updates**about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.

Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.