Python Forum
How to take group of numbers summed in groups of 3...
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to take group of numbers summed in groups of 3...
#1
Hello,

I'm very new to coding but already have a practical need. This is way over my head but I thought I'd see if someone might be interested in helping me out.

I have 48 numbers. I need to know if any combination of those numbers, arranged as a group of 3, will be equal to a set 16 other numbers +/- .02. I'd like to see output in 2 categories, exact match and within tolerance.

Any and all help appreciated, and if this is inappropriate, let me know, I'll take it down.

Thanks.
Reply
#2
To get started, to make a combination take a look at the Combinatoric iterators of https://docs.python.org/3/library/itertools.html
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Ldap Search for finding user Groups ilknurg 1 1,708 Mar-11-2022, 12:10 PM
Last Post: DeaD_EyE
  Make Groups with the List Elements quest 2 1,934 Jul-11-2021, 09:58 AM
Last Post: perfringo
  Understanding Regex Groups matt_the_hall 5 2,766 Jan-11-2021, 02:55 PM
Last Post: matt_the_hall
  How to solve equations, with groups of variables and or constraints? ThemePark 0 1,644 Oct-05-2020, 07:22 PM
Last Post: ThemePark
  Create homogeneous groups with Kmeans ? preliator 0 1,500 Sep-01-2020, 02:29 PM
Last Post: preliator
  Regex: finding if three groups have a value in them Daring_T 7 3,279 May-15-2020, 12:27 AM
Last Post: Daring_T
  Listing groups tharpa 2 2,538 Nov-26-2019, 07:25 AM
Last Post: DeaD_EyE
  Print Numbers starting at 1 vertically with separator for output numbers Pleiades 3 3,661 May-09-2019, 12:19 PM
Last Post: Pleiades
  groups attribute of a groupby object question smw10c 2 4,268 Apr-27-2017, 03:18 PM
Last Post: smw10c

Forum Jump:

User Panel Messages

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