# HG changeset patch
# User Mike Hansen <mhansen@gmail.com>
# Date 1290715000 28800
# Node ID e183fb2c375c21a4f8e6da3080d9df6d50144f42
# Parent 0b14d3687a094e0f76837890aabdb66c61667594
#10327: Problems with get_systems and symbolic expressions
diff --git a/sage/misc/citation.pyx b/sage/misc/citation.pyx
|
a
|
b
|
|
| 64 | 64 | sage: get_systems('I.primary_decomposition()') |
| 65 | 65 | ['Singular'] |
| 66 | 66 | |
| | 67 | sage: a = var('a') |
| | 68 | sage: get_systems('((a+1)^2).expand()') |
| | 69 | ['ginac', 'GMP'] |
| 67 | 70 | """ |
| 68 | 71 | import cProfile, pstats, re |
| 69 | 72 | |
| … |
… |
|
| 74 | 77 | |
| 75 | 78 | #Run the command and get the stats |
| 76 | 79 | filename = tmp_filename() |
| 77 | | cProfile.runctx(cmd, globals(), locals(), filename) |
| | 80 | cProfile.runctx(cmd, globals(), {}, filename) |
| 78 | 81 | stats = pstats.Stats(filename) |
| 79 | 82 | |
| 80 | 83 | #Strings is a list of method names and modules which get run |