Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
fsolve
#1
Hi, I'm going to plot each variables - x and y - over a period of time. Would you please help me?
Thank you.

def f(z):
    x = z[0]
    y = z[1]
    
    f = np.zeros(2)
    f[0] = 2*x**(2.0/3.0) + y**(2.0/3.0) - 9**(1.0/3.0)
    f[1] = x**2.0/4.0 + y**(1.0/2.0) - 1.0
    return f

z = fsolve(f, [1.0, 1.0])
print(z)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  how can I solve fsolve function error? troddydeeneeeeeey 3 2,450 Oct-14-2021, 07:07 PM
Last Post: deanhystad
  How to Solving non-linear equation using scipy.optimize fsolve with variable list djhak 3 4,549 Jun-10-2020, 04:12 PM
Last Post: Gribouillis
  Defining an fsolve function to call later hegdep 1 3,080 Oct-25-2017, 07:38 AM
Last Post: hegdep

Forum Jump:

User Panel Messages

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