cuba
« Back to VersTracker
Description:
Library for multidimensional numerical integration
Type: Formula  |  Latest Version: 4.2.2@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Other
Tags: scientific-computing numerical-integration mathematics library monte-carlo
Install: brew install cuba
About:
Cuba is a library for multidimensional numerical integration, providing four algorithms for adaptive Monte Carlo integration. It offers a thread-safe, C-based implementation with interfaces for C, C++, Fortran, and Python. The library is designed for high-performance scientific computing, enabling precise integration over complex, high-dimensional domains.
Key Features:
  • Adaptive integration algorithms (Suave, Divonne, Cuhre, Vegas)
  • Thread-safe and reentrant for parallel computations
  • Multiple language interfaces (C, C++, Fortran, Python)
  • High-precision results for complex integrands
Use Cases:
  • Scientific computing and physics simulations requiring high-dimensional integration
  • Statistical analysis and computational mathematics research
Alternatives:
  • QUADPACK – Fortran library for 1D integration; less suited for high-dimensional problems compared to Cuba's specialized Monte Carlo methods.
  • Cubature – C library for adaptive integration; focuses on lower dimensions and lacks Cuba's variety of Monte Carlo algorithms.
License: LGPL-3.0-only
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, arm64_monterey, arm64_big_sur, sonoma, ventura, monterey, big_sur, catalina, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit