Python Forum
Solve a system of non-linear equations in Python (scipy.optimize.fsolve)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solve a system of non-linear equations in Python (scipy.optimize.fsolve)
#2
It seems to be an implicit Runge-Kutta method implementation...
You are declaring equations in the loop, that is definitely inefficient.
equations should return ndarray, so, change return (f1,f2) to return np.array([f1, f2]).
Reply


Messages In This Thread
RE: Solve a system of non-linear equations in Python (scipy.optimize.fsolve) - by scidam - Aug-14-2018, 02:37 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to run a linear model by group in Python? Betty775522 0 594 Oct-18-2023, 07:09 PM
Last Post: Betty775522
  How to optimize analog gauge reader? kadink 0 816 May-19-2023, 08:58 PM
Last Post: kadink
  Using scipy.optimize: curve_fit ju21878436312 0 1,006 Sep-24-2022, 01:15 PM
Last Post: ju21878436312
  SOLVED: scipy.optimize.least_squares problem Skytter13 2 2,982 Mar-06-2022, 10:17 AM
Last Post: Skytter13
  Help with Scipy optimize for numerical problem Jbjbjb1 0 1,584 Jun-22-2021, 05:03 AM
Last Post: Jbjbjb1
  how to solve the 'NO SUCH DIRECTORY OR FILE' in pandas, python MohammedSohail 10 15,816 May-08-2020, 07:45 AM
Last Post: nnk
  scipy.optimize.basinhopping generates unstable output bb19x11 0 1,701 Mar-09-2020, 04:07 PM
Last Post: bb19x11
  How to build linear regression by implementing Gradient Descent using only linear alg PythonSpeaker 1 2,247 Dec-01-2019, 05:35 PM
Last Post: Larz60+
  class for ODE, scipy how to switch from fsolve to newton or newton_krylov drudox 0 2,414 Aug-16-2018, 05:12 PM
Last Post: drudox
  Euler class for solve System of ODE drudox 0 2,982 Jul-08-2018, 09:31 PM
Last Post: drudox

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020