Learn R Programming

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

pracma (version 0.3-0)

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

83,928

Version

0.3-0

License

GPL (>= 3)

Maintainer

HwB

Last Published

April 10th, 2011

Functions in pracma (0.3-0)

numel

Number of Elements
find

Find function (Matlab Style)
mode

Mode function (Matlab style)
perms

Generate Permutations
contfrac

Continous Fractions
cross

Vector Cross Product
rand

Create Random Matrices
nchoosek

Binomial Coefficients
mldivide

Matlab backslash operator
modinv

Modular Inverse
fibsearch

Fibonacci Search
kron

Kronecker product (Matlab Style)
rot90

Matrix Rotation
regexp

Match regular expression
isprime

isprime Property
size

Size of Matrix
polyder

Derivative of Polynomial
hypot

Hypothenuse Function
rat

Continuous Fractions (Matlab Style)
roots

Polynomial Roots
modpower

Power Function modulo m
blkdiag

Block Diagonal Matrix
isempty

isempty Property
regexprep

Replace string using regular expression
angle

Basic Complex Functions
meshgrid

Generate a Mesh Grid
repmat

Replicate Matrix
randperm

Random Permutation
inv

Matrix Inverse (Matlab Style)
refindall

Find overlapping regular expression matches.
coprime

Coprimality
ceil

Integer Functions (Matlab Style)
polycnv

Multiplying Polynomials
horner

Horner's Method
linspace

Linearly Spaced Sequences
piecewise

Piecewise Linear Function
ifactor

Prime Factors
quad

Adaptive Simpson Quadrature
circlefit

Fitting a Circle
rosser

Rosser Matrix
golden_ratio

Golden Ratio Search
strtrim

Remove leading and trailing white space.
mdiag

Matrix diagonal
polyval

Evaluating a Polynomial
bisect

Rootfinding through Bisection
pinv

Pseudoinverse or Generalized Inverse
mtrace

Matrix trace
reshape

Reshape Matrix
polyarea

Area of a Polygon
outlierMAD

Hampel Filter
compan

Companion Matrix
dot

Scalar Product
pracma-package

Practical Numerical Math Routines
fnorm

Function Norm
hilb

Hilbert Matrix
magic

Magic Square
flipdim

Matrix flipping
beep

Beep function (Matlab style)
wilkinson

Wilkinson Matrix
humps

Matlab Test Functions
extGCD

Extended Euclidean Algorithm
vnorm

Vector Norm
pascal

Pascal Triangle
combs

Generate Combinations
findpeaks

Find Peaks
nthroot

Real nth Root
interp1

One-dimensional Interpolation
strcmp

String Comparison
polydef

Define Polynomial by Roots
brentDekker

Brent-Dekker Root Finding Method
logspace

Log-linearly Spaced Sequences
strfind

Find Substrings
distmat

Distance Matrix
clear

Clear function (Matlab style)
crossn

n-dimensional Vector Cross Product
eig

Eigenvalue Function (Matlab Style)
primroot

Primitive Root
strcat

String Concatenation
polyint

Anti-derivative of Polynomial
eye

Some Basic Matrices
polyfit

Fitting by Polynomial
strjust

Justify character vector
blanks

String of Blank Carakters
ndims

Number of Dimensions
std

Standard Deviation (Matlab Style)
primes

Prime Numbers
randcomb

Random Combination
savgol

Savitzky-Golay Smoothing
hankel

Hankel Matrix
trapz

Trapezoidal Integration
GCD, LCM

GCD and LCM Integer Functions
nextpow2

Next Power of 2
newton

Rootfinding through Newton or Secant
mod, rem

Integer Division
pow2

Base 2 Power
runge

Runge Function
vander

Vandermonde matrix
strrep

Find and replace substring