Karim Belabas on Tue, 16 Jul 2024 10:18:31 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: vector of t_FRAC questions
|
- To: hermann@stamm-wilbrandt.de
- Subject: Re: vector of t_FRAC questions
- From: Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>
- Date: Tue, 16 Jul 2024 10:18:15 +0200
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1721117897; c=relaxed/relaxed; bh=QAEyC/4vqiwKvE0sZLtm7a4N1u4HhiLE/6ufSfWbbXs=; h=DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: Mail-Followup-To:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To; b=0K2eSLng7khcKuQA6+QkONxT3rwd1rHCkiLyJGxud+09FMIdapEBquEl67Ntkf9HvxXIBqL4J8ewZ9jwaJAWp28M094I9Hg62YQjT1APw0i1M15zj3Y+Zm2nMoNts1Da+uw20o1JuRvuZm9MWOInolGzlNTAf6ZoBlC9xDcOyikzOz7TjJVqV13xbwdMk+DRG5gN04/S5Gq3zJ7G1bgcUHOLoalizwnLoY3EhWPZ6w/LJ3RWN7OF1SIG+WQyXx3/NRJSuXtSY3jFPWTzogBMtY7HMfPzL2JnNvRjYLT/SgKNrDIBKWy4JhX3SsDye/+ZmQaSyUczS9B9s2G52j4/8Kv31/7ogyljdgT/dcwbS5GoYPJK8aphjs1hAF5GdAaAkZjJfZ67aHruho7xP93p8a2FhoI6S8xfKBjt1nt8uWmRc8B1rN+SV8KtXqWnzhiEdSYrt+RbWtPyzFjvI9CQ1c6ygAqOUFqp3gON6UhaRqw2KuxneTXMkEzLc8gSsX6eQw1/AZrXdpC9TIJkpYkiaHIFVJ28b1cuMu2kWl2arj1mctbsaPUyN9jFZpawkFsUGo9STIbb/+0ZwcKs9gCIIqHN7yqwnoVMIuJU7VHUzBFE7FVVtOvlH+12y2syb8Jdm7dykDx2Vl4krNGqEYcQaEoTWFSrssc9tluzeTQ73IM=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1721117897; cv=none; b=pnYEu0/hQw9waFw3Pl6+o0BkboEBeYPikU3UFvoK85u2b2ApZ0pW/tT3eH9SOuLK5AH/3c2qNMwLO4K3qgoR4twmiCtVge6Yz+SbyzsMfHm0+i8R/gYDS+MJuSeHhOd/79Ww/8ZZTrJUPvQTlKkKqpkuAaCWkr2RXxs5osX/ZJNHoc9iWyakwbBlwtsJb7vc7nSS/be3uVuQ+VA/slTfP6/ceZtr7svfLEoXa5OT8FjcZDPzy0rTKFKYfzKCxzK3acSFM2qF5ZJqO0eFjE8T89AJUTfUvXPoAwoHb2Zww1FXRyW9R8hJ3PVqXXGFenOeqxX4IUBDOlWDinWvb3Y3+JXLaMxPhkQPlIOwBM7cr7GGufX2Vu69Ex3RxsGrjXRvM6ETvXP8sYMqI+k0qQOKq2wBGlRMc+KOzoL+89HBqrLX/5wtOwxmOyYaxyTAz3+qlJUBMfx4E8l/MhwQSvsSmwZZetv6OxmmzGGe7aUQGXDlAjLyGyDOqz2ojxYk46vKM9/8a/IaUcklII4kw99ygJqwgH7zF7EqQ2Wv+nefl2Hcwfa7VeDH1ZuVdVIuuWjuaj/4GQL+wywUHNJYT/DVk+1iRRI8up8/T2h9egvj/vhp/qDv8ey8xBSmyX7PP0bojjggaX3rWLSV11zIZZ22WzVArgDfcXcHqlMkMT7bSVc=
- Authentication-results: smail; dmarc=none header.from=math.u-bordeaux.fr
- Authentication-results: smail; arc=none
- Cc: pari-users@pari.math.u-bordeaux.fr
- Delivery-date: Tue, 16 Jul 2024 10:18:31 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1721117897; bh=QAEyC/4vqiwKvE0sZLtm7a4N1u4HhiLE/6ufSfWbbXs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TTpN7RMyeab18sYTszRv6OFqvQXEwT9917wXFutkmBZPFkvk5y7XbNZO7PXsQpGLq EYRxGwgu/kmIEqvHRpbyqkQMKR5Co5HzapcGqHRqygwVjaXGgnVUER+eVAsVSoUXSF nHV0Pn69CDGPCHVNaD0Sy0KB/1lRdsVMj+UOGpMiJwJc/Zt94NHAjVq2HUbzgRxZ13 Lwb4VoF62HV4FpYSNN20oZDrN3RSEMOs1ravtrbJA9d9j+ajkALmf+Jo6j9QHMBdVI oL7MWVkg7/OQ+CxZGXp3nszO8GJy1Mxc5qDZus5lVDDmHTkZzKYcMrnnECyrBAzTHr uKhUect+arTK8wB5ejx5NWqY3Pyk92ROIj/FN1xTHWxy50ZG2oB1e8+BcT2r+YX/KD RfIlsHbFo8PJVbr0Vrc5YBvc+NBwPHjMtuhgtdf2oET0L2Ffk/iKmvGohsdzVzvJvj gmEJjBEoC8Fw6rJahZnmON7aJFN9q5Ibb42Gomq8LIepHHylEGucwWf2kXCfBfMs+a YI+s9W/lGY2c5v4KPbOz3tntqDEt4fyPN3oPL011RMmkcP3+fn1oC+z7bCOqwxWnhb zOx5J2NwYugUpbjylMNSdO69U48ACLxk4JADo1/DmLRVdpvD2VJYkiwZq5lVvH01EQ uYgG5eR412+WYNKUm1LKF/rQ=
- In-reply-to: <dd7e8478f2276ebd11c297513feb0271@stamm-wilbrandt.de>
- Mail-followup-to: hermann@stamm-wilbrandt.de, pari-users@pari.math.u-bordeaux.fr
- References: <577cad62c54ee0c4600f5b401c933972@stamm-wilbrandt.de> <CAMLkfFTo+2RrUaaaoHDNKgfXTLMirBoUg5SFx6FqWq0g9wgCDQ@mail.gmail.com> <14d30d43346d471d9424665db7e205ec@stamm-wilbrandt.de> <ZpWSRp3gPvZfBfXO@math.u-bordeaux.fr> <dd7e8478f2276ebd11c297513feb0271@stamm-wilbrandt.de>
* hermann@stamm-wilbrandt.de [2024-07-16 00:57]:
[...]
> Simple gcd help does not mention x being t_VEC:
>
> ? ?gcd
> gcd(x,{y}): greatest common divisor of x and y.
This is intentional: simple help recalls the most basic use (ideally
1-line help, using 80 characters at most...). It's intended as a quick
check for function syntax and prototype.
Here one sees that the y argument is optional (since it is between braces) but
cannot infer what this means from the simple help.
> Detailed doc "??gcd" mentions t_VEC only if x and y are passed.
Not sure what you mean here:
(08:44) gp > ??gcd
gcd(x,{y}):
Creates the greatest common divisor of x and y. If you also need the u and v
such that x*u + y*v = gcd(x,y), use the gcdext function. x and y can have
rather quite general types, for instance both rational numbers. If y is omitted
and x is a vector, returns the gcd of all components of x, i.e. this is
equivalent to content(x). [...]
Cheers,
K.B.
--
Pr. Karim Belabas, U. Bordeaux, Vice-président en charge du Numérique
Institut de Mathématiques de Bordeaux UMR 5251 - (+33) 05 40 00 29 77
http://www.math.u-bordeaux.fr/~kbelabas/