Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Intel Community
- Software Development Tools (Compilers, Debuggers, Profilers & Analyzers)
- Intel® Fortran Compiler
- Curve fitting in Fortran 77

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Highlighted
##

Hi, is it possible to implement a power curve fitting in Fortran 77. I have two data points and I have to predict the values between these two data points. I am trying to implement a power fit which can be represented by y=Constant*x^power. Does anyone know if there is a predefined sub routine which can fit it for the data values i provide automatically?

jagwani__suhail

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

04-09-2018
06:20 AM

1 View

Curve fitting in Fortran 77

4 Replies

Highlighted
##

Quite possibly, but in general the problem would consist of finding the best parameters to fit a larger number of points. Since you have only two points, you can solve this analytically. I will leave the details to you :). (This is not a homework exercise, is it?)

Arjen_Markus

Valued Contributor II

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

04-09-2018
06:24 AM

1 View

Quite possibly, but in

Highlighted
##

Greg_T_

New Contributor III

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

04-09-2018
08:54 AM

1 View

The NIST Guide to Available

The NIST Guide to Available Mathematical Software (GAMS) is likely to have a few curve-fitting algorithms you could examine. The web site is: https://gams.nist.gov/

Use the "problem keywords" search tool and enter "curve fit" to see the list of possibilities. You can view the source code to get an idea if one would fit your needs.

Regards, Greg

Highlighted
##

jagwani__suhail

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

04-10-2018
12:54 AM

1 View

Hi Greg, thank you for your

Hi Greg, thank you for your suggestion. I shall look into it.

Highlighted
##

I agree with Arjen, this sounds like an elementary homework problem, not a curvefit at all. But I'll give in and give you a hint. Just transform your equation from "power space" to "linear space" by taking the log of each side, then do a linear interpolation.

dboggs

New Contributor I

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

04-11-2018
12:40 PM

1 View

I agree with Arjen, this

For more complete information about compiler optimizations, see our Optimization Notice.