Dependency usage tracking for citations¶
-
sage.misc.citation.
get_systems
(cmd)¶ Returns a list of the systems used in running the command cmd. Note that the results can sometimes include systems that did not actually contribute to the computation. Due to caching and the inability to follow all C calls, it could miss some dependencies as well.
INPUT:
cmd
- a string to run
EXAMPLES:
sage: from sage.misc.citation import get_systems sage: s = get_systems('integrate(x^2, x)'); #priming coercion model sage: get_systems('integrate(x^2, x)') ['ginac', 'Maxima'] sage: R.<x,y,z> = QQ[] sage: I = R.ideal(x^2+y^2, z^2+y) sage: get_systems('I.primary_decomposition()') ['Singular'] sage: a = var('a') sage: get_systems('((a+1)^2).expand()') ['ginac']