Git Product home page Git Product logo

mbspringer's Introduction

mbspringer

Overview

The Supplementary Material to

Mellin-Barnes Integrals: A Primer on Particle Physics Applications

Springer Nature 2022, Lecture Notes in Physics

Link to the book. Another copy of the material can be found at https://jgluza.us.edu.pl/mbspringer/

Getting Started

In the book examples the following tools have been used:

These examples are tested under:

  • Mathematica 12.0.0.0

For viewing the .nb files one can use Wolfram Player.

HowTo

  • MB.m requires CUBA library for numerical integration and CERNlib for gamma functions.

  • To find where the problem is, one can run MBintegrate with the option Debug->True. This option doesn't erase fortran source files, and one can compile them manually to see all errors and warnings.

  • For simple tests to be independent on Cernlib and CUBA, one can use MBintegrate with option MaxNIntegrateDim -> your_dim. In this case, MB.m will use the NIntegrate function from Mathematica. Also, one can pass NIntegrate options to MBintegrate.

  • MB.m is distributed as it is and without changes since ~2006. To make it works with new libraries and compilers, one should make some changes

  • f77 is now a part of gfortran, so you should change in MB.m line962: Run["f77 -O -o", exec, source, "-L. -lmathlib -lkernlib -lcuba"] to Run["gfortran -O -o", exec, source, "-L. -lmathlib -lkernlib -lcuba"].

  • MB works by default with Cuba 1.7 or older. It is because function calls are different for different versions (you can check it in Cuba documentation).

You can use the old version or for Cuba 4.x one should modify this part: lines 908-910 and 912-914 from

  "      call vegas(ndim, ncomp, integrand, epsrel, epsabs, flags,\n",
  "     &           mineval, maxeval, nstart, nincrease,\n",
  "     &           neval, fail, integral, error, prob)\n",

  "      call cuhre(ndim, ncomp, integrand, epsrel, epsabs, flags,\n",
  "     &           mineval, maxeval, key, nregions,\n",
  "     &           neval, fail, integral, error, prob)\n",

to

  "      call vegas(ndim, ncomp, integrand, 0, 1,\n",
  "     &           epsrel, epsabs, 0, 0,\n",  
  "     &           mineval, maxeval, nstart, nincrease, 1000,\n",
  "     &           0, \"\", -1,\n",
  "     &           neval, fail, integral, error, prob)\n",

  "      call cuhre(ndim, ncomp, integrand, 0, 1,\n",
  "     &           epsrel, epsabs, 0,\n",
  "     &           mineval, maxeval, key,\n",
  "     &           \"\", -1,\n",
  "     &           nregions, neval, fail, integral, error, prob)\n",
  • CERNlib is usually not a problem since it is in any Debian-based Linux distribution repository.

License

History

  • Nov 2022: first release

mbspringer's People

Contributors

idubovyk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.