pysolver_view.roots.problems.powell_badly_scaled module

pysolver_view.roots.problems.powell_badly_scaled module#

class pysolver_view.roots.problems.powell_badly_scaled.PowellBadlyScaledProblem[source]#

Bases: BenchmarkProblem

MINPACK problem 3: f = (1e4*x*y-1, exp(-x)+exp(-y)-1.0001).

Standard start is (0, 1); coordinate scales (1e-4, 10) are supplied explicitly to every solver. The equations themselves are not rescaled.

gradient(x)[source]#

Return the analytic 2-by-2 Jacobian of the product and exponential residuals.

residual(x)[source]#

Evaluate the coupled product/exponential equations, raising DomainError before exponential overflow.