×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

resolving equation expressing dataset in matrix

resolving equation expressing dataset in matrix

resolving equation expressing dataset in matrix

(OP)
Using the following setup i can interpolate values related to a two-column matrix:
X:=data(0) y:=data(1)
S:=cspline(X,Y)
fit(x):=interp(S,X,Y,x)
fit("value") = "returned value"

Is there any vay that i can get mathcad to return an equation expressing the dataset in my matrix ?



mathcad-beginner

RE: resolving equation expressing dataset in matrix

Mathcad can fit a function by regression- exponential, log, sin, power, ln, via genfit(), expfit(), logfit(), etc - see the user's guide for examples.

Bung
Life is non-linear...

RE: resolving equation expressing dataset in matrix

(OP)
Thanks for the reply!

The eksamples work but they don't give me an equation that I can use in another software to calculate y-values from a given x-value...?  

Is there a way to get Mathcad to return the exact equation instead of general formulas and functions ?

(I want to get an equation that I can use in an HMI-system to calculate condensationtemp for gas at a meassured preassure)

mathcad-beginner

RE: resolving equation expressing dataset in matrix

I'm confused by what you're asking.  Splines, by definition, are NOT closed-form equations.  If you're resorting to splines, the implication is that there is no general equation.

Moreover, if you have "data", the implication is that the data is non-exact, due to measurement noise, etc., which means that splines are not the correct approach, since the purpose of the spline is to ensure that the generated curve tries to go through each data point, thus incorporating your process noise into the interpolation.

It's your data and process, so ONLY YOU can know what equation best fits the data.  There are a number of functions that will tell the best fit to a particular equation that you provide, e.g., linfit and regress.  These are described in the Mathcad help section on Curve fitting.

TTFN

RE: resolving equation expressing dataset in matrix

The regression functions do give you the parameters of an equation that is a 'best fit' to the data points you supply.  Mathcad may not write the equation down explicitly, but knowing the parameters that Mathcad calculates and the general form of the function used (see the manual), you can do it for yourself.

Of course, if your data does not conform to the type of curve you are trying to fit it to, you will get funny numbers - GIGO. Eg trying to fit data from an exponential function using logfit() is not productive.  If you don't know what your data is, you can't expect any software to tell you.  Mathcad will only do what you tell it to, and if you want it to fit an inappropriate function to your data it will do just that.

Bung
Life is non-linear...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close