Learn R Programming

⚠️There's a newer version (1.9.9) of this package.Take me there.

pracma (version 0.2-2)

Practical Numerical Math Functions

Description

This package provides R implementations of more advanced math functions from Matlab and Octave (and the Euler Math Toolbox) with a special view on optimization and time series routines.

Copy Link

Version

Install

install.packages('pracma')

Monthly Downloads

88,346

Version

0.2-2

License

GPL (>= 3)

Maintainer

HwB

Last Published

March 19th, 2011

Functions in pracma (0.2-2)

nthroot

Real nth Root
distmat

Distance Matrix
rot90

Matrix Rotation
wilkinson

Wilkinson Matrix
angle

Basic Complex Functions
mtrace

Matrix trace
polyarea

Area of a Polygon
extgcd

Extended Euclidean Algorithm
linspace, logspace

Linearly Spaced Sequences
nextpow2

Next Power of 2
reshape

Reshape Matrix
inv

Matrix Inverse (Matlab Style)
pow2

Base 2 Power
flipdim

Matrix flipping
randperm

Random Permutation
size

Size of Matrix
crossn

n-dimensional Vector Cross Product
rosser

Rosser Matrix
vnorm

Vector Norm
hilb

Hilbert Matrix
pracma-package

Practical Numerical Math Routines
roots

Polynomial Roots
dot

Scalar Product
isempty

isempty Property
blkdiag

Block Diagonal Matrix
coprime

Coprimality
pinv

Pseudoinverse or Generalized Inverse
kron

Kronecker product (Matlab Style)
eig

Eigenvalue Function (Matlab Style)
polyint

Anti-derivative of Polynomial
gcd, lcm

GCD and LCM Integer Functions
savgol

Savitzky-Golay Smoothing
compan

Companion Matrix
eye

Some Basic Matrices
modinv

Modular Inverse
mod, rem

Integer Division
combs, randcomb

Generate Combinations
pascal

Pascal Triangle
trapz

Trapezoidal Integration
ceil

Integer Functions (Matlab Style)
numel

Number of Elements
polyfit

Fitting by Polynomial
hypot

Hypothenuse Function
ndims

Number of Dimensions
cross

Vector Cross Product
std

Standard Deviation (Matlab Style)
polyval

Evaluating a Polynomial
perms

Generate Permutations
isprime

isprime Property
polydef

Define Polynomial by Roots
vander

Vandermonde matrix
mdiag

Matrix diagonal
polyder

Derivative of Polynomial
strcat

String Concatenation
find

Find function (Matlab Style)
hankel

Hankel Matrix
primes

Prime Numbers
nchoosek

Binomial Coefficients
rand

Create Random Matrices
strcmp

String Comparison
repmat

Replicate Matrix
ifactor

Prime Factors
horner

Horner's Method