Ilya Zakharevich on Mon, 12 Aug 2024 08:48:47 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Wrong error message from 2u |
In (23:29) gp > my([a,b,c]=[(u-v)^2,2u*v,(u+v)^2]); c^2-a^2-b^2 *** syntax error, unexpected variable name, expecting ',': ...,c]=[(u-v)^2,2u*v,(u+v)^2]);c^2-a^2-b^2 *** ^-------------- the arrow points at the second closing bracket. The actual problem is 2u. Thanks, Ilya P.S. IMO, 2u should better be parsed (as expected by the user!).