-
-
Save mo271/649b781bb362931de9483c41214345eb to your computer and use it in GitHub Desktop.
trying out formula https://mathoverflow.net/a/375630/39495
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [1]: from mpmath import mp | |
In [2]: def F(u): | |
...: return mp.quad(lambda phi: (u*mp.sin(phi)**2)/(mp.sqrt(mp.cos(phi)**2 + u**2*mp.sin(phi)**2)), [0, mp.pi/2]) | |
...: def G(u): | |
...: return mp.quad(lambda phi: (u*mp.sin(phi)**2)/(mp.sqrt(mp.sin(phi)**2 + u**2*mp.cos(phi)**2)), [0, mp.pi/2]) | |
...: def w(u): | |
...: return mp.log(F(u)/G(u)) | |
...: def L(u): | |
...: return F(u)*G(u) | |
...: def w_prime(u): | |
...: return mp.diff(w, u) | |
...: def integrand(u): | |
...: return L(u)**2*mp.sinh(w(u))*w_prime(u) | |
...: | |
In [3]: z = -6*mp.pi**4*mp.quad(integrand, [0,1]); z | |
Out[3]: mpf('9.1735857548460995') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment