Cubic graphs to equation confusion

In summary, the speaker has a sensor connected to a microcontroller through an ADC. They have figured out the conversion from ADC values to real terms, but the math takes too long to run in code. They are considering using a lookup table, but are concerned about the large memory it would take up. They have put the results into Excel and the resulting graph appears to be a "S" shape, which they believe is a cubic graph. They are confused because most cubic graphs appear as a backwards N shape, but theirs looks like it has been rotated 90 degrees. They are asking for help in identifying the type of graph and how to calculate the formula from the points on the graph. Other participants suggest using software such as LoggerPro or Matlab
  • #1
Siksissk
8
0
Hi,

I have a sensor going into a microcontroller via a adc.

I have worked out the conversion from the adc value into real terms.

Now the math takes too long in code to run this. and a look up table with 1024 elements will fill my program memory very quickly.

So I have put the results into excel, and the graph has come up as a "S" shape, Now I believe this is a cubic graph, but my confusion lies that a general google search shows cubic graphs as backwards N shape, where as mine looks to be spun around by 90 degrees.

So,

1: is the graph I have, Cubic, or something else?
2: how can I work out the formula (a^3 + b^2 + c) from points in my graph?

Thanks
 
Mathematics news on Phys.org
  • #2
Maybe you should post the print screen of the graph, in order to help us to recognize the type of function. Anyway, I think that Excel has a function to fit your data with a function, if there is the software automatically tells you the coefficents ;)
A software that does that is LoggerPro, and probably even Matlab can help you.
 
  • #3
I think we really should see a picture of your plot, because it sounds like you don't actually have a function, unless you are accidentally plotting the dependent variable on the vertical axis and the independent variable on the horizontal axis, or if your curve is a very 'thin' s. For example, if your curve is "curvy" enough that it fails the vertical line test (a vertical line should only cross your curve at one point), then you don't have a function. However, if you swapped the horizontal and vertical axes by mistake, then you would have a function, because rotating it should make it pass the vertical line test.
 
  • #5
for reaching out with your question. I can understand your confusion with the shape of your graph and its relation to a cubic equation. It is important to remember that cubic graphs can have various orientations and shapes depending on the coefficients of the equation.

To answer your first question, it is possible that the graph you have is a cubic graph, but without seeing the actual graph and the data points, it is difficult to say for sure. It is also possible that it could be a different type of function, such as a quadratic or exponential, which can also have similar shapes to a cubic graph.

As for your second question, there are a few ways to work out the formula for your graph. One method is to use regression analysis, which is a statistical technique used to find the best-fit equation for a set of data points. This method involves inputting your data points into a software program, such as Excel, and using the regression tool to find the equation that best fits the data. Another method is to manually plot the points on a graph and use your knowledge of cubic equations to estimate the coefficients. However, this method may not be as accurate as regression analysis.

I hope this helps clarify some of your confusion. If you need further assistance, I recommend consulting with a math or data analysis expert who can help you with finding the best-fit equation for your data. Good luck with your research!
 

1. What is the difference between a cubic graph and a cubic equation?

A cubic graph is a visual representation of a cubic equation, which is a polynomial equation of the form ax^3 + bx^2 + cx + d = 0. The cubic graph plots the values of x and y, while the cubic equation provides the algebraic expression.

2. How do you convert a cubic graph to a cubic equation?

To convert a cubic graph to a cubic equation, you need to identify the coordinates of three points on the graph. These points will be used to create three equations, which can then be solved simultaneously to find the values of a, b, c, and d in the cubic equation.

3. Can a cubic graph have more than one cubic equation?

No, a cubic graph can have only one cubic equation. This equation represents the unique relationship between the x and y values plotted on the graph.

4. What is the process for graphing a cubic equation?

To graph a cubic equation, you can either use a graphing calculator or manually plot points on a graph. To plot points manually, choose a few values for x, plug them into the equation to find the corresponding y values, and then plot those points on the graph. Once you have a few points, you can connect them to create the cubic graph.

5. How can I determine the roots of a cubic equation from its graph?

The roots of a cubic equation are the x-intercepts of its graph, where the graph crosses the x-axis. These can be found by solving the cubic equation for x, setting the equation equal to 0, and then using techniques such as factoring or the quadratic formula to find the roots.

Similar threads

  • General Math
Replies
3
Views
1K
Replies
8
Views
910
  • Introductory Physics Homework Help
Replies
10
Views
675
Replies
1
Views
821
Replies
4
Views
1K
  • General Math
Replies
8
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
92
  • Introductory Physics Homework Help
Replies
2
Views
970
  • General Math
Replies
2
Views
4K
Replies
8
Views
1K
Back
Top