ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 05 Apr 2022 03:12:25 +0200How to deal with "GAPError: Error, reached the pre-set memory limit" ?https://ask.sagemath.org/question/61829/how-to-deal-with-gaperror-error-reached-the-pre-set-memory-limit/I get the following error while doing group theoretic computations in Sage:
GAPError: Error, reached the pre-set memory limit
(change it with the -o command line option)
How overcome it by allowing GAP use more memory? Where exactly I should use `-o` option?
---
Here is a code producing an error:
def a138077_q(q): G = PSL(3, q); d = G.order(); return d // max(H.order() for H in G.conjugacy_classes_subgroups() if H.order()<d)
print(a138077_q(13))Max AlekseyevTue, 05 Apr 2022 03:12:25 +0200https://ask.sagemath.org/question/61829/Error Handlinghttps://ask.sagemath.org/question/60887/error-handling/I am very new to Sage, so apologies if the answer to this question is obvious.
I have a program, and at the final calculation, for T and E matrices calculated earlier, it needs to either calculate a matrix A such that `T=AE`, or, if this returns an error message, calculate a matrix A such that `p*T=AE`, where p is also calculated earlier.
In mock code, what I mean is:
Calculate E.solve_left(T)
If that returns an error:
A=E.solve_left(p*T)
else:
A=E.solve_left(T)
return A
But I don't know how to do that in real code.RuneSun, 30 Jan 2022 20:06:57 +0100https://ask.sagemath.org/question/60887/