Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You need to define t and specify a mapping of that in file to the defined variable t - for example:

t = var('t')
with open(fp1, 'r') as fp:
    L = [sage_eval(line, locals={'t':t}) for line in fp.readlines() if line.strip()]