Max Alekseyev on Sat, 25 Mar 2023 22:55:58 +0100
[
Date Prev
] [
Date Next
] [
Thread Prev
] [
Thread Next
] [
Date Index
] [
Thread Index
]
from t_POL to t_CLOSURE (and back)
To
:
pari-users@pari.math.u-bordeaux.fr
Subject
: from t_POL to t_CLOSURE (and back)
From
: Max Alekseyev <
maxale@gmail.com
>
Date
: Sat, 25 Mar 2023 17:54:10 -0400
Delivery-date
: Sat, 25 Mar 2023 22:55:58 +0100
Dkim-signature
: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679781286; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=kfblXf2EZGzw0K3i+q3B4Gv0FbVrkxVpWm3lsD6wimE=; b=nNgo2/NZ2xJjrZ3z1mLjtrl2xKlOJApMA5khmcorJzrXSlE9Z5WcpkUwN8Vv9qP+Tn 9K1dL9pb5G6sQsEkVL7zK4G5gEB8mT6mEDGCDho68aMOYRAfC2zDDv7L64Zk5Vq6fyuZ sZ33ItPg7yKmGBKH6RGW6RyBNuTKii6R5OrvHBclEfQe0IDG1ebc9TE4uHHZXBndo5uQ 3rWPA2imkzLD/ISHh7uKgqJmNsxKgiqB47EY6tJzqS7njU1sBH3OPKi5cWa+v8r6fnPF AAPGyDa00aGn8BpREC/XUAOgqiIJFOwIw7AGOTZ7HNGo2vDBFh4QF+0cVDjT7PMywZtL O7vQ==
Is there any more straightforward/logical way than the following?
? p = x^3 + x + 1
%1 = x^3 + x + 1
? type(p)
%2 = "t_POL"
? f = z -> subst(p,variable(p),z)
%3 = (z)->subst(p,variable(p),z)
? type(f)
%4 = "t_CLOSURE"
? q = f('x)
%5 = x^3 + x + 1
? type(q)
%6 = "t_POL"
Regards,
Max
Follow-Ups
:
Re: from t_POL to t_CLOSURE (and back)
From:
Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
Prev by Date:
Re: polrootsmod(f,p) with f%p==0
Next by Date:
Re: polrootsmod(f,p) with f%p==0
Previous by thread:
Re: polrootsmod(f,p) with f%p==0
Next by thread:
Re: from t_POL to t_CLOSURE (and back)
Index(es):
Date
Thread