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
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