\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{sage}
[2015/01/27 LaTeX package (SAGE markup)]

% This sets up the {sagecell} and {sageout} environments
% for displaying sage code. All input should be in a
% {sagecell} and the output in a {sageout} directly
% following. The syntax highlighting is build ontop of
% the python lstlisting so it's a lot like that one.

\RequirePackage{xcolor}
\definecolor{deepblue}{rgb}{0,0,0.5}
\definecolor{deepred}{rgb}{0.6,0,0}
\definecolor{deepgreen}{rgb}{0,0.3,0}
\definecolor{deeppurple}{HTML}{8804BD}

\RequirePackage{listings}

% Sage input environment
\newenvironment{sagecode}
{\begin{center}\begin{minipage}[c]{0.80\linewidth}}
{\end{minipage}\end{center}}
\lstnewenvironment{sagecell}[1][language=sage]{
	\lstset{frame=single,
			showtabs=False,
			showspaces=False,
			showstringspaces=False,
			language = Sage,
			frame=tb,
			rulecolor=\color{lightgray},
			framexleftmargin=0.75em,
			#1
	}
}{}
\lstnewenvironment{sageout}[1][language=]{
	\lstset{frame=single,
			showtabs=False,
			showspaces=False,
			showstringspaces=False,
			basicstyle={\scriptsize \ttfamily},
			frame=l, %position of frame (only on left)
			framerule=0.3em, %thickness of frame
			framexleftmargin=0.75em, %between frame and code
			xleftmargin=3em, %between edge of page and frame
			rulecolor=\color{orange},
			#1
	}
}{}

\lstdefinelanguage{Sage}[]{Python}
{
	morekeywords={True,False,sage},
	sensitive=true,
	emphstyle={\ttfamily\color{deeppurple}},
	commentstyle={\ttfamily\color{deepgreen}},
	keywordstyle={\ttfamily\color{deepblue}},
	stringstyle ={\ttfamily\color{deepred}},
	basicstyle={\scriptsize \ttfamily},
	emph={
AA,
AbelianGroup,
AbelianGroupMorphism,
AbelianGroupWithValues,
AbelianStrata,
AbelianStratum,
AbelianVariety,
AdditiveAbelianGroup,
AdditiveAbelianGroupWrapper,
AdditiveAbelianGroupWrapperElement,
AdditiveMagmas,
AffineCryptosystem,
AffineCrystalFromClassical,
AffineCrystalFromClassicalAndPromotion,
AffineGeometryDesign,
AffineGroup,
AffineHypersurface,
AffineNilTemperleyLiebTypeA,
AffinePermutationGroup,
AffineSpace,
AffineToricVariety,
AffineWeylGroups,
AlarmInterrupt,
Algebra,
AlgebraElement,
AlgebraIdeals,
AlgebraModules,
AlgebraicField,
AlgebraicNumber,
AlgebraicReal,
AlgebraicRealField,
Algebras,
AlgebrasWithBasis,
AllCusps,
AllExactCovers,
Alphabet,
AlphabeticStrings,
AlternatingGroup,
AlternatingSignMatrices,
AlternatingSignMatrix,
ArithmeticSubgroup_Permutation,
Arrangements,
Associahedron,
AtkinModularCorrespondenceDatabase,
AtkinModularPolynomialDatabase,
AugmentedLatticeDiagramFilling,
Automaton,
Axiom,
BCHCode,
BackslashOperator,
Bessel,
BezoutianQuadraticForm,
Bialgebras,
BialgebrasWithBasis,
Bimodules,
BinaryGolayCode,
BinaryQF,
BinaryQF_reduced_representatives,
BinaryRecurrenceSequence,
BinaryReedMullerCode,
BinaryStrings,
BinaryTree,
BinaryTrees,
BipartiteGraph,
Bitset,
BlockDesign,
BooleanPolynomialRing,
BraidGroup,
BranchingRule,
BrandtModule,
BrauerAlgebra,
CC,
CDF,
CFF,
CIF,
CLF,
CPRFanoToricVariety,
CRT,
CRT_basis,
CRT_list,
CRT_vectors,
CachedFunction,
CallableSymbolicExpressionRing,
CartanMatrix,
CartanType,
CartesianProduct,
Category,
ChainComplex,
ChainComplexMorphism,
ChainComplexes,
Chi,
Ci,
ClassFunction,
ClassicalCrystalOfAlcovePaths,
ClassicalCrystals,
ClassicalModularPolynomialDatabase,
CliffordAlgebra,
ClusterQuiver,
ClusterSeed,
Coalgebras,
CoalgebrasWithBasis,
Color,
Combinations,
CombinatorialAlgebra,
CombinatorialClass,
CombinatorialFreeModule,
CombinatorialObject,
CombinatorialSpecies,
CommutativeAdditiveGroups,
CommutativeAdditiveMonoids,
CommutativeAdditiveSemigroups,
CommutativeAlgebraElement,
CommutativeAlgebraIdeals,
CommutativeAlgebras,
CommutativeRing,
CommutativeRingElement,
CommutativeRingIdeals,
CommutativeRings,
CompleteDiscreteValuationFields,
CompleteDiscreteValuationRings,
ComplexDoubleElement,
ComplexDoubleField,
ComplexField,
ComplexIntervalField,
ComplexIntervalFieldElement,
ComplexLazyField,
ComplexNumber,
Complexes,
ComponentCrystal,
Composition,
CompositionTableau,
CompositionTableaux,
Compositions,
Cone,
CongruenceSubgroup,
Conic,
ConjugacyClass,
ConjugacyClassGAP,
ConstantFunction,
ContinuedFractionField,
ContreTableaux,
ConwayPolynomials,
CooperativeGame,
CoordinatePatch,
Core,
Cores,
CoveringDesign,
CoxeterGroup,
CoxeterGroups,
CremonaDatabase,
CremonaModularSymbols,
CrystalOfAlcovePaths,
CrystalOfGeneralizedYoungWalls,
CrystalOfLSPaths,
CrystalOfLetters,
CrystalOfNakajimaMonomials,
CrystalOfProjectedLevelZeroLSPaths,
CrystalOfSpins,
CrystalOfSpinsMinus,
CrystalOfSpinsPlus,
CrystalOfTableaux,
Crystals,
CubeGroup,
CubicalComplex,
Curve,
Cusp,
CuspFamily,
CuspForms,
Cusps,
CyclicCode,
CyclicCodeFromCheckPolynomial,
CyclicCodeFromGeneratingPolynomial,
CyclicPermutationGroup,
CyclicPermutations,
CyclicPermutationsOfPartition,
CyclicSievingCheck,
CyclicSievingPolynomial,
CyclotomicField,
Cylindrical,
DLXCPP,
DLXMatrix,
DOT_SAGE,
DWT,
DeBruijnSequences,
DedekindDomain,
DedekindDomainElement,
DedekindEtaModularCorrespondenceDatabase,
DedekindEtaModularPolynomialDatabase,
DegreeSequences,
DeltaComplex,
Derangements,
DescentAlgebra,
DiCyclicGroup,
DiGraph,
DiagonalQuadraticForm,
DifferentialForm,
DifferentialForms,
DifferentialWeylAlgebra,
DihedralGroup,
DirectSumOfCrystals,
DirichletGroup,
DiscreteProbabilitySpace,
DiscreteRandomVariable,
DiscreteValuationFields,
DiscreteValuationRings,
DiscreteValueGroup,
DisjointSet,
DisjointUnionEnumeratedSets,
DivisionRings,
Dokchitser,
Domains,
DuadicCodeEvenPair,
DuadicCodeOddPair,
DyckWord,
DyckWords,
DynkinDiagram,
ECM,
Ei,
EisensteinForms,
ElementWrapper,
ElementaryCrystal,
Elements,
EllipticCurve,
EllipticCurveIsogeny,
EllipticCurve_from_c4c6,
EllipticCurve_from_cubic,
EllipticCurve_from_j,
EllipticCurve_from_plane_curve,
EllipticCurves_with_good_reduction_outside_S,
EmptySetError,
End,
EnumeratedSets,
EquationOrder,
EtaGroup,
EtaGroupElement,
EtaGroup_class,
EtaProduct,
EuclideanDomain,
EuclideanDomainElement,
EuclideanDomains,
EuclideanGroup,
Euler_Phi,
Expression,
ExtendedBinaryGolayCode,
ExtendedQuadraticResidueCode,
ExtendedTernaryGolayCode,
ExteriorAlgebra,
FFT,
FaceFan,
Factorization,
Family,
Fan,
Fan2d,
FanMorphism,
FareySymbol,
FastCrystal,
FastFourierTransform,
Field,
FieldElement,
Fields,
FilteredCombinatorialClass,
FiniteCombinatorialClass,
FiniteCoxeterGroups,
FiniteCrystals,
FiniteDimensionalAlgebra,
FiniteDimensionalAlgebrasWithBasis,
FiniteDimensionalBialgebrasWithBasis,
FiniteDimensionalCoalgebrasWithBasis,
FiniteDimensionalHopfAlgebrasWithBasis,
FiniteDimensionalModulesWithBasis,
FiniteEnumeratedSet,
FiniteEnumeratedSets,
FiniteField,
FiniteFields,
FiniteGroups,
FiniteLatticePosets,
FiniteMonoids,
FinitePermutationGroups,
FinitePosets,
FiniteSemigroups,
FiniteSetMaps,
FiniteSets,
FiniteStateMachine,
FiniteWeylGroups,
ForgetfulFunctor,
FormalSum,
FormalSums,
Frac,
FractionField,
FreeAbelianMonoid,
FreeAlgebra,
FreeAlgebraQuotient,
FreeGroup,
FreeModule,
FreeModules,
FreeMonoid,
FreeQuadraticModule,
FriCAS,
FrozenBitset,
FunctionField,
FunctionFields,
GCD,
GF,
GL,
GO,
GSets,
GU,
Gamma,
Gamma0,
Gamma0_NFCusps,
Gamma1,
GammaH,
Gap,
Gap3,
GcdDomains,
GelfandTsetlinPattern,
GelfandTsetlinPatterns,
GeneralDihedralGroup,
GeneralDiscreteDistribution,
GenericGraphQuery,
Genus2reduction,
Gfan,
Giac,
Gp,
GradedAlgebras,
GradedAlgebrasWithBasis,
GradedBialgebras,
GradedBialgebrasWithBasis,
GradedCoalgebras,
GradedCoalgebrasWithBasis,
GradedHopfAlgebras,
GradedHopfAlgebrasWithBasis,
GradedModules,
GradedModulesWithBasis,
Graph,
GraphBundle,
GraphDatabase,
GraphPaths,
GraphQuery,
Graphics,
GroupAlgebra,
GroupAlgebras,
Groupoid,
Groups,
HadamardDesign,
HallAlgebra,
HammingCode,
Hasse_bounds,
HeckeAlgebraSymmetricGroupT,
HeckeModules,
HeilbronnCremona,
HeilbronnMerel,
HexadecimalStrings,
HighestWeightCrystal,
HighestWeightCrystals,
HighestWeightRiggedConfigurations,
HighestWeightTensorProductOfKirillovReshetikhinTableaux,
HilbertClassPolynomialDatabase,
HillCryptosystem,
Hirzebruch_Jung_continued_fraction_list,
Hom,
Homset,
HomsetWithBase,
HopfAlgebras,
HopfAlgebrasWithBasis,
HyperbolicPlane_quadratic_form,
HyperellipticCurve,
HyperellipticCurve_from_invariants,
Hypergraph,
HyperplaneArrangements,
I,
Ideal,
Ideals,
IdentityFunctor,
IncidenceStructure,
IncidenceStructureFromMatrix,
IndexedSequence,
InfiniteAbstractCombinatorialClass,
InfiniteEnumeratedSets,
InfinitePolynomialRing,
Infinity,
InfinityCrystalOfGeneralizedYoungWalls,
InfinityCrystalOfNakajimaMonomials,
InfinityCrystalOfTableaux,
InfinityRing,
InnerProductSpace,
IntList,
Integer,
IntegerListsLex,
IntegerMod,
IntegerModRing,
IntegerRange,
IntegerRing,
IntegerVectors,
IntegerVectorsModPermutationGroup,
Integers,
IntegralDomain,
IntegralDomainElement,
IntegralDomains,
IwahoriHeckeAlgebra,
IwahoriHeckeAlgebraT,
J0,
J1,
JH,
Jacobian,
JoinSemilattice,
JonesDatabase,
Kash,
KazhdanLusztigPolynomial,
KirillovReshetikhinCrystal,
KirillovReshetikhinTableaux,
KleinFourGroup,
KnutsonTaoPuzzleSolver,
KodairaSymbol,
KostkaFoulkesPolynomial,
KoszulComplex,
Krawtchouk,
KummerSurface,
KyotoPathModel,
LCM,
LFSRCryptosystem,
LPProblem,
LPProblemStandardForm,
LabelledBinaryTree,
LabelledBinaryTrees,
LabelledOrderedTree,
LabelledOrderedTrees,
LatexExpr,
LatinSquare,
LatinSquare_generator,
LatticeDiagram,
LatticePolytope,
LatticePoset,
LatticePosets,
LaurentPolynomialRing,
LaurentSeries,
LaurentSeriesRing,
LazyPowerSeriesRing,
LeftModules,
Li,
LiE,
LinearCode,
LinearCodeFromCheckMatrix,
LinearCodeFromVectorSpace,
Lisp,
LocalComponent,
LyndonWord,
LyndonWords,
MPComplexField,
MSymbol,
Macaulay2,
Magma,
Magmas,
MapCombinatorialClass,
Maple,
Mat,
Mathematica,
MathieuGroup,
Matlab,
Matrix,
MatrixAlgebras,
MatrixGroup,
MatrixSpace,
Matroid,
Maxima,
MeetSemilattice,
Mestre_conic,
Minimog,
MixedIntegerLinearProgram,
Mod,
ModularAbelianVarieties,
ModularForms,
ModularFormsRing,
ModularSymbols,
ModularSymbols_clear_cache,
ModuleElement,
Modules,
ModulesWithBasis,
Moebius,
MonoidAlgebras,
Monoids,
MonotoneTriangles,
Morphism,
MultiSkewTableau,
MultiSkewTableaux,
MultichooseNK,
MultiplicativeGroupElement,
Mupad,
Mutability,
Mwrank,
N,
NFCusp,
NFCusps,
NFCusps_clear_cache,
NN,
NaN,
Necklaces,
NefPartition,
Newform,
Newforms,
NilCoxeterAlgebra,
NonCommutativeSymmetricFunctions,
NonDecreasingParkingFunction,
NonDecreasingParkingFunctions,
NonNegativeIntegerSemiring,
NonNegativeIntegers,
NonSymmetricMacdonaldPolynomials,
NonattackingFillings,
NormalFan,
NumberField,
NumberFieldElement,
NumberFieldTower,
NumberFields,
O,
Objects,
OctalStrings,
Octave,
OneExactCover,
OrderedMonoids,
OrderedPartitions,
OrderedSetPartition,
OrderedSetPartitions,
OrderedSets,
OrderedTree,
OrderedTrees,
OverconvergentModularForms,
P1List,
P1NFList,
PGL,
PGU,
PSL,
PSU,
PSage,
PSp,
ParametrizedSurface3D,
Parent,
ParentWithAdditiveAbelianGens,
ParentWithBase,
ParentWithGens,
ParentWithMultiplicativeAbelianGens,
Pari,
PariError,
PariGroup,
PariRing,
ParkingFunction,
ParkingFunctions,
PartiallyOrderedMonoids,
PartiallyOrderedSets,
Partition,
PartitionAlgebra,
PartitionTuple,
PartitionTuples,
Partitions,
PartitionsGreatestEQ,
PartitionsGreatestLE,
PartitionsInBox,
PerfectMatching,
PerfectMatchings,
Permutation,
PermutationGroup,
PermutationGroupElement,
PermutationGroupMap,
PermutationGroupMorphism,
PermutationGroupMorphism_id,
PermutationGroupMorphism_im_gens,
PermutationGroup_generic,
PermutationGroup_subgroup,
PermutationGroups,
PermutationOptions,
Permutations,
Piecewise,
PlanarAlgebra,
PointConfiguration,
PointedSets,
PolyhedralSets,
Polyhedron,
Polynomial,
PolynomialQuotientRing,
PolynomialQuotientRingElement,
PolynomialRing,
Poset,
Posets,
PositiveIntegers,
PowComputer,
PowComputer_ext_maker,
PowerSeries,
PowerSeriesRing,
PrimarySimilarityClassType,
PrimarySimilarityClassTypes,
Primes,
PrimitiveGroup,
PrimitiveGroups,
PrincipalIdealDomain,
PrincipalIdealDomainElement,
PrincipalIdealDomains,
Profiler,
ProjectiveGeometryDesign,
ProjectiveHypersurface,
ProjectiveSpace,
PropagatingIdeal,
QQ,
QQbar,
Qp,
QpCR,
Qq,
QqCR,
QuadraticBernoulliNumber,
QuadraticField,
QuadraticForm,
QuadraticResidueCode,
QuadraticResidueCodeEvenPair,
QuadraticResidueCodeOddPair,
QuadraticSpace,
QuadraticStratum,
QuarticCurve,
QuasiQuadraticResidueCode,
QuasiSymmetricFunctions,
QuaternionAlgebra,
QuaternionGroup,
QuaternionMatrixGroupGF3,
QuiverMutationType,
QuotientFields,
QuotientRing,
R,
RCrystal,
RDF,
RIF,
RLF,
RR,
RSK,
RSK_inverse,
Radix64Strings,
RandomLinearCode,
RandomLinearCodeGuava,
Rational,
RationalField,
Rationals,
RealDistribution,
RealDoubleElement,
RealDoubleField,
RealField,
RealInterval,
RealIntervalField,
RealLazyField,
RealNumber,
RealSet,
Realizations,
Reals,
RecursivelyEnumeratedSet,
ReedSolomonCode,
ReflexivePolytope,
ReflexivePolytopes,
RegularCrystals,
ResidueField,
RestrictedPartitions,
Ribbon,
RibbonShapedTableau,
RibbonTableau,
RibbonTableaux,
Riemann_Map,
RiggedConfigurations,
RightAngledArtinGroup,
RightModules,
Ring,
RingElement,
RingIdeals,
RingModules,
Rings,
Rngs,
RobinsonSchenstedKnuth,
RobinsonSchenstedKnuth_inverse,
RootSystem,
RubiksCube,
SAGE_DB,
SAGE_DOC,
SAGE_ENV,
SAGE_LOCAL,
SAGE_ROOT,
SAGE_TMP,
SL,
SL2Z,
SO,
SQLDatabase,
SQLQuery,
SR,
SU,
Sage,
SageObject,
Sandpile,
SandpileConfig,
SandpileDivisor,
Schemes,
SchubertPolynomialRing,
SearchForest,
SemidihedralGroup,
Semigroups,
SemimonomialTransformationGroup,
Semirings,
SemistandardMultiSkewTableaux,
SemistandardSkewTableaux,
SemistandardTableau,
SemistandardTableaux,
Sequence,
Sequences,
Set,
SetPartition,
SetPartitions,
SetPartitionsAk,
SetPartitionsBk,
SetPartitionsIk,
SetPartitionsPRk,
SetPartitionsPk,
SetPartitionsRk,
SetPartitionsSk,
SetPartitionsTk,
Sets,
SetsWithGrading,
SetsWithPartialMaps,
Shi,
ShiftCryptosystem,
ShrinkingGeneratorCryptosystem,
ShuffleAlgebra,
Si,
Sigma,
SignalError,
SignedCompositions,
SimilarityClassType,
SimilarityClassTypes,
Simplex,
SimplicialComplex,
SimplicialComplexMorphism,
SimplicialComplexes,
Singular,
SixVertexModel,
SkewPartition,
SkewPartitions,
SkewTableau,
SkewTableaux,
SloaneEncyclopedia,
Sp,
Spec,
Spherical,
SphericalDistribution,
SphericalElevation,
Spline,
SplitMetacyclicGroup,
Sq,
StandardBracketedLyndonWords,
StandardRibbonShapedTableaux,
StandardRibbons,
StandardSkewTableaux,
StandardTableau,
StandardTableauTuple,
StandardTableauTuples,
StandardTableaux,
SteenrodAlgebra,
SteinWatkinsAllData,
SteinWatkinsPrimeData,
StrongTableau,
StrongTableaux,
Subsets,
SubstitutionCryptosystem,
Subwords,
Sudoku,
SupersingularModule,
SuzukiGroup,
SymbolicData,
SymbolicLogic,
SymmetricFunctionAlgebra,
SymmetricFunctions,
SymmetricFunctionsNonCommutingVariables,
SymmetricFunctionsNonCommutingVariablesDual,
SymmetricGroup,
SymmetricGroupAlgebra,
SymmetricGroupRepresentation,
SymmetricGroupRepresentations,
TCrystal,
Tableau,
TableauTuple,
TableauTuples,
Tableaux,
Tachyon,
TamariIntervalPoset,
TamariIntervalPosets,
TemperleyLiebAlgebra,
TensorProductOfCrystals,
TensorProductOfKirillovReshetikhinTableaux,
TermOrder,
TernaryGolayCode,
TernaryQF,
TestSuite,
TimeSeries,
ToricCode,
ToricIdeal,
ToricLattice,
ToricVariety,
TotallyOrderedFiniteSet,
Transducer,
TransitiveGroup,
TransitiveGroups,
TransitiveIdeal,
TransitiveIdealGraded,
TranspositionCryptosystem,
TrivialCode,
TropicalSemiring,
TruncatedStaircases,
Tuples,
UnionCombinatorialClass,
UniqueFactorizationDomains,
UniqueRepresentation,
UnitGroup,
UniversalCyclotomicField,
Unknown,
UnorderedTuples,
UnsignedInfinityRing,
UnwrappingMorphism,
VectorPartition,
VectorPartitions,
VectorSpace,
VectorSpaces,
VigenereCryptosystem,
WalshCode,
WaveletTransform,
WeakTableau,
WeakTableaux,
WeierstrassForm,
WeightRing,
WeightedIntegerVectors,
WeylCharacterRing,
WeylDim,
WeylGroup,
WeylGroupElement,
WeylGroups,
WittDesign,
Word,
WordMorphism,
WordOptions,
WordPaths,
Words,
YangBaxterGraph,
ZZ,
Zmod,
Zp,
ZpCA,
ZpCR,
ZpFM,
Zq,
ZqCA,
ZqCR,
ZqFM,
__SAGEWS__,
__builtins__,
__file__,
__warningregistry__,
_salvus_parsing,
abs_symbolic,
absolute_igusa_invariants_kohel,
absolute_igusa_invariants_wamelen,
abstract_method,
acos,
acosh,
acot,
acoth,
acsc,
acsch,
add,
addgp,
addition_names,
additive_order,
admissible_partitions,
ag_code,
airy_ai,
airy_bi,
alarm,
algdep,
all_max_clique,
animate,
arc,
arccos,
arccosh,
arccot,
arccoth,
arccsc,
arccsch,
arcsec,
arcsech,
arcsin,
arcsinh,
arctan,
arctan2,
arctanh,
arg,
arrow,
arrow2d,
arrow3d,
ascii_art,
asec,
asech,
asin,
asinh,
assume,
assumptions,
atan,
atan2,
atanh,
attach,
attached_files,
attrcall,
auto,
axiom,
axiom_console,
aztec_sandpile,
backtrack_all,
balanced_sum,
banner,
bar_chart,
base_field,
base_ring,
basis,
bell_number,
bell_polynomial,
benchmark,
berlekamp_massey,
bernoulli,
bernoulli_mod_p,
bernoulli_mod_p_single,
bernoulli_polynomial,
bessel_I,
bessel_J,
bessel_K,
bessel_Y,
best_known_covering_design_www,
best_known_linear_code,
best_known_linear_code_www,
beta,
betavariate,
bezier3d,
bezier_path,
binomial,
binomial_coefficients,
block_diagonal_matrix,
block_matrix,
bounds_minimum_distance,
branching_rule,
branching_rule_from_plethysm,
browse_sage_doc,
brun,
bsgs,
build_alphabet,
button,
buzzard_tpslopes,
cached_function,
cached_in_parent_method,
cached_method,
cancel_alarm,
canonical_coercion,
capture,
cartan_matrix,
cartesian_product,
cartesian_product_iterator,
catalan,
catalan_number,
category,
ceil,
cell,
characteristic_polynomial,
charpoly,
chebyshev_T,
chebyshev_U,
checkbox,
choice,
circle,
class_graph,
clear_vars,
clebsch_gordan,
clebsch_invariants,
clique_number,
cm_j_invariants,
cm_j_invariants_and_orders,
cm_orders,
codes,
codesize_upper_bound,
coerce,
coercion_traceback,
coffeescript,
coincidence_discriminant,
coincidence_index,
color_selector,
colormaps,
colors,
column_matrix,
companion_matrix,
complete_sandpile,
complex_cubic_spline,
complex_plot,
compose,
composite_field,
conjugate,
constructions,
continuant,
continued_fraction,
continued_fraction_list,
contour_plot,
convergent,
convergents,
convolution,
conway_polynomial,
copy,
copying,
copyright,
cos,
cos_integral,
cosh,
cosh_integral,
cot,
coth,
coxeter_matrix,
cputime,
cremona_curves,
cremona_optimal_curves,
crt,
crt_basis,
crystals,
csc,
csch,
cube,
cubical_complexes,
cunningham_prime_factors,
current_randstate,
cyclic_permutations,
cyclic_permutations_iterator,
cyclotomic_cosets,
cyclotomic_polynomial,
cyclotomic_value,
cylindrical_plot3d,
cython,
cython_create_local_so,
cython_lambda,
database_install,
db,
db_save,
debug,
decomposition,
dedekind_sum,
deepcopy,
default_mip_solver,
default_mode,
degree_lowest_rational_function,
delsarte_bound_additive_hamming_space,
delsarte_bound_hamming_space,
delta_complexes,
delta_lseries,
delta_qexp,
denominator,
density_plot,
deprecated_callable_import,
derivative,
designs,
designs_from_XML,
designs_from_XML_url,
desolve,
desolve_laplace,
desolve_mintides,
desolve_odeint,
desolve_rk4,
desolve_system,
desolve_system_rk4,
desolve_tides_mpfr,
desolvers,
det,
detach,
dev,
developer,
diagonal_matrix,
dickman_rho,
diff,
differences,
digraphs,
dilog,
dim,
dimension,
dimension_cusp_forms,
dimension_eis,
dimension_modular_forms,
dimension_new_cusp_forms,
dimension_supersingular_module,
dimension_upper_bound,
dirac_delta,
direct_product_permgroups,
disc,
discrete_log,
discrete_log_generic,
discrete_log_lambda,
discrete_log_rho,
discriminant,
disk,
disk_cached_function,
divisors,
dodecahedron,
dumps,
dynamic,
e,
ecm,
edit,
eisenstein_series_lseries,
eisenstein_series_qexp,
elementary_matrix,
elias_bound_asymp,
elias_upper_bound,
ellipse,
ellipsis_iter,
ellipsis_range,
elliptic_curves,
elliptic_e,
elliptic_ec,
elliptic_eu,
elliptic_f,
elliptic_j,
elliptic_kc,
elliptic_pi,
email,
end,
entropy,
enum_affine_finite_field,
enum_affine_rational_field,
enumerate_totallyreal_fields_all,
enumerate_totallyreal_fields_prim,
enumerate_totallyreal_fields_rel,
eratosthenes,
erf,
error_fcn,
eta,
eta_poly_relations,
euler_gamma,
euler_number,
euler_phi,
eulers_method,
eulers_method_2x2,
eulers_method_2x2_plot,
exercise,
exists,
exists_conway_polynomial,
exp,
exp_integral_e,
exp_integral_e1,
expand,
experimental_packages,
explain_pickle,
expnums,
exponential_integral_1,
expovariate,
extend_to_primitive,
factor,
factorial,
falling_factorial,
false,
farey,
fast_callable,
fast_float,
fcp,
fibonacci,
fibonacci_sequence,
fibonacci_xrange,
finance,
find_a_ternary_qf_by_level_disc,
find_all_ternary_qf_by_level_disc,
find_fit,
find_local_maximum,
find_local_minimum,
find_root,
firing_graph,
firing_vector,
flatten,
floor,
forall,
forget,
fork,
fortran,
four_squares,
four_ti_2,
free_module_element,
frequency_distribution,
fricas,
fricas_console,
frobby,
func_persist,
function,
fundamental_discriminant,
g,
gamma,
gamma__exact,
gamma_inc,
gammavariate,
gap,
gap3,
gap3_console,
gap3_version,
gap_console,
gap_reset_workspace,
gaunt,
gauss,
gaussian_binomial,
gcd,
gegenbauer,
gen,
gen_laguerre,
gen_legendre_P,
gen_legendre_Q,
generic_cmp,
gens,
genus2reduction,
get_coercion_model,
get_gcd,
get_inverse_mod,
get_memory_usage,
get_remote_file,
get_verbose,
get_verbose_files,
getitem,
getrandbits,
gfan,
giac,
giac_console,
gilbert_lower_bound,
glaisher,
glue_graphs,
gnuplot,
gnuplot_console,
go,
golden_ratio,
gp,
gp_console,
gp_version,
graph_classes,
graph_coloring,
graph_db_info,
graph_editor,
graphics_array,
graphs,
graphs_list,
grid_sandpile,
griesmer_upper_bound,
groups,
gv_bound_asymp,
gv_info_rate,
hadamard_matrix,
hadamard_matrix_www,
half_integral_weight_modform_basis,
hamming_bound_asymp,
hamming_upper_bound,
heaviside,
hecke_operator,
hecke_operator_on_basis,
hecke_operator_on_qexp,
hecke_series,
heegner_point,
heegner_points,
help,
hermite,
hermite_constant,
hide,
hideall,
hilbert_class_polynomial,
hilbert_conductor,
hilbert_conductor_inverse,
hilbert_symbol,
hmm,
hom,
html,
hue,
hurwitz_zeta,
hyperbolic_arc,
hyperbolic_triangle,
hypergeometric,
hypergeometric_U,
hypergraphs,
hyperplane_arrangements,
i,
icosahedron,
ideal,
identity_matrix,
iet,
igusa_clebsch_invariants,
imag,
imag_part,
image,
imaginary,
implicit_multiplication,
implicit_plot,
implicit_plot3d,
import_statements,
incomplete_gamma,
infinity,
infix_operator,
initial_seed,
inject_off,
inject_on,
inotebook,
input_box,
input_grid,
install_package,
install_scripts,
integer_ceil,
integer_floor,
integer_ring,
integral,
integral_closure,
integral_numerical,
integrate,
interact,
interacts,
interfaces,
interval,
invariant_theory,
inverse_jacobi,
inverse_jacobi_cd,
inverse_jacobi_cn,
inverse_jacobi_cs,
inverse_jacobi_dc,
inverse_jacobi_dn,
inverse_jacobi_ds,
inverse_jacobi_nc,
inverse_jacobi_nd,
inverse_jacobi_ns,
inverse_jacobi_sc,
inverse_jacobi_sd,
inverse_jacobi_sn,
inverse_laplace,
inverse_mod,
is_2_adic_genus,
is_32_bit,
is_64_bit,
is_commutative,
is_even,
is_field,
is_fundamental_discriminant,
is_integrally_closed,
is_iterator,
is_odd,
is_pAdicField,
is_pAdicRing,
is_package_installed,
is_power_of_two,
is_prime,
is_prime_power,
is_pseudoprime,
is_pseudoprime_small_power,
is_square,
is_squarefree,
is_triangular_number,
isogeny_codomain_from_kernel,
isqrt,
j_invariant_qexp,
jacobi,
jacobi_P,
jacobi_am,
jacobi_cd,
jacobi_cn,
jacobi_cs,
jacobi_dc,
jacobi_dn,
jacobi_ds,
jacobi_nc,
jacobi_nd,
jacobi_ns,
jacobi_sc,
jacobi_sd,
jacobi_sn,
jacobi_symbol,
jacobian,
javascript,
join,
jordan_block,
julia,
kash,
kash_console,
kash_version,
kernel,
khinchin,
kronecker,
kronecker_character,
kronecker_character_upside_down,
kronecker_delta,
kronecker_symbol,
krull_dimension,
laguerre,
lambert_w,
laplace,
latex,
lattice_polytope,
lazy_attribute,
lazy_class_attribute,
lazy_import,
lcalc,
lcm,
least_quadratic_nonresidue,
legendre_P,
legendre_Q,
legendre_phi,
legendre_symbol,
lfsr_autocorrelation,
lfsr_connection_polynomial,
lfsr_sequence,
li,
libgap,
license,
lie,
lie_console,
lift,
lift_to_sl2z,
lim,
limit,
line,
line2d,
line3d,
linear_program,
linear_relation,
linear_transformation,
lisp,
lisp_console,
list_composition,
list_plot,
list_plot3d,
list_plot_loglog,
list_plot_semilogx,
list_plot_semilogy,
ln,
lngamma,
load,
load_attach_mode,
load_attach_path,
load_session,
loads,
local_print_mode,
localvars,
log,
log2,
log_b,
log_dvi,
log_gamma,
log_html,
log_integral,
log_integral_offset,
log_text,
lognormvariate,
logstr,
lucas_number1,
lucas_number2,
macaulay2,
macaulay2_console,
magics,
magma,
magma_console,
magma_free,
magma_version,
make_dlxwrapper,
manual,
map_threaded,
maple,
maple_console,
math,
mathematica,
mathematica_console,
mathml,
matlab,
matlab_console,
matlab_version,
matrix,
matrix_plot,
matroids,
max_clique,
max_symbolic,
maxima,
maxima_calculus,
maxima_console,
md,
mean,
median,
mediawiki,
merge_points,
mertens,
messaging,
min_cycles,
min_symbolic,
minimal_polynomial,
minimize,
minimize_constrained,
minpoly,
misc,
mod,
mode,
moebius,
monomials,
monsky_washnitzer,
moving_average,
mq,
mqrr_rational_reconstruction,
mrange,
mrange_iter,
mrrw1_bound_asymp,
mul,
multinomial,
multinomial_coefficients,
multiple,
multiples,
multiplication_names,
multiplicative_order,
mupad,
mupad_console,
mwrank,
mwrank_EllipticCurve,
mwrank_MordellWeil,
mwrank_console,
mwrank_get_precision,
mwrank_initprimes,
mwrank_set_precision,
%n,
nest,
newton_method_sizes,
next_prime,
next_prime_power,
next_probable_prime,
ngens,
norm,
normalvariate,
notebook,
nth_prime,
ntl,
num_cusps_of_width,
number_field_elements_from_algebraics,
number_of_divisors,
number_of_partitions,
number_of_tuples,
number_of_unordered_tuples,
numerator,
numerical_approx,
numerical_eigenforms,
numerical_integral,
numerical_sqrt,
objgen,
objgens,
octahedron,
octave,
octave_console,
octave_version,
odd_part,
ode_solver,
ode_system,
oeis,
one,
ones_matrix,
oo,
operator,
optional_packages,
order,
order_from_bounds,
order_from_multiple,
os,
pAdicExtension,
pAdicField,
pAdicRing,
pAdicWeightSpace,
pad_zeros,
padic_printing,
pager,
pandoc,
parallel,
parallel_firing_graph,
parametric_plot,
parametric_plot3d,
parent,
paretovariate,
pari,
pari_gen,
partial_sieve_function,
partition_sandpile,
perl,
permutation_action,
permutations,
pg,
pi,
pickle_function,
piecewise,
plot,
plot3d,
plot_loglog,
plot_semilogx,
plot_semilogy,
plot_slope_field,
plot_step_function,
plot_vector_field,
plot_vector_field3d,
plotkin_bound_asymp,
plotkin_upper_bound,
point,
point2d,
point3d,
points,
polar_plot,
polygen,
polygens,
polygon,
polygon2d,
polygon3d,
polygon_spline,
polylog,
polymake,
polytopes,
posets,
povray,
power,
power_mod,
powerset,
preparse,
preparser,
pretty_print,
pretty_print_default,
previous_prime,
previous_prime_power,
prime_divisors,
prime_factors,
prime_pi,
prime_powers,
prime_range,
prime_to_m_part,
primes,
primes_first_n,
primitive_root,
prod,
proof,
propcalc,
prun,
psi,
pylab,
pyrex,
python,
python3,
python_help,
q_binomial,
qepcad,
qepcad_console,
qepcad_formula,
qepcad_version,
qexp_eta,
qsieve,
quadratic_L_function__exact,
quadratic_L_function__numerical,
quadratic_residues,
quit_sage,
quo,
quotient,
r,
r_console,
r_version,
racah,
radical,
rainbow,
randint,
random,
random_DAG,
random_digraph,
random_matrix,
random_prime,
random_quadraticform,
random_quadraticform_with_conditions,
random_sublist,
random_ternaryqf,
random_ternaryqf_with_conditions,
random_tree,
random_vector,
randrange,
range_slider,
rank,
ranker,
rational_reconstruction,
read_data,
real,
real_part,
reciprocal_trig_functions,
reference,
region_plot,
regulator,
repr_lincomb,
require,
reset,
reset_load_attach_path,
restore,
revolution_plot3d,
rising_factorial,
robinson_schensted_knuth,
robinson_schensted_knuth_inverse,
round,
ruby,
run_doctests,
runfile,
running_total,
runsnake,
sage,
sage0,
sage0_console,
sage0_version,
sage_chat,
sage_eval,
sage_input,
sage_salvus,
sage_wraps,
sageobj,
sagex,
salvus,
sample,
sandlib,
save,
save_session,
scatter_plot,
schonheim,
scilab,
scipy,
script,
search_def,
search_doc,
search_src,
sec,
sech,
seed,
selector,
self_compose,
self_dual_codes_binary,
self_orthogonal_binary_codes,
seq,
set_default_variable_name,
set_edit_template,
set_gap_memory_pool_size,
set_modsym_print_mode,
set_random_seed,
set_verbose,
set_verbose_files,
sgn,
sh,
show,
show_default,
show_identifiers,
shuffle,
sidon_sets,
sig_on_count,
sigma,
sign,
simplicial_complexes,
simplify,
sin,
sin_integral,
singleton_bound_asymp,
singleton_upper_bound,
singular,
singular_console,
singular_version,
sinh,
sinh_integral,
sleep,
slider,
sloane,
sloane_find,
sloane_sequence,
solve,
solve_ineq,
solve_mod,
sort_complex_numbers_for_display,
span,
specialize,
species,
sphere,
spherical_bessel_J,
spherical_bessel_Y,
spherical_hankel1,
spherical_hankel2,
spherical_harmonic,
spherical_plot3d,
spike_function,
spline,
sqrt,
squarefree_divisors,
squarefree_part,
srange,
standard_packages,
stats,
std,
steenrod_algebra_basis,
stirling_number1,
stirling_number2,
strip_encoding,
sturm_bound,
subfactorial,
subsets,
sudoku,
sum,
sum_of_k_squares,
supersingular_D,
supersingular_j,
surfaces,
sxrange,
symbolic_expression,
symmetrica,
sympow,
sympy,
sys,
table,
tachyon_rt,
tan,
tanh,
taylor,
tensor,
tests,
tetrahedron,
text,
text3d,
text_control,
theta2_qexp,
theta_qexp,
three_squares,
time,
timeit,
tmp_dir,
tmp_filename,
top,
toric_plotter,
toric_varieties,
trac,
trace,
transducers,
transpose,
trial_division,
triangle_sandpile,
trivial_character,
trivial_covering_design,
true,
ttest,
tuples,
tutorial,
twinprime,
two_squares,
typeset_mode,
ultraspherical,
uniform,
union,
uniq,
unit_step,
units,
unordered_tuples,
unpickle_appends,
unpickle_build,
unpickle_extension,
unpickle_function,
unpickle_global,
unpickle_instantiate,
unpickle_newobj,
unpickle_persistent,
unset_verbose_files,
unsigned_infinity,
upgrade,
valuation,
var,
variance,
vector,
vector_callable_symbolic_dense,
vector_symbolic_dense,
verbose,
version,
victor_miller_basis,
view,
volume_hamming,
vonmisesvariate,
walltime,
walsh_matrix,
wave,
weakly_chordal,
weakref,
wedge,
weibullvariate,
wigner_3j,
wigner_6j,
wigner_9j,
wiki,
wilmes_algorithm,
word_problem,
words,
wronskian,
%x,
xgcd,
xinterval,
xkcd,
xlcm,
xmrange,
xmrange_iter,
xsrange,
zero,
zero_matrix,
zero_vector,
zeta,
zeta__exact,
zeta_symmetric,
zeta_zeros,
zetaderiv
	}
}