The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 Find x in function from table of y values

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Sam__Perry Posted - 03/18/2014 : 08:49:47 AM
I have the following function that I am using to model some experimental data

y = pi^1/2 * x * exp(x^2) * erfc(x)

I have a column of y values that I determined experimentally, and want to use this model to generate a column of x values to go with each data point. I cannot work out a simple way to do this mathematically due to the combination of exp and erfc functions. Is there a work around?

Many thanks!

Origin Ver. and Service Release (Select Help-->About Origin): 9.1.0
Operating System: Windows 7
1   L A T E S T    R E P L I E S    (Newest First)
Hideo Fujii Posted - 03/18/2014 : 4:13:42 PM
Hi Sam,

Though this is a bit cumbersome way, you may try it:

1) Using Fitting Function Builder, define your function, say f(x)=experfc(x), with a parameter "p" instead of the constant pi.

2) Make the function plot of your function. ("File: New: Function Plot: 2D Function Plot")

3) Double-click the function plot to show Plot Details, and press "Workbook" button to make the data sheet.

4) Highlight the Y column, and start NLFit ("Analysis: Fitting: Nonlinear Curve Fit").

5) In NLFit, select your function, and in the left panel, select "Find X/Y" tab, and turn ON the "Find X from Y" check box. Click Fit to finish fitting. (Of course, it converges with pi.)

6) You find a new sheet"FitNLFindXfromY1" in the worksheet. Now, you can copy your Y values to the first column in this sheet, and you get the corresponding Xs.

Hope this helps.

--Hideo Fujii
OriginLab
============================================

P.S.

I have noticed after I made a function plot of your function that it is a monotonically increasing function.
Therefore, it is safe to switch the positions and the designations (X and Y) of the first and second columns;
Then you can run "Analysis: Mathematics: Interpolate/Extrapolate Y from X" to get the actual Xs.

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000