Extended Precision Library by G.E. - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: Extended Precision Library by G.E. (/thread-17399.html) |
Extended Precision Library by G.E. - robmio - 08-27-2021 08:53 AM Hello, I find it difficult to make ”Extended Precision Library” work. The author of the program is G.E. The library consists of 3 "hpprgm" programs. After having transferred the three programs in the HP PRIME virtual calculator, ie "multiprecision", "mutiprecision2" and "testmulti", and after having opened them (shift program, EDIT, Check), I get an error message: 1) In “multiprecision”, I get an error on line 265; 2) In “multiprecision2”, I get an error on line 170; 3) In “testmulti”, I get an error on line 108; Where am I doing wrong? Yours sincerely, Roberto Mioni RE: Extended Precision Library by G.E. - toml_12953 - 08-27-2021 12:29 PM (08-27-2021 08:53 AM)robmio Wrote: Hello, I find it difficult to make ”Extended Precision Library” work. What error are you getting on those lines? It matters. RE: Extended Precision Library by G.E. - robmio - 08-27-2021 01:21 PM The error present in "multiprecision" is a "syntax error": the cursor is placed after the semicolon of "1000000▶m;xsetp(n);" on line 265. The error present in "multiprecision2" is a "syntax error": the cursor is placed after the semicolon of "xx10mp(−b*a)▶g;xdivk(g,b,p)▶g;" before "xdivk(g,b,p)" on line 170. The error present in "testmulti" is a "syntax error": the cursor is placed at the beginning of line 108, at the level of "xtof (U)▶f". Thanks, Roberto RE: Extended Precision Library by G.E. - toml_12953 - 08-27-2021 02:21 PM (08-27-2021 01:21 PM)robmio Wrote: The error present in "multiprecision" is a "syntax error": the cursor is placed after the semicolon of "1000000▶m;xsetp(n);" on line 265. I just downloaded EPL and I get the same errors when checking the program. RE: Extended Precision Library by G.E. - Didier Lachieze - 08-27-2021 03:26 PM (08-27-2021 01:21 PM)robmio Wrote: The error present in "multiprecision" is a "syntax error": the cursor is placed after the semicolon of "1000000▶m;xsetp(n);" on line 265. It's a matter of cross references:
One way to solve this is simply to copy the content of multiprecision2 at the end of multiprecision and delete multiprecision2 . Then no more syntax errors. RE: Extended Precision Library by G.E. - roadrunner - 08-27-2021 03:50 PM @Didier, Since multiprecission has the line: xsetp(); at the top of the program, shouldn't that allow it to compile? @ everyone else: This procedure should work: 1. Open multiprecision in the editor and rem out line 267: //xsetp(n); 2. Tap the check button, it should compile with no errors; 3. Open multiprecission2 and tap the check button, it should compile with no errors; 4. Open testmulit and tap the check button, it should compile with no errors; 5. Open multiprecision again and un rem line 267: xsetp(n); 6. Tap the check button and it should compile with no errors; 7. I repeated setps 3, 4, 5, and 6 to make sure everything worked, but that may not be necessary. RE: Extended Precision Library by G.E. - Didier Lachieze - 08-27-2021 04:04 PM (08-27-2021 03:50 PM)roadrunner Wrote: @Didier, Apparently this is not working with the latest version of the Prime firmware. I tested with the previous virtual Prime (2020-01-16) and it compiled fine. This may be linked to the changes in the last firmware around the functions declaration:
|