Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Graph identifier
#4
This is jjst a brut force method with no complications.
Let for instance assume that movements are stores in a list

mov1 = [10000, 10120, 10080, 9990, 10050, 10210]

The next step is to find the differences between each element

diff_mov1 = [0, 120, -40, -90, 60, 160]

Now do the same for the other movement

mov2 = [5000, 5120, 5080, 4990, 5050, 5210]
diff_mov2 = [0, 120, -40, -90, 60, 160]

diff_mov1 == diff_mov2
Reply


Messages In This Thread
Graph identifier - by samuelbachorik - Oct-04-2020, 08:22 AM
RE: Graph identifier - by Gribouillis - Oct-04-2020, 08:24 AM
RE: Graph identifier - by samuelbachorik - Oct-04-2020, 08:26 AM
RE: Graph identifier - by hshivaraj - Oct-04-2020, 12:52 PM
RE: Graph identifier - by scidam - Oct-04-2020, 01:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SyntaxError: invalid character in identifier neogeo 2 3,232 Jul-27-2019, 11:11 AM
Last Post: neogeo
  SyntaxError: invalid character in identifier ricardodepaula 2 8,655 Jul-25-2019, 09:20 PM
Last Post: ricardodepaula
  Invalid Identifier In Long Text File asilverg 1 2,213 Jan-25-2019, 11:59 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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