pari
Using pari how do we plot graphs: For example would be glad to receive step by step instructions to plot
2^n+ 7. tks 
[QUOTE=devarajkandadai;308735]would be glad to receive step by step instructions to plot 2^n+ 7.
[/QUOTE] step 1: open pari/gp step 2: write at the command prompt: plot(x=10,10,2^x+7) and press enter :razz: [CODE] (12:40:06) gp > ?plot plot(X=a,b,expr,{Ymin},{Ymax}): crude plot of expression expr, X goes from a to b, with Y ranging from Ymin to Ymax. If Ymin (resp. Ymax) is not given, the minima (resp. the maxima) of the expression is used instead. (12:40:10) gp > plot(x=10,10,2^x+7) 1031 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"  :  :  :  x  :  :   _   :   :   x     _     x   _     _"   _   _"   __x"  0 ________________________________xxxxxxxxxxxxx""",,,,,,,,,,,,,,,, 10 10 (12:40:54) gp >[/CODE] 
pari
Thank you very much; will try.

pari
Thanks once again. Just tried success!

you can type "?10" at pari prompt (without quotes) for help on plotting functions. If you have the bitmaps associated with some application (like ms fax wiewer, ACDSee, whatever) then you can also use "ploth" function. That would make a nice bitmap/jpg/gif from your graphic and send it to the associated application, so you can see it on screen in a nice graphic mode.
Try: ploth(x=10,10,sin(x)/x) 
[QUOTE=LaurV;308879]you can type "?10" at pari prompt (without quotes) for help on plotting functions. If you have the bitmaps associated with some application (like ms fax wiewer, ACDSee, whatever) then you can also use "ploth" function. That would make a nice bitmap/jpg/gif from your graphic and send it to the associated application, so you can see it on screen in a nice graphic mode.
Try: ploth(x=10,10,sin(x)/x)[/QUOTE] is there any way for it to only use integer values ? I figured it out, in my older version of GP it does it right inside a new window of pari/gp 
pari
[QUOTE=LaurV;308879]you can type "?10" at pari prompt (without quotes) for help on plotting functions. If you have the bitmaps associated with some application (like ms fax wiewer, ACDSee, whatever) then you can also use "ploth" function. That would make a nice bitmap/jpg/gif from your graphic and send it to the associated application, so you can see it on screen in a nice graphic mode.
Try: ploth(x=10,10,sin(x)/x)[/QUOTE] [CODE]? plot(x=5,5,sqrt(25x^2)) 4.9993701 ''''''''''''''''''''''__xxx""""""""xxx__''''''''''''''''''''''  _xx" "xx_   _x" "x_   _x x_   _" "_   _x x_   _ _   x x   " "   " "   " "   " "   x x     " "    x x : : : : : : : : 0 _,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,_ 5 5 (10:20) gp > [/CODE] I got the above which is actually a semicircle; how do I get a complete circle pl? 
completing a circle
Reading GPRC: /cygdrive/c/Program Files/PARI/.gprc ...Done.
GP/PARI CALCULATOR Version 2.3.4 (released) i686 running cygwin (ix86/GMP4.2.1 kernel) 32bit version compiled: Jul 12 2008, gcc3.4.4 (cygming special, gdc 0.12, using dmd 0.125) (readline v5.2 enabled, extended help available) Copyright (C) 20002006 The PARI Group PARI/GP is free software, covered by the GNU General Public License, and comes WITHOUT ANY WARRANTY WHATSOEVER. Type ? for help, \q to quit. Type ?12 for how to get moral (and possibly technical) support. parisize = 4000000, primelimit = 500000 (10:20) gp > plot(x=5,5,sqrt(25x^2)) 4.9993701 ''''''''''''''''''''''__xxx""""""""xxx__''''''''''''''''''''''  _xx" "xx_   _x" "x_   _x x_   _" "_   _x x_   _ _   x x   " "   " "   " "   " "   x x     " "    x x : : : : : : : : 0 _,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,_ 5 5 (10:20) gp >The above is actually a semicircle; how do I program a full circle pl? 
How about "ploth(X=0,2*Pi,[sin(X),cos(X)],1)" ?

It doesn't make too much sense to ask [URL="http://www.mersenneforum.org/showthread.php?t=17121"]the same question[/URL] over and over...

Something that [B]almost[/B] works :smile:
[CODE]plot(x=5,5,sqrt(25x^2)); plot(x=5,5,sqrt(25x^2))[/CODE] 
All times are UTC. The time now is 05:58. 
Powered by vBulletin® Version 3.8.11
Copyright ©2000  2021, Jelsoft Enterprises Ltd.