Skip to content

pracma

Practical Numerical Math Functions

v2.4.6 · Oct 22, 2025 · GPL (>= 3)

Description

Provides a large number of functions from numerical analysis and linear algebra, numerical optimization, differential equations, time series, plus some well-known special mathematical functions. Uses 'MATLAB' function names where appropriate to simplify porting.

Downloads

CRAN

90.4K

Last 30 days

365th

292.6K

Last 90 days

1.1M

Last year

Trend: -11.9% (30d vs prior 30d)

r2u CRAN

2.3K

Last 30 days

7.6K

Last 90 days

21.6K

Last year

Trend: +9.3% (30d vs prior 30d)

autoCRAN

5

Last 7 days

10

Last 30 days

2

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running massageExamples to create ‘pracma-Ex.R’ failed
Error in file(out, "wt") : cannot open the connection
Calls: <Anonymous> -> Rd2ex -> file
In addition: Warning message:
In file(out, "wt") :
  cannot open file '/tmp/RtmpGHJzHj/filed62b52829f01b/muller.R': No space left on device
Execution halted
 NONE
WARNING 12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Jun 7, 2026
WARNING r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Hans W. Borchers <hwborchers@googlemail.com>’

Reading Rd files failed with message:
  cannot open the connection
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 30, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-devel-macos-arm64

examples

Running examples in ‘pracma-Ex.R’ failed
The error most likely occurred in:

> ### Name: eig
> ### Title: Eigenvalue Function (Matlab Style)
> ### Aliases: eig
> ### Keywords: array
> 
> ### ** Examples
> 
>   eig(matrix(c(1,-1,-1,1), 2, 2))   #=> 2 
...[truncated]...
,1i,-1i,0), 2, 2))  # real values

 *** caught segfault ***
address 0x1, cause 'invalid permissions'

Traceback:
 1: eigen(a, only.values = TRUE)
 2: eig(matrix(c(0, 0+1i, -(0+1i), 0), 2, 2))
An irrecoverable exception occurred. R is aborting now ...

Reverse Dependencies (446)

imports

AVGAS AdapSamp AdaptGauss AmoudSurv AvInertia BFpack BIDistances BINCOR BMRMM BTWAR CASCORE CBAModel CFM CMTFtoolbox CRABS CircaCP ClaimsProblems Clustering CoSMoS CompClassMetrics ConsRankClass CopulaCenR CopulaSCR CovTools CoxAIPW CoxBcv DAISIE DChaos DRsurvCRT DanielBiostatistics10th DataVisualizations DeBoinR DiSCos DiscreteDists DistributionOptimization EBCHS EMSC ERPeq EncompassTest ExGaussEstim ExtremeRisks FCVAR FDX FamEvent FastSegmentation FedIRT FitDynMix FluxPoint ForestFit GCEstim GENMETA GEint GJRM GUILDS GWpcor GeoModels GramQuad GregoryQuadrature HDANOVA HDRFA Hmsc HonestDiD IALS IRISMustangMetrics IRISSeismic JSparO KFPCA KGode LLMing LMoFit LOMAR LSE LSVAR MCARtest MECfda MIDASim MIRES MMLR MOsemiind MSTest MVNGmod MVSKmod MaOEA MarZIC MatrixCorrelation MaxIntTools MicrobTiSDA MixSemiRob MortalityTables MultiATSM MultiKink MultiLevelOptimalBayes NAC NPLStoolbox NetworkDistance OpeNoise PCRedux PDEnaiveBayes PEIP PFIM PH1XBAR PJFM PKbioanalysis POCRE PPMiss PSDistr PScr R.ComDim R2Addhaz RBE3 RCT RMCDA RMLPCA RMT4DS RSizeBiased Radviz RchivalTag RegCombin RespirAnalyzer RiemBase RtsEva SADISA SCORNET SDLfilter SFPL SHT SMDIC SOMnmR ScatterDensity SeaSondeR SensIAT SimplexRegression SmCCNet SmoothPLS SpatialGraph SyScSelection TCA TCIU TRES TensorClustering TensorPreAve TesiproV TestGardener TimeTraits TrendInTrend Unico VBMS VBphenoR VBsparsePCA WCM abglasso actilifecounts actuary adace admix aedseo ahnr airt albatross appRiori aramappings ashapesampler asm astronomR batteryreduction bayesQRsurvey bccp bigmds bikm1 binfunest binsmooth bioSNR biometryassist bndovb bootCT bqror carfima cauphy ccar3 ccrtm cdfquantreg cdnbcr celltrackR centrifugeR cgmanalysis cholera ciuupi ciuupi2 complex complexlm conf control cooltools copre cpop crandep crqa ctmm dacc digiRhythm dobin docore dpcR drcarlate dwp ePCR eemR eventstudyr evoTS extrafrail fHMM factormodel fdaACF fdaSP fdapace fdarep findGSEP fishmechr fitConic fitdistcp flippant fluspect fmrihrf fmriqa frechet gallery garma gasmodel gemR gen5helper genSEIR gentransmuted geodiv gluvarpro gmsp gmvjoint gofIG greybox gsMeanFreq gsignal hwep hySAINT hydraulics hypr imagefluency impactr inctools invivoPKfit jage klovan ks l1rotation lactater lavacreg less likelihoodAsy lillies logKDE lomb lspartition ltmix mGSFPCA maotai mfpp microsynth mixlm mnt modelSelection mombf morpheus mousetrap multIntTestFunc multiDoE multiblock multilevLCA multiobjectiveMDP musicMCT mutSignatures mvDFA netcom neutralitytestr nev new.dist nimble nimbleQuad nn2poly nomogramEx nvctr nvmix opdisDownsampling optimizeR optimx oreo orthoDr pCODE pGPx parafac4microbiome phase porridge poweRlaw powerSurvEpi ppweibull pql pressuRe pvaluefunctions randnet raptools ravetools rbbnp rbcc reddPrec ref.ICAR refreg resourcecode rgl.cry robcat robcp robust2sls robustbetareg rocbc roclab rospca rrcov3way rregm rticulate samplr sampsizeval sazedR scanCP scov sdrt secsse semds sglg shattering shinyNORRRM simode sindyr skedastic skewunit slanter smqf snSMART soundecology spant staRdom stabilo stepdownfdp stochLAB stodom stoppingrule survalis survivalsvm tacmagic tagtools tensorTS tensorregress tepr tf tidyrhrv tpn trace treefit ucie ugomquantreg univariateML vecsets visualFields visvow vmeasur voigt workloopR x3ptools zeitgebr

Dependency Network

Dependencies Reverse dependencies CommonMean.Copula FAS GORCure GRCRegression ICGOR MAZE NonParRolCor OBRE PanelTM RVCompare ReDirection RolWinMulCor TapeR Tex4exams celestial +431 more reverse deps pracma

Version History

53 tracked
new 2.4.6 Mar 10, 2026
updated 2.4.6 ← 2.4.4 diff Oct 21, 2025
updated 2.4.4 ← 2.4.2 diff Nov 9, 2023
updated 2.4.2 ← 2.3.8 diff Sep 21, 2022
updated 2.3.8 ← 2.3.6 diff Mar 3, 2022
updated 2.3.6 ← 2.3.3 diff Dec 6, 2021
updated 2.3.3 ← 2.2.9 diff Jan 22, 2021
updated 2.2.9 ← 2.2.5 diff Dec 14, 2019
updated 2.2.5 ← 2.2.2 diff Apr 8, 2019
updated 2.2.2 ← 2.1.8 diff Dec 1, 2018
updated 2.1.8 ← 2.1.5 diff Oct 15, 2018
updated 2.1.5 ← 2.1.4 diff Aug 25, 2018
updated 2.1.4 ← 2.1.1 diff Jan 29, 2018
updated 2.1.1 ← 2.0.7 diff Nov 20, 2017
updated 2.0.7 ← 2.0.4 diff Jun 20, 2017