# log: s04b_homotopy_P56
# started (UTC): 2026-11-19T02:47:05+00:00
# python 3.12.14 on Darwin arm64
# argv: s04b_functional_homotopy.py 56 64
  P=56: c=4 seed solved by continuation in P [146.8s], Delta1 = 1.0000001078968
  c=  4 P= 56: Delta1^(P) = 1.0000001078968  c/Delta1 = 4.000000  gvac_rel=2.7e-203 pos=True rem=1.0e-169 t_int=0.09134298382651648 f_neg=0.5000000000 u_g(0)=-0.47709 [173s]
  c=  8 P= 56: Delta1^(P) = 1.5065342832655  c/Delta1 = 5.310201  gvac_rel=3.5e-213 pos=True rem=8.2e-169 t_int=0.08522074693541296 f_neg=0.5000000000 u_g(0)=-0.51044 [287s]
  c= 12 P= 56: Delta1^(P) = 2.0001046020532  c/Delta1 = 5.999686  gvac_rel=7.6e-213 pos=True rem=6.0e-172 t_int=0.08333250980518728 f_neg=0.5000000000 u_g(0)=-0.50346 [369s]
  c= 16 P= 56: Delta1^(P) = 2.48586810553  c/Delta1 = 6.436383  gvac_rel=1.8e-213 pos=True rem=7.5e-175 t_int=0.08242365797246673 f_neg=0.5000000000 u_g(0)=-0.49403 [453s]
# finished (UTC): 2026-11-19T02:55:49+00:00  status: ERROR ZeroDivisionError()
Traceback (most recent call last):
  File "/private/tmp/bh-local-1119/profile/data/notebooks/cmwmxj7060000eepizqfv4l4w/5c7e073b-1982-426a-850e-320449223c07/data/code/s04b_functional_homotopy.py", line 121, in <module>
    res = main(P, cmax)
          ^^^^^^^^^^^^^
  File "/private/tmp/bh-local-1119/profile/data/notebooks/cmwmxj7060000eepizqfv4l4w/5c7e073b-1982-426a-850e-320449223c07/data/code/s04b_functional_homotopy.py", line 112, in main
    record(int(target), tt, dd)
  File "/private/tmp/bh-local-1119/profile/data/notebooks/cmwmxj7060000eepizqfv4l4w/5c7e073b-1982-426a-850e-320449223c07/data/code/s04b_functional_homotopy.py", line 71, in record
    ver = S.verify(ci, P, t, d, alpha, v, with_roots=True, with_mass=True)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/private/tmp/bh-local-1119/profile/data/notebooks/cmwmxj7060000eepizqfv4l4w/5c7e073b-1982-426a-850e-320449223c07/data/code/s04_functional_newton.py", line 218, in verify
    pieces = [mp.quad(gV, [pts[i], pts[i + 1]]) for i in range(len(pts) - 1)]
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/bh-local-1119/profile/data/runtime/envs/default-python/lib/python3.12/site-packages/mpmath/calculus/quadrature.py", line 742, in quad
    v, err = rule.summation(f, points[0], prec, epsilon, m, verbose)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/bh-local-1119/profile/data/runtime/envs/default-python/lib/python3.12/site-packages/mpmath/calculus/quadrature.py", line 230, in summation
    err = self.estimate_error(results, prec, epsilon)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/bh-local-1119/profile/data/runtime/envs/default-python/lib/python3.12/site-packages/mpmath/calculus/quadrature.py", line 194, in estimate_error
    D4 = min(0, max(D1**2/D2, 2*D1, D3))
                    ~~~~~^~~
  File "/tmp/bh-local-1119/profile/data/runtime/envs/default-python/lib/python3.12/site-packages/mpmath/ctx_mp_python.py", line 286, in __truediv__
    val = mpf_div(sval, oval, prec, rounding)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/bh-local-1119/profile/data/runtime/envs/default-python/lib/python3.12/site-packages/mpmath/libmp/libmpf.py", line 844, in mpf_div
    raise ZeroDivisionError
ZeroDivisionError
