HP Prime - Drawing a circle from a program Jean-Michel Unregistered Posts: 191 Threads: 41 Joined: Jun 2007 11-06-2013, 04:41 PM 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. Thomas Chrapkiewicz Unregistered Posts: 263 Threads: 42 Joined: Aug 2007 11-06-2013, 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 Eddie W. Shore Unregistered Posts: 764 Threads: 118 Joined: Aug 2007 11-06-2013, 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. I recommend just using ARC_P and work with pixels. I believe the conversion formulas are: 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}. Jean-Michel Unregistered Posts: 191 Threads: 41 Joined: Jun 2007 11-07-2013, 02:49 AM Bonjour Thomas Why does the command "circle()" not be used? It was the command I was trying to use. I am confused. Many thanks for you answer. Kind regards. Mic Unregistered Posts: 190 Threads: 82 Joined: Aug 2012 11-07-2013, 09:06 AM elle n'existe pas, tu dois utiliser ARC_P Tim Wessman Unregistered Posts: 1,278 Threads: 44 Joined: Jul 2007 11-07-2013, 09:20 AM Because "circle" implies that you are drawing a complete circle exclusively. ARC can draw curved arcs between 0

 Possibly Related Threads… Thread Author Replies Views Last Post Sending little images to the Prime (...and Program name bug?) Erwin Ried 19 7,192 12-10-2013, 05:35 PM Last Post: Erwin Ried HP Prime Tutorial #6 and #7: Drawing Eddie W. Shore 2 1,871 12-10-2013, 08:16 AM Last Post: Eddie W. Shore Problem with debug HP prime program, somebody help me? Carlos CM (Mexico) 6 3,269 12-05-2013, 03:07 PM Last Post: Carlos CM (Mexico) HP PRIME: APP program code DISAPPEARS !! Joseph Ec 0 1,175 11-25-2013, 11:35 AM Last Post: Joseph Ec Prime: Placing more than 1 item on the RPN stack in a single program? John Colvin 4 2,209 11-19-2013, 08:59 AM Last Post: Miguel Toro Prime: Program size limited to 64K? Erwin Ried 4 1,989 11-17-2013, 11:42 PM Last Post: Joseph Ec [HP-Prime] Picking elements from a List in a program Jean-Michel 3 1,948 11-15-2013, 04:16 AM Last Post: dg1969 HP Prime: Recommendation for future RPN Program Mode BruceTTT 3 2,114 11-13-2013, 10:03 PM Last Post: BruceTTT Converting Great Circle Navigation from 41C to 42S Bill Triplett 11 3,392 11-13-2013, 07:24 AM Last Post: Kimberly Thompson HP Prime: run a program in another program Davi Ribeiro de Oliveira 6 2,645 11-11-2013, 08:28 PM Last Post: Davi Ribeiro de Oliveira

Forum Jump: