def dup_discriminant(f, K):
    d = dup_degree(f)

    if d <= 0:
        return K.zero
    else:
        s = (-1)**((d*(d - 1)) // 2)
        c = dup_LC(f, K)

        r = dup_resultant(f, dup_diff(f, 1, K), K)

        return K.quo(r, c*K(s))
Tests assigning to settings.MODERNIZR_JS_URL.
dataset/ETHPy150Open sympy/sympy/sympy/polys/euclidtools.py/dup_discriminant--crossover with--dataset/ETHPy150Open dgouldin/django-modernizr/modernizr/tests.py/ModernizrMiddlewareTest.test_modernizr_js_url