Hello
I can draw a line from a program:
line({0,0},{5,5});
But I cannot find the correct syntax to draw a circle by giving coordinates of the center and the radius. I tried all kind of syntaxes I could imagine with no success. Manual did not help me more.
Help much appreciated.
Kind regards.
HP Prime  Drawing a circle from a program

11062013, 04:41 PM
11062013, 04:52 PM
ARC(G,x,y,r,a1,a2,c) or ARC_P (G,x,y,r,a1,a2,c) Page 538 in Edition 1, July 2013, User Guide. TomC
11062013, 08:46 PM
Note: radius (r) is always in pixels, regardless of whether ARC or ARC_P is used. So if you are using the Cartesian version of ARC, convert the radius first.
X point to pixel: integer((x  Xmin)/(Xmax  Xmin)) * 318 Y point to pixel: integer((y  Ymax)/(Ymin Ymax)) * 218 Also you can use the C>PX command in the catalog. C>PX(x,y) returns the list {x pixel, y pixel}.
11072013, 02:49 AM
Bonjour Thomas
11072013, 09:06 AM
elle n'existe pas, tu dois utiliser ARC_P
11072013, 09:20 AM
Because "circle" implies that you are drawing a complete circle exclusively. ARC can draw curved arcs between 0<x<2pi angular values. TW
11072013, 03:40 PM
Mic 
« Next Oldest  Next Newest »
