Josef Eschgfaeller on Sat, 17 Oct 2015 21:11:58 +0200

 Vector of args

• To: pari-users <pari-users@pari.math.u-bordeaux.fr>
• Subject: Vector of args
• From: Josef Eschgfaeller <esg@unife.it>
• Date: Sat, 17 Oct 2015 21:11:51 +0200
• Delivery-date: Sat, 17 Oct 2015 21:11:58 +0200
• Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unife.it; s=google; h=mime-version:date:message-id:subject:from:to:content-type; bh=Vqiw1zwtmxyc5lqJxjzDDjlO0iqYCfh3Uh8/hxtSh5g=; b=YxbJey9oK+JQJvgMG7QuOf76boJLRVn6XXN7ZvFPRGz7+21B/TtxW3R362J4WnrGLT 6Nn+6l8JICuMckUm7rA9yifcpFZKoyoHoe5GqeJKYOaNl3Oo9WOYIKq6JAusBEapVxgb 7hXTXzfMQ4FQOXHzTut8tdYmUCtE98Tbjk7Ng=

```Is there a better way to define evalf?
Want to use f, not "f".

t_word unites several strings (or letters)
to one string.
--------------------------------------------------
\\ f(v1,...) if v=[v1,...].
evalf (f,v) = {v=Vec(Str(v)); v[1]=""; v[#v]="";
v=t_word(v,,""); eval(Strprintf("(%s)(%s)",f,v))}

\\ Examples:

f (x,y) = x+y^2;
a=evalf(f,[4,9]); print(a) \\ 85

g (x) = #x
b=evalf(g,[[1,2,3,4,5]]); print(b) \\ 5

h (x,y,z) = #x+y*z
c=evalf(h,[[1,2,3],7,10]); print(c) \\ 73
--------------------------------------------------
Thanks
Josef Eschgfaeller

```