Bill Allombert on Thu, 08 Mar 2012 18:41:42 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: User defined functions: How to program &n-variables?


On Thu, Mar 08, 2012 at 05:18:03PM +0000, Thomas Nordhaus wrote:
> Hello!
> I'd like to do something similar as in the issquare-function: How do I code
> this? For example: I want to program a function foo such that y=foo(x) yields
> y=x^2 and y=foo(x,&n) yields y=x^2 and n=floor(x^2).Is there a reference that
> explains proramming of user defined functions in depth?

Unfortunately, this is not currently possible for GP user function. However C
user functions can.

Cheers,
Bill.