MathLink(Extras): The powers of Mathematica and Julia combined

07/28/2022, 10:40 AM — 10:50 AM UTC
Green

Abstract:

Mathematica is a powerful tool for many purposes, but it can be cumbersome to work with. This is especially clear for more automated tasks. In this short talk, I will introduce MathLink and MathLinkExtras, which enable interoperability between Julia and Mathematica. I will introduce the basic syntax of MathLink and discuss an application of automated computation of nested integrals.

Description:

Mathematica is arguably the go-to tool for your everyday mathematical needs. It can efficiently perform integrals, solve equations, find roots, refine expression, plot functions, and many more things. However, there are tasks where Mathematica performs poorly or is just plain inconvenient to work with. One such place is if/else statements and the control flow. Try, for instance, to construct programs where the algebraic manipulations depend on the functional form of the expression. Or if you want to make non-trivial variable changes inside and expression.

These limitations and many more are solved by Julia's MathLink (https://github.com/JuliaInterop/MathLink.jl) and MathLinkExtras (https://github.com/fremling/MathLinkExtras.jl) packages. The first package provides access to Mathematica/Wolfram Engine, via the Wolfram Symbolic Transfer Protocol (WSTP).

The second is "sugar on top" and provides the basic algebraic operations (+,-,*,/) for the MathLink variable types.

As a practical example, I will show how MathLink and MathLinkExtras were used in a research project[1] to compute nested gaussian integrals.

[1] M. Fremling, "Exact gap-ratio results for mixed Wigner surmises of up to 4 eigenvalues", arXiv preprint arXiv:2202.01090 (2022). (https://arxiv.org/abs/2202.01090)

Platinum sponsors

Julia ComputingRelational AIJulius Technology

Gold sponsors

IntelAWS

Silver sponsors

Invenia LabsBeacon BiosignalsMetalenzASMLG-ResearchConningPumas AIQuEra Computing Inc.Jeffrey Sarnoff

Media partners

Packt PublicationGather TownVercel

Community partners

Data UmbrellaWiMLDS

Fiscal Sponsor

NumFOCUS