This preview shows pages 1–4. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: A Tutorial for PARI / GP C. Batut, K. Belabas, D. Bernardi, H. Cohen, M. Olivier Laboratoire A2X, U.M.R. 9936 du C.N.R.S. Universit e Bordeaux I, 351 Cours de la Lib eration 33405 TALENCE Cedex, FRANCE email: pari@math.ubordeaux.fr Home Page: http://pari.math.ubordeaux.fr/ Primary ftp site: ftp://pari.math.ubordeaux.fr/pub/pari/ last updated September 17, 2002 (this document distributed with version 2.2.7) Copyright c circlecopyrt 20002003 The PARI Group Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modified versions, or translations, of this manual under the conditions for verbatim copying, provided also that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. PARI/GP is Copyright c circlecopyrt 20002003 The PARI Group PARI/GP is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY WHATSOEVER. This booklet is intended to be a guided tour and a tutorial to the GP calculator. Many examples will be given, but each time a new function is used, the reader should look at the appropriate section in the Users Manual for detailed explanations. Hence although this chapter can be read independently (for example to get rapidly acquainted with the possibilities of GP without having to read the whole manual), the reader will profit most from it by reading it in conjunction with the reference manual. 1. Greetings! . So you are sitting in front of your workstation (or terminal, or PC, ... ), and you type gp to get the program started (remember to always hit the Enter key and not the Return key on a Macintosh computer). It says hello in its particular manner, and then waits for you after its prompt , initially ? (or something like gp > ). Type 2 + 2 . What happens? Maybe not what you expect. First of all, of course, you should tell GP that your input is finished, and this is done by hitting the Return (or Newline ) key, or the Enter key on the Mac. If you do exactly this, you will get the expected answer. However some of you may be used to other systems like Macsyma or Maple. In this case, you will have subconsciously ended the line with a semicolon ; before hitting Return , since this is how it is done on those systems. In that case, you will simply see GP answering you with a smug expression, i.e. a new prompt and no answer! This is because a semicolon at the end of a line in GP tells it to keep the result, but not to print it (you will certainly want to use this feature if the output is several pages long)....
View Full
Document
 Spring '09
 BRUBAKER
 Math, Number Theory, The Land

Click to edit the document details