Author |
Topic |
|
CRTBT-UBT
France
Posts |
Posted - 08/29/2006 : 08:45:42 AM
|
Origin Version (Select Help-->About Origin): 7.5 Operating System: Windows XP
Is it possible, and if yes how, to save custom functions with one or more parameters for use in the "Set column values" and/or the "Add Function Graph" dialog box, so that I can use it like the standard functions (example: jn(,) for the bessel function)? I know that I can do this using the script window, but I wonder whether there is an easier way.
Greetings and thanks for help, Johannes
|
|
Mike Buess
USA
3037 Posts |
Posted - 08/29/2006 : 11:40:58 AM
|
Hi Johannes,
Although they don't appear on the Add Function lists most Origin C functions that return a single value can be used in the Set Column Values and Add Function Graph dialogs. For example, this custom function...
double xsqr(double x, double xoffset, double yoffset) { return (x - xoffset)^2 + yoffset; }
can be used in Set Column Values like this...
Col(B)= xsqr(col(A),10,10)
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 08/29/2006 11:54:03 AM |
|
|
CRTBT-UBT
France
Posts |
Posted - 08/30/2006 : 05:19:42 AM
|
Hi Mike,
thanks for your reply, I allready tried it and it works fine.
One more question: Is it possible to make appear my own functions in the Add Functions list?
Johannes |
|
|
Mike Buess
USA
3037 Posts |
Posted - 08/30/2006 : 07:01:15 AM
|
quote: Is it possible to make appear my own functions in the Add Functions list?
No.
Mike Buess Origin WebRing Member |
|
|
|
Topic |
|
|
|