Python Forum
plotting from 3 differential equations
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
plotting from 3 differential equations
#1
Hi,
I do not know how to get x-z plot from the equations below. I tried many ways but I could not achieve it. This is very important for my research. Thank you

dtheta/dt = -(1/2)*(cos(x)*cos(z)+sin(theta)/0.1)
dx/dt = 20*x/sin(theta) - (1/2)*cos(x)*sin(z)
dz/dt = 20*z/cos(theta) + (1/2)*sin(x)*cos(z)

t(time) spans between 0,2000

initial conditions:
theta0=pi/4
x0=-pi/2
z0=-pi/2
Reply
#2
grknkilicaslan Wrote:I tried many ways but I could not achieve it
What have you tried? You could use scipy.integrate.solve_ivp()
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Differential equations with initial condition in Python (change a working code) Euler2 1 1,826 May-29-2020, 04:06 PM
Last Post: Euler2
  plotting equations Agusben 2 2,047 Apr-06-2020, 04:16 AM
Last Post: deanhystad
  Plotting of equations mudezda1 1 2,368 Feb-13-2019, 07:26 AM
Last Post: scidam

Forum Jump:

User Panel Messages

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