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

88.9K

Last 30 days

363rd

292.8K

Last 90 days

1.1M

Last year

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

r2u CRAN

2.1K

Last 30 days

6.6K

Last 90 days

22.3K

Last year

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

autoCRAN

6

Last 7 days

13

Last 30 days

2

All-time

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

conda-forge CRAN

2.9K

Last 30 days

10K

Last 90 days

43.1K

Last year

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

bioconda CRAN

26

Last 30 days

91

Last 90 days

224

Last year

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

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 ...

Code

Structure

Lines of code

34,122

Files

639

Compiled share

0%

Has compiled src

No

Language breakdown

R 15,489 (45.4%)Tests 1,472 (4.3%)Docs 17,161 (50.3%)

API

Exported functions

448

Internal functions

40

Testing & CI

Has tests

Yes

Test-to-code ratio

0.10

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

\dontrun example ratio

8.8%

Roxygen coverage

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

3

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.1.0

System requirements

C++ standard

License

GPL (>= 3)

License flags

SPDX valid, OSI approved

History

Versions

52

First release

2011-03-18

Latest release

2025-10-22

Avg cadence

52 days

Cold removal rate

Dep drift

6

LOC over versions

v0.2-2: 4,175 LOCv0.3-0: 7,133 LOCv0.4-0: 10,146 LOCv0.5-3: 13,789 LOCv0.6-3: 16,007 LOCv0.7-3: 17,415 LOCv0.7.5: 17,499 LOCv0.8.1: 18,267 LOCv0.8.6: 19,330 LOCv0.9.1: 20,526 LOCv0.9.6: 21,162 LOCv1.0.1: 21,469 LOCv1.0.5: 22,085 LOCv1.1.0: 22,880 LOCv1.1.6: 23,740 LOCv1.2.0: 22,925 LOCv1.2.5: 23,019 LOCv1.3.1: 24,004 LOCv1.3.3: 24,706 LOCv1.3.8: 25,369 LOCv1.4.0: 25,684 LOCv1.4.5: 26,994 LOCv1.5.0: 27,554 LOCv1.5.5: 28,237 LOCv1.5.8: 28,494 LOCv1.6.1: 28,690 LOCv1.6.4: 28,996 LOCv1.7.0: 29,696 LOCv1.7.3: 30,051 LOCv1.7.7: 30,737 LOCv1.7.9: 31,080 LOCv1.8.3: 31,087 LOCv1.8.6: 31,221 LOCv1.8.8: 31,233 LOCv1.9.3: 31,853 LOCv1.9.5: 31,896 LOCv1.9.9: 32,226 LOCv2.0.4: 31,637 LOCv2.0.7: 31,927 LOCv2.1.1: 31,936 LOCv2.1.4: 32,007 LOCv2.1.5: 32,005 LOCv2.1.8: 32,168 LOCv2.2.2: 33,282 LOCv2.2.5: 33,546 LOCv2.2.9: 33,716 LOCv2.3.3: 33,707 LOCv2.3.6: 33,653 LOCv2.3.8: 33,691 LOCv2.4.2: 33,845 LOCv2.4.4: 33,979 LOCv2.4.6: 34,122 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

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