Post Reply 
HP Prime: a student's view
09-01-2021, 03:40 AM (This post was last modified: 09-01-2021 11:35 AM by toml_12953.)
Post: #23
RE: HP Prime: a student's view
(08-31-2021 01:30 AM)Liam Hays Wrote:  Sure. I converted mine from the PPL version on thimet's Prime page.

When I wrote that PPL program on Thimet, I used the BASIC version as a model. Here's the C version converted:
Code:
EXPORT Thimet()
BEGIN
  LOCAL t, loops, i1, r0, x;
  t:=TICKS();
  loops:=100000;
  FOR i1:=0 TO loops-1 DO
    r0:=10;
    REPEAT
      x:=r0;
      x:=x+1;
      x:=x-4.567E-4;
      x:=x+70;
      x:=x-69;
      x:=x*7;
      x:=x/11;
      r0:=r0-1;
    UNTIL r0<=0;
    x:=LN(x);
    x:=SIN(x);
    x:=SQRT(x);
    x:=SQRT(x);
  END;
  PRINT(x);
  t:=(TICKS()-t)/1000;
  PRINT("Index: "+34/t*loops);
END;

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP Prime: a student's view - Liam Hays - 08-30-2021, 01:11 AM
RE: HP Prime: a student's view - Liam Hays - 08-31-2021, 01:30 AM
RE: HP Prime: a student's view - toml_12953 - 09-01-2021 03:40 AM
RE: HP Prime: a student's view - parisse - 08-31-2021, 07:30 PM
RE: HP Prime: a student's view - Liam Hays - 08-31-2021, 11:20 PM
RE: HP Prime: a student's view - jte - 09-01-2021, 10:43 PM
RE: HP Prime: a student's view - Liam Hays - 09-03-2021, 01:31 AM
RE: HP Prime: a student's view - jte - 09-05-2021, 03:44 PM
RE: HP Prime: a student's view - jte - 09-05-2021, 06:16 AM
RE: HP Prime: a student's view - pinkman - 09-03-2021, 09:30 PM
RE: HP Prime: a student's view - Liam Hays - 09-04-2021, 01:30 AM
RE: HP Prime: a student's view - Liam Hays - 09-04-2021, 04:49 PM
RE: HP Prime: a student's view - ijabbott - 09-04-2021, 08:44 AM



User(s) browsing this thread: 2 Guest(s)