Learn R Programming

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

pracma (version 0.4-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.4-0

License

GPL (>= 3)

Maintainer

HwB

Last Published

May 11th, 2011

Functions in pracma (0.4-0)

ndims

Number of Dimensions
moebiusFun

Moebius Function
eulersPhi

Eulers's Phi Function
combs

Generate Combinations
fnorm

Function Norm
blanks

String of Blank Carakters
aitken

Aitken' Method
chebApprox

Chebyshev Approximation
agm

Arithmetic-geometric Mean
beep

Beep function (Matlab style)
eye

Some Basic Matrices
angle

Basic Complex Functions
chebCoeff

Chebyshev Polynomials
jacobian

Jacobian Matrix
hadamard

Hadamard Matrix
contfrac

Continous Fractions
humps

Matlab Test Functions
brentDekker

Brent-Dekker Root Finding Method
inv

Matrix Inverse (Matlab Style)
hampel

Hampel Filter
hilb

Hilbert Matrix
pchip

Hermitean Interpolation Polynomials
horner

Horner's Rule
mldivide

Matlab backslash operator
findpeaks

Find Peaks
crossn

n-dimensional Vector Cross Product
blkdiag

Block Diagonal Matrix
fibsearch

Fibonacci Search
cross

Vector Cross Product
perms

Generate Permutations
compexstep

Complex Step Derivation
extGCD

Extended Euclidean Algorithm
isempty

isempty Property
coprime

Coprimality
strcat

String Concatenation
circlefit

Fitting a Circle
golden_ratio

Golden Ratio Search
linspace

Linearly Spaced Sequences
regexp

Match regular expression
interp1

One-dimensional Interpolation
mdiag

Matrix diagonal
modinv

Modular Inverse
mtrace

Matrix trace
pracma-package

Practical Numerical Math Routines
newtonRaphson

Rootfinding through Newton-Raphson or Secant.
chebPoly

Chebyshev Polynomials
subspace

Angle between two subspaces
sorting

Sorting Routines
normest

Estimated Matrix Norm
omega

Number of Prime Factors
rosser

Rosser Matrix
fact

Factorial Function
lambertW

Lambert's W Function
pascal

Pascal Triangle
isprime

isprime Property
flipdim

Matrix flipping
strcmp

String Comparison
polyint

Anti-derivative of Polynomial
polyarea

Area of a Polygon
ezplot

Easy Function Plot
newtonsys

Newton Method for Nonlinear Systems
mod, rem

Integer Division
piecewise

Piecewise Linear Function
strfind

Find Substrings
pow2

Base 2 Power
kron

Kronecker product (Matlab Style)
rat

Continuous Fractions (Matlab Style)
dot

Scalar Product
pinv

Pseudoinverse or Generalized Inverse
roots

Polynomial Roots
rot90

Matrix Rotation
repmat

Replicate Matrix
meshgrid

Generate a Mesh Grid
reshape

Reshape Matrix
polyval

Evaluating a Polynomial
hankel

Hankel Matrix
numel

Number of Elements
newtonHorner

Newton's Root Finding Method for Polynomials.
rand

Create Random Matrices
magic

Magic Square
gammaz

Complex Gamma Function
cond

Matrix Condition
bisect

Rootfinding through Bisection
runge

Runge Function
trapz

Trapezoidal Integration
randcomb

Random Combination
GCD, LCM

GCD and LCM Integer Functions
hypot

Hypothenuse Function
eig

Eigenvalue Function (Matlab Style)
ifactor

Prime Factors
strrep

Find and replace substring
wilkinson

Wilkinson Matrix
distmat

Distance Matrix
compan

Companion Matrix
clear

Clear function (Matlab style)
vander

Vandermonde matrix
nextpow2

Next Power of 2
modpower

Power Function modulo m
polyfit

Fitting by Polynomial
primes

Prime Numbers
mrank

Matrix Rank
orth

Range Space
and, or

Logical AND, OR (Matlab Style)
nullspace

Kernel or Nullspace
barycentricInterp

Barycentric Lagrange Interpolation
diffmat

Difference Matrix
mode

Mode function (Matlab style)
strjust

Justify character vector
quad

Adaptive Simpson Quadrature
nchoosek

Binomial Coefficients
nthroot

Real nth Root
randperm

Random Permutation
find

Find function (Matlab Style)
savgol

Savitzky-Golay Smoothing
strtrim

Remove leading and trailing white space.
regexprep

Replace string using regular expression
vectornorm

Vector Norm
std

Standard Deviation (Matlab Style)
polyder

Derivative of Polynomial
polydef

Define Polynomial by Roots
toeplitz

Toeplitz Matrix
polymul

Multiplying Polynomials
logspace

Log-linearly Spaced Sequences
refindall

Find overlapping regular expression matches.
primroot

Primitive Root
size

Size of Matrix
ceil

Integer Functions (Matlab Style)
sigma

Divisor Functions