Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Plotting of equations
#1
import numpy as np

import matplotlib.pyplot as plt

l= 1.5

m= 2.5

g= 9.81

d= 2.7

k= 9.08

angles = np.arange(360) / 180 * np.pi

x = ((m * g)/(k * d)) * np.tan(angles)

y = 1 - ((2 * l) / d) * np.sin(angles)

plt.plot(x,y)

plt.show()


Im trying to plot these two equations but they wont come up, although if i plot eqution y by itself it does come up. My aim is to plot these two equations and note down where they meet. How could i do that?
Reply


Messages In This Thread
Plotting of equations - by mudezda1 - Feb-11-2019, 03:52 PM
RE: Plotting of equations - by scidam - Feb-13-2019, 07:26 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  plotting from 3 differential equations grknkilicaslan 1 1,637 Jul-08-2020, 03:38 PM
Last Post: Gribouillis
  plotting equations Agusben 2 2,055 Apr-06-2020, 04:16 AM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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