carl hansen on Sun, 31 Jan 2016 02:04:35 +0100

 What am I doing wrong? Extremely simple problem

• To: pari-users@pari.math.u-bordeaux.fr
• Subject: What am I doing wrong? Extremely simple problem
• From: carl hansen <carlhansen1234@gmail.com>
• Date: Sat, 30 Jan 2016 17:04:27 -0800
• Delivery-date: Sun, 31 Jan 2016 02:04:35 +0100
• Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=bc6Sc/CacfelG5FC2hb7vK6ZAc2A2SrBNaKP0t2vSxw=; b=Tn8jSDCuYv6zl52LzH2L4tczMz54AZxnqqPIixj5V1BWzmyEDgLZUiuiV2QzBQN7bU bkBKq6QeY/t3sOr3zh4LJOvt1mPs3nIfk8gSxYZLzKHDL3SC08TLDQz+nam57LJq+cdn cAAXHKYLdBZeS7wNY+3Bn8xOiN2szR+LJhaom6ERBBdaissMcEUQqjtmIDMqDJb9CFi0 2iLT3POPQKiSjk0YxblUyRpcOG0HhT/VnHP6REMpQSL7hhbD4Lf4Q2OBKUxEp+B9A1P4 tkaA8boRxPw+G+V2PTAjHncqfCsPrfsJGlPqlY3LZRVG22jAQ+vqdAX5c1NxSmjBrywt lnfQ==

some simple functions:

p3(x) = { x*(x+1)/2 }
p4(x) = { x*x }
p5(x) = { x*((3*x)-1)/2 }
p6(x) = { x*((2*x)−1) }
p7(x) =  { x*(5*x−3)/2 }
p8(x) = { x*(3*x−2) }

unexpected results:
GP/PARI CALCULATOR Version 2.7.5 (released)
amd64 running linux (x86-64/GMP-6.1.0 kernel) 64-bit version
compiled: Jan 27 2016, gcc version 4.9.3 (GCC)
? p3(x) = { x*(x+1)/2 }
%1 = (x)->x*(x+1)/2
? p4(x) = { x*x }
%2 = (x)->x*x
? p5(x) = { x*((3*x)-1)/2 }
%3 = (x)->x*((3*x)-1)/2
? p6(x) = { x*((2*x)−1) }
***   syntax error, unexpected \$undefined, expecting )-> or ',' or ')': p6(x)=x*((2*x)−1)
***                                                                                       ^-
? p7(x) =  { x*(5*x−3)/2 }
***   syntax error, unexpected \$undefined, expecting )-> or ',' or ')': p7(x)=x*(5*x−3)/2
***                                                                                     ^---
? p8(x) = { x*(3*x−2) }
***   syntax error, unexpected \$undefined, expecting )-> or ',' or ')': p8(x)=x*(3*x−2)
***                                                                                     ^-
?