Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
sofianehaddad committed Nov 21, 2024
1 parent f62d74e commit b5b9e0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/test/t_LeastSquaresEquationsSolver_std.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
ot.TESTPREAMBLE()

# Analytical construction */
input = ["x", "y"]
inputs = ["x", "y"]
formulas = ["y*x-sin(2*x)", "1 + cos(y) + x"]
analytical = ot.SymbolicFunction(input, formulas)
analytical = ot.SymbolicFunction(inputs, formulas)
algo = otexp.LeastSquaresEquationsSolver()
algo.setResidualError(1e-10)
algo.setMaximumCallsNumber(1000)
starting_point = [2.0, 1.0]
print("Solve ", formulas, "= [0,0] for ", input)
print("Solve ", formulas, "= [0,0] for ", inputs)
solution = algo.solve(analytical, starting_point)
print("[x,y] = ", solution)
print("algo=", algo)
Expand Down

0 comments on commit b5b9e0a

Please sign in to comment.