Hey, Ember
What do you think is the most efficient way to assign overflows/underflows a gray value. I'm not sure what the best way is. But I've been thinking:
But I'm not sure how you'd specify if it's an underflow or over flow. I'd like to ideally write something like:
Not sure how to do this perfectly though. Is there a way to test the type of error that occurs? I can't seem to see it.
Again, I'm new to pari-gp, haven't coded since the glory days of highschool, and I only ever was proficient in C--which doesn't have these error catching devices. Plus the error catching in Python seems to be vastly different (which I was okay in). Any help is greatly appreciated
Edit: Oh I get it now! There's not an error for underflow so I wrote:
If you can think of a more sophisticated way, please let me know.
Regards, James
What do you think is the most efficient way to assign overflows/underflows a gray value. I'm not sure what the best way is. But I've been thinking:
Code:
iferr(Sexp(z),1E1000)But I'm not sure how you'd specify if it's an underflow or over flow. I'd like to ideally write something like:
Code:
if Sexp over flows: 1E1000
if Sexp under flows: 1E-1000Not sure how to do this perfectly though. Is there a way to test the type of error that occurs? I can't seem to see it.
Again, I'm new to pari-gp, haven't coded since the glory days of highschool, and I only ever was proficient in C--which doesn't have these error catching devices. Plus the error catching in Python seems to be vastly different (which I was okay in). Any help is greatly appreciated

Edit: Oh I get it now! There's not an error for underflow so I wrote:
Code:
Abel_N(z,y) = {
iferr(beta(z,y) + tau2(z,y),E,1E100000,errname(E) == "e_OVERFLOW");
}If you can think of a more sophisticated way, please let me know.
Regards, James

