Bill Allombert on Tue, 03 Jan 2023 12:12:37 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Question on using eval...
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: Question on using eval...
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Tue, 3 Jan 2023 12:11:19 +0100
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1672744277; c=relaxed/relaxed; bh=AfIdsqHBMAFk7DiDpQ4ww8EQbuU6KiqhO/W9x5A8BOc=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=ywjh5MymnVbWt2dzp5JLea6y9r4LfUTnUngj14L3M3JLQneIZzq6BpJ6uNnChIzyAUlilxpnGwrnc7xNLZA7Iaa6c//K4WHPQvmlEyU+WCucFlOm1ip3dx80xeiilGw12fBqErzxjy8xYhJWmzSh32/nH5+Qat0sr9eesnKklP4WFrMvr3OaT8Aus+7rI8aCivbn2+CxQ/SvABwU59Heopcy/aaJEeAXFL9M8v7M063tjIChczlEFNmaMDuO107nGEZrgFBW80FBOzdvn407qBCivC3304y1HMSF4AsESwm8yD7MGScMRvR4FllBDi84jNPv3YY6FeLi6IgSzbEhIHqpg09fo1AQuTU8Pv7HUh2dDC4Tmj4HcnLfw0FOEU5eW8owek0xNk/cWnVPJL45DfRiW7cEPOM9ja4oBqqM7TFES88yz8oTz2TDApVS0JBmVTTjUs7+1feNuPVMpjd5PQcpWdXzW/A3EaZLRTiosSIWauO6Y2g3D982CYEHiQaRkobunflyHwDcwh+fd1ZxnVTQ4Cl+QschMMytu+rq4nD5r2YjM47ttl+aL7wH5i9EKjtPr/ZOU9WqsK+39nOgxSPF/wIQSmgjPixSVOINWzauPZstdC60AoIufW5DnvX4IuzAUadiVPFjWx2vuOa3HmBPVtIV0Wfab0IbCUxm7oA=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1672744277; cv=none; b=fk8QQIvs02oUC9WozqkihWGw5so1CxBkT3tNORuAFeiKAGlyhAYHOx9sf3zlLNaqzRFhXSxtTdLM1Jf9x1eanKfP1gT975s0zE7KevwIHRXGD4vAwdpV518kiQEDzvkyxpC6d8jqP+JKoYvYjur8/f3h1Cw7FWGnyrpuFUwtbNiGlh6kQy++eTTME5gM5d20RgZYWX2LOV0ygmGENpseL6dhzOIaXz80R0zoz+xnCeuCIRfX3lBK7hN5thTD5qCn7z3fI+m7kQ3izY/tPiwZsrSGkR2iSK7v4gqkYVgLZwMOTDdECLHc/wAgFDZjjJK8IEyAcTYBRr/LVjXwNAISKPIilPPDO8RXdP9DQ0BRTSSu8/2DG/8HqdThrkCDbis/3Haeo9xdY6mF+vX7bnWhF1n6YGhnoYMECNlUMfqyTDt6S6sGjVbYdx6rMgo16799A98gM/t1domtNBTYrQZSa7n1Z+tlpH3OJDzvBe9t2P1/bDbx+rKnPyQyrfTJ1n0GorrHakF8nv3G/X6UEP24b9vw/3de4NUztTWillmNGqNE9f16y/1sOy+SghUd6h+b2zeOsEzaT88X2oROaIPNxZ1I5mqaO/Kee1ksRs+SCsxDztWSOjAzFrg5ZC+rK3PpnFPOCUw7rRk68Nf3Gb/dkgWG+pr9G3PEX1lrgMRUpR0=
- Authentication-results: smail; arc=none
- Delivery-date: Tue, 03 Jan 2023 12:12:37 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1672744277; bh=AfIdsqHBMAFk7DiDpQ4ww8EQbuU6KiqhO/W9x5A8BOc=; h=Date:From:To:Subject:References:In-Reply-To:From; b=Ev8zgGUr5TxE7BBTDAsqNu98bOcY2PPNxSKNhTLQ19Vloy2Nu8AKSNUQcT6iVyOkU WKblWnKPZXwt5orurKrV87jMCRbjPzNuFCyUVtQxZddmp9E6pUE5/2XlHyZN7dizsG I/CuGXBImCqNfVWM8aRqN3lHB8dCB5pELZ0VSdvVjg+h58mNymKr3ciVJYn08pjetF 4QCN8TcnrJlokNyRHW1C8VTelGdN8LO1sm4WqD3bOAdNi+zkAXVXJhVcBu0N4sYLtU cppDkEZ72MlxklDjr7W6o6XH677ba/rybRLAPyOz/jvtNuDtDktjKjVjBESirWAR67 lF8ublPIopV26jcpkS6cqg6ifSpR/9Q+JtTr3fFkanLzqYfuEA8Xn1oYEIZnT0uyxJ zOtje1lFbU2280yowFjkkb0YZZXxC4Uvladc8nLCS9+Cw68qqxZFAV1TcnRmdhmyL3 CU6Gnappgdtl2H3iy6kqoYtUiBdjjWoji2+ygVNBnN0K9zX/0mF+ZkmTN86TKSatvm awgknj8/LH2BSNGKPVKSx1DLkExQgqjumDx6VRwzPZECRlWiuCgU7t/0IfHT33qK2l AWoVtSdfo7Gw5skelv1KorgCr3hE4qmSzVwELp/+x/IV5Vgi4/MRpqsFroEovQfeXY K/zpxLWOL7ldoa1jIZ3SPcdE=
- In-reply-to: <927ffc35-bc7b-3ba4-c1d3-62d68bd61a41@isolution.nl>
- Mail-followup-to: pari-users@pari.math.u-bordeaux.fr
- References: <63B34D14.6080604@morpheus.net> <Y7NWKR+KM1V0z1wQ@seventeen> <63B35DCC.1080000@morpheus.net> <927ffc35-bc7b-3ba4-c1d3-62d68bd61a41@isolution.nl>
On Tue, Jan 03, 2023 at 10:43:48AM +0100, Ruud H.G. van Tol wrote:
> The "symbolic equality" also needs to be defined first.
>
> ? f(a,b,c) = (a / b) + c;
> ? g(a,b,c) = a / b + c;
> ? h(a,b,c) = c + a / b;
> ? print([f == g, f == h, g == h, g == f, f === g]);
> [1, 0, 0, 1, 1]
Indeed, comparing closures means comparing the bytecode generated by the internal compiler.
The parser ignores useless parentheses so f and g are identical.
Cheers,
Bill