Help determining an equation that describes a pattern

  • Thread starter Ouka
  • Start date
In summary, the speaker is seeking help in writing an equation to describe a pattern where the value of x increases by 1 after every 92 or 89 iterations. Another person suggests using a computer program to solve the problem.
  • #1
Ouka
1
0
Hi all,

Been a looooong time since I had to use calculus for anything, but I distinctly remember failing this section of the course miserably. I can describe a pattern but for the life of me I can't write an equation that describes the pattern I see.

For a program I'm wrtting for work I need to write an equation that will describe the following pattern:

If n = 1 to 93 then x = 1
(diff = 92)
If n = 94 to 183 then x = 2
(diff = 89)
If n = 184 to 276 then x = 3
(diff = 92)
If n = 277 to 366 then x = 4
(diff = 89)
and so on and so forth...

ANy help would be greatly appriciated. I know it's possible to write a sigma equation to describe this sort of pattern, but like I said I failed this section of my calculus course miserably! Never thought I'd actually use it again!

--Ouka
 
Physics news on Phys.org
  • #2
Is there some reason you need to actually create an equation to describe this? Since you're writing a computer program, why can't you do something like this?

Code:
def f(n):
	acc = 0
	i = 0
	x = 0
	while (acc < n):
		if (i == 0):
			acc = acc + 93
		else:
			acc = acc + 90
		
		i = (i + 1) % 2
		x = x + 1
		
	return x

- Warren
 

FAQ: Help determining an equation that describes a pattern

What is the process for determining an equation that describes a pattern?

The process for determining an equation that describes a pattern involves identifying the pattern in the given data, analyzing the relationship between the independent and dependent variables, and using mathematical techniques such as regression analysis to find the most accurate equation.

How do I know if my equation accurately describes the pattern?

To determine if your equation accurately describes the pattern, you can use the equation to make predictions and compare them to the actual data. If the predicted values closely match the actual values, then the equation is likely an accurate representation of the pattern.

Can I use any type of equation to describe a pattern?

No, not all types of equations can accurately describe a pattern. It is important to select an equation that fits the type of pattern you are trying to describe. For example, linear equations are best suited for linear patterns, while exponential equations are better for exponential patterns.

What if I cannot find an equation that accurately describes the pattern?

If you cannot find an equation that accurately describes the pattern, it is possible that the data is too complex or does not follow a specific mathematical pattern. In this case, you may need to use a combination of equations or seek the help of a research statistician.

Is there a specific format for writing an equation that describes a pattern?

There is no one specific format for writing an equation that describes a pattern, as it will depend on the type of equation and the variables involved. However, it is important to clearly define and label all variables and use standard mathematical notation to ensure accuracy and clarity.

Back
Top