You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as a workaround I just commented the @printf statements and it works just fine, without showing the nice solution, of course.
A MWE:
using NLsolve
function f!(F, x)
F[1] = (x[1]+3)*(x[2]^3-7)+18
F[2] = sin(x[2]*exp(x[1])-1)
end
function j!(J, x)
J[1, 1] = x[2]^3-7
J[1, 2] = 3*x[2]^2*(x[1]+3)
u = exp(x[1])*cos(x[2]*exp(x[1])-1)
J[2, 1] = x[2]*u
J[2, 2] = u
end
using ForwardDiff
res = nlsolve(f!, j!, ForwardDiff.Dual.([ 0.1; 1.2]))
The text was updated successfully, but these errors were encountered:
jibaneza
changed the title
StackOverfloError on @printf at overloaded Base.show(io::IO, r::SolverResults)
StackOverflowError on @printf at overloaded Base.show(io::IO, r::SolverResults) when using DualNumbers
Nov 23, 2020
When using p0 as DualNumbers from ForwardDiff, I get the following error:
The problem comes from using DualNumbers on @printf on the function:
as a workaround I just commented the @printf statements and it works just fine, without showing the nice solution, of course.
A MWE:
The text was updated successfully, but these errors were encountered: