Ask Your Question
3

Is there a polynomial curve fit function(s) in Calc ? [closed]

asked 2012-02-20 23:18:15 +0100

Vincenzo gravatar image

Is there a polynomial curve fit function(s) in Calc ?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-03-15 21:20:32.798322

4 Answers

Sort by » oldest newest most voted
5

answered 2014-04-20 03:58:40 +0100

oweng gravatar image

As per the comments by @Pedro it is time to provide an updated answer to this question. The v4.2 release notes under Chart indicate these trend line enhancements:

  • Support more than one trend line per series (Tomaž Vajngerl)
  • Force intercept for trend lines fdo#40314 (Tomaž Vajngerl)
  • Extrapolation of trend lines fdo#40316 (Tomaž Vajngerl)
  • Polynomial trend lines fdo#35712 (Tomaž Vajngerl)
  • Moving average trend lines fdo#40315 (Tomaž Vajngerl)

Thus, with respect to this question, there is now a polynomial curve fit function. These enhancements cover all the issues (shortcomings) listed by the CorePolyGUI extension, and a few others as well. The CorePolyGUI extension may now therefore be redundant.

edit flag offensive delete link more
1

answered 2012-02-21 16:30:07 +0100

Lee L gravatar image

updated 2015-10-28 01:48:29 +0100

As noted by others, this answer is now outdated. There is now a polynomial curve fitting function built into the LibreOffice chart/graphing facility.

CorelPolyGUI is an extension for LibreOffice that implements polynomial curve fits.

You can find it here: http://extensions.libreoffice.org/ext...

You can also use the linest function. LibreOffice doesn't automatically generate the values for x^2, x^3, etc when you use the linest function for polynomial regressions. You have to generate those values yourself in columns adjacent to the values for x, then run the regression across the set of cells that includes those values for different orders of x and the values for y.


The instructions from http://help.libreoffice.org/Chart/Tre...

A polynomial regression curve cannot be added [to a chart] automatically. You must calculate this curve manually.

Create a table with the columns x, x², x³, … , xⁿ, y up to the desired degree n.

Use the formula =LINEST(Data_Y,Data_X) with the complete range x to xⁿ (without headings) as Data_X.

The first row of the LINEST output contains the coefficients of the regression polynomial, with the coefficient of xⁿ at the leftmost position.

The first element of the third row of the LINEST output is the value of r². See the LINEST function for details on proper use and an explanation of the other output parameters.


Also, see the manual for linest at http://help.libreoffice.org/3.4/Calc/...

Note that using linest with an array requires that the user exit the cell containing the linest function with Ctrl+Shift+Enter, not just pressing Enter.

edit flag offensive delete link more
0

answered 2014-02-24 14:53:36 +0100

ByteMe gravatar image

There is no polynomial trend line yet. Polycorel is ok, but not quite as elegant as the integrated features of MS Office. There is however FOSS alternative: gnumeric. It's got more capabilities when it comes to regressions, but lacks a bit in compatibility with LibreOffice. I tend to use them side by side and I export finished graphs to png's for \LaTeX\ documents. I sincerely hope LibreOffice will take the opportunity to implement the extra features of the gnumeric fork(at least I think it's a fork, don't quote me on it and don't shoot me if I'm wrong) into the more standard LibreOffice.

edit flag offensive delete link more

Comments

1

@ByteMe, actually you are wrong :) Polynomial curves have been added in the 4.2 branch (see following link, under Chart)

http://www.libreoffice.org/download/4-2-new-features-and-fixes/

Pedro gravatar imagePedro ( 2014-02-24 15:39:05 +0100 )edit
-1

answered 2012-02-21 09:52:15 +0100

The answer is quite easy: NO. And there has never been one. I'm a physics and chemistry teacher, and I like to use Libreoffice at school, but when it comes to explain an oblique shot I can't show off this software. Of course, I can build the graphic position-time, but I can't get the right equation.

I hate to say this, but in my opinion, this is the only question where Excel is better than Calc.

P.D: excuse me if I have made some mistakes, I'm still learning English

edit flag offensive delete link more

Comments

1

@unquimico, maybe it's time to update to 4.2.1 and test the new polynomial regressions ;)

Pedro gravatar imagePedro ( 2014-02-24 15:44:57 +0100 )edit

Question Tools

1 follower

Stats

Asked: 2012-02-20 23:18:15 +0100

Seen: 26,050 times

Last updated: Oct 28 '15