How to use Function in ipf file for raw data?

Hi, I just started the Igor recently and trying to understand it.

1. I have 2 rows data set (Scattering vector vs. Intensity) and trying to fit this with already written function in ipf script.
Where I should start from? I know this question is really obscure but I think just one comment will help me to start with.

2. In addition, I have a set of script (ipf file) How I can make a Table from this ipf script?

Function Make3GaussPoints(w3,z3)
Wave w3,z3
// printf "in make Gauss Pts\r"
z3[0] = -.993128599185095
z3[1] = -.963971927277914
z3[2] = -.912234428251326

w3[0] = .0176140071391521
w3[1] = .0406014298003869
w3[2] = .062672048334109
// printf "w[0],z[0] = %g %g\r", w3[0],z3[0]
End

*******************************************************
3. I couldn't make it with Procedure window and I just typed in the Command window and it worked....

Make/D/N=4 wave1, wave2
Printf "in make Gauss Pts\r"
in make Gauss Pts
Wave1[0] = -.993128599185095
Wave1[1] = -.963971927277914
Wave1[2] = -.912234428251326
Wave1[3] = -.839116971822219
Wave2[0] = .0176140071391521
Wave2[1] = .0406014298003869
Wave2[2] = .0626720483341091
Wave2[3] = .0832767415767047
Printf "wave1[0],wave2[0] = %g %g\r", wave1[0],wave2[0]
wave1[0],wave2[0] = -0.993129 0.017614
Display wave2 vs wave1
Print wave1, wave2
wave1[0]= {-0.993129,-0.963972,-0.912234,-0.839117}
wave2[0]= {0.017614,0.0406014,0.062672,0.0832767}


Thanks for your comment.
Start with the documentation.

leex wrote:
I have 2 rows data set (Scattering vector vs. Intensity) and trying to fit this with already written function in ipf script.

Execute the following in the command line:

DisplayHelpTopic "Curve Fitting Using the Curve Fitting Dialog"

and be sure to click on "User-Defined Fitting Function: Detailed Description".

leex wrote:

2. In addition, I have a set of script (ipf file) How I can make a Table from this ipf script?


Use the Edit operation. Remember that you can get help on any built-in operation or function by typing its name in the command line (or procedure window), right-clicking on it, and selecting the help item from the contextual menu.

leex wrote:
I couldn't make it with Procedure window and I just typed in the Command window and it worked....


If you have a set of Igor commands then chances are quite good that you can automate them by putting them into a function. Here's an example:
Function MyFunction()
    Make/D/N=4 wave1, wave2
    Printf "in make Gauss Pts\r"
    Wave1[0] = -.993128599185095
    Wave1[1] = -.963971927277914
    Wave1[2] =  -.912234428251326
End


Then execute "MyFunction()" on the command line. Experiment from there, and also try reading DisplayHelpTopic "User-Defined Functions".
Also please select Help->Getting Started. We highly recommend that new users go through at least the first half of the Guided Tour that you will find in the Getting Started help.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com