HP Forums
PRIME runtime vs. parsing. - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: PRIME runtime vs. parsing. (/thread-251263.html)



PRIME runtime vs. parsing. - Chris Tvergard - 09-25-2013

I can't find any information in the Manual about parsing errors vs. runtime errors. Like EVAL (if I'm correct) will not show errors until runtime?

Thanks in advance.

Chris




Re: PRIME runtime vs. parsing. - Han - 09-25-2013

Parsing errors are presumably accounted for when you exit the program editor. You will only get runtime errors when executing the program with 'run.' Now, if you're using EVAL, then most of the parsing errors would have been caught upon exiting the program editor. If you get errors because of the EVAL command, then it's probably due to those nuances like global vs local variables being parsed differently from what you may have been expecting, storing a matrix into a REAL variable, etc. But I would consider even the EVAL errors a runtime error.


Re: PRIME runtime vs. parsing. - Chris Tvergard - 09-25-2013

Han,

Many thanks.

Chris

PS: The 2x2 matrix output should have say a "0"-value element, ie SIN(pi), in [2,1] but it shows up as -2 exp(-13) or some approximation of zero. How do I make those very small values show up as a zero? I just got my PRIME and I want to do everything like right now!


Re: PRIME runtime vs. parsing. - Han - 09-25-2013

Use the CAS environment instead if you want exact values. (Or did I misunderstand you?)


Re: PRIME runtime vs. parsing. - Chris Tvergard - 09-25-2013

Han,

Great, I'll try that. And no, you did not misunderstand me; I have this new gadget upgrade angst and reading all of the 616 pages of the manual is too slow. I looked under the matrix command but did not think of CAS yet.

Many thanks again.

Chris

PS: This Forum is great. It really speeds up everything hugely thanks to people like you and all the others including HP's TimW.


Re: PRIME runtime vs. parsing. - Han - 09-25-2013

I'm with you about having gadget upgrade angst =) And yes, it's a lot more fun to tinker around and learn with others instead of reading the manual.

Han


Re: PRIME runtime vs. parsing. - Chris Tvergard - 09-25-2013

Absolutely; that's how I learn. Appreciate your help.

Chris


Re: PRIME runtime vs. parsing. - Chris Tvergard - 09-25-2013

Han, Your trick worked. I stored pi in CAS as a (lowercase), went back to my small program and used the matrix element CAS(SIN(a)) which came out now as 0. (Manual p. 59).

Thanks.

Chris