RosettaCodeData/Task/Call-a-function/PARI-GP/call-a-function.pari

6 lines
177 B
Plaintext

f(); \\ zero arguments
sin(Pi/2); \\ fixed number of arguments
Str("gg", 1, "hh"); \\ variable number of arguments
(x->x^2)(3); \\ first-class
x = sin(0); \\ get function value