Where's the Error? - 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: Where's the Error? (/thread-17410.html) |
Where's the Error? - toml_12953 - 08-30-2021 03:04 PM I'm trying to run the following program on my Prime (both emulator and physical) and it gives me a syntax error in line 9. I've been looking at it and looking at it and I can't see the error. What am I doing wrong? Code: #PYTHON name RE: Where's the Error? - Didier Lachieze - 08-30-2021 03:36 PM With a few changes your program runs and returns: 0.880981899968678 Index: 1172413.79310345 The changes I made:
Code: #PYTHON name RE: Where's the Error? - toml_12953 - 08-30-2021 04:40 PM (08-30-2021 03:36 PM)Didier Lachieze Wrote: With a few changes your program runs and returns: Thank you! Now that you've solved it. I have to say of course! I should have known the ticks function is found in the hpprime module but the exponent error is more subtle. It makes sense, though. |