.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/07_sunset_taylor.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_07_sunset_taylor.py: Equal-mass vacuum and Euclidean continuation ============================================================ A separate Taylor method fills the equal-mass gap in the RMT charts. .. GENERATED FROM PYTHON SOURCE LINES 7-19 .. rst-class:: sphx-glr-script-out .. code-block:: none 0 2.343907238689458890601562 equal-mass sunset / transformed Taylor series 1 2.236792700212646510529264 equal-mass sunset / transformed Taylor series 3 1.697946461195426121941926 equal-mass sunset / transformed Taylor series 6 1.052354070777636885702782 equal-mass sunset / transformed Taylor series | .. code-block:: Python import mpmath as mp from ramanujan_qft import ScalarEdge, ScalarGraph, integrate_sunset_taylor, integrate_graph_rmt for momentum in (0, 1, 3, 6): graph = ScalarGraph([ScalarEdge(0, 1, 1)]*3, {0: [momentum], 1: [-momentum]}) result = integrate_sunset_taylor(graph, dps=25) print(momentum, mp.nstr(result.value, 25), result.method) if momentum == 6: rmt = integrate_graph_rmt(graph, dps=25) with mp.workdps(40): assert abs(result.value-rmt.value) <= result.error_estimate+rmt.error_estimate .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.822 seconds) .. _sphx_glr_download_auto_examples_07_sunset_taylor.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: 07_sunset_taylor.ipynb <07_sunset_taylor.ipynb>` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: 07_sunset_taylor.py <07_sunset_taylor.py>` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: 07_sunset_taylor.zip <07_sunset_taylor.zip>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_