├── src ├── sage │ ├── dev │ │ ├── __init__.py │ │ ├── test │ │ │ ├── __init__.py │ │ │ └── data │ │ │ │ ├── git.patch │ │ │ │ ├── git-output.patch │ │ │ │ ├── hg.patch │ │ │ │ ├── hg-output.patch │ │ │ │ └── diff.patch │ │ └── all.py │ ├── ext │ │ ├── __init__.py │ │ ├── interpreters │ │ │ ├── .gitignore │ │ │ └── __init__.py │ │ ├── solaris_fixes.h │ │ ├── fast_callable.pxd │ │ └── cdefs.pxi │ ├── groups │ │ ├── __init__.py │ │ ├── affine_gps │ │ │ ├── __init__.py │ │ │ └── catalog.py │ │ ├── matrix_gps │ │ │ └── __init__.py │ │ ├── misc_gps │ │ │ ├── __init__.py │ │ │ └── misc_groups.py │ │ ├── abelian_gps │ │ │ └── __init__.py │ │ ├── perm_gps │ │ │ ├── partn_ref2 │ │ │ │ └── __init__.py │ │ │ ├── __init__.py │ │ │ └── partn_ref │ │ │ │ └── __init__.py │ │ ├── semimonomial_transformations │ │ │ ├── __init__.py │ │ │ └── semimonomial_transformation.pxd │ │ ├── additive_abelian │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── group.pxd │ │ ├── old.pxd │ │ └── libgap_wrapper.pxd │ ├── libs │ │ ├── __init__.py │ │ ├── flint │ │ │ ├── __init__.py │ │ │ ├── flint.pxd │ │ │ ├── fmpz_poly.pxd │ │ │ ├── flint.pyx │ │ │ └── ntl_interface.pxd │ │ ├── fplll │ │ │ ├── __init__.py │ │ │ └── fplll.pxd │ │ ├── linbox │ │ │ └── __init__.py │ │ ├── gmp │ │ │ ├── __init__.py │ │ │ └── all.pxd │ │ ├── lrcalc │ │ │ └── __init__.py │ │ ├── mpmath │ │ │ ├── __init__.py │ │ │ ├── ext_main.pxd │ │ │ └── utils.pxd │ │ ├── coxeter3 │ │ │ └── __init__.py │ │ ├── cremona │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── gap │ │ │ ├── all.py │ │ │ ├── __init__.py │ │ │ └── test │ │ │ │ └── README.txt │ │ ├── mwrank │ │ │ └── __init__.py │ │ ├── ntl │ │ │ ├── __init__.py │ │ │ ├── ntl_GF2.pxd │ │ │ ├── ntl_GF2X.pxd │ │ │ ├── ntl_vec_ZZ_pE_decl.pxd │ │ │ ├── ntl_vec_ZZ_p_decl.pxd │ │ │ ├── ntl_mat_ZZ.pxd │ │ │ ├── ntl_ZZ.pxd │ │ │ ├── ntl_lzz_pContext.pxd │ │ │ ├── ntl_ZZX.pxd │ │ │ ├── ntl_mat_GF2.pxd │ │ │ ├── ntl_GF2E.pxd │ │ │ ├── ntl_GF2EContext.pxd │ │ │ ├── ntl_ZZ_pEContext.pxd │ │ │ ├── ntl_GF2EX.pxd │ │ │ ├── ntl_mat_GF2E.pxd │ │ │ ├── ntl_ZZ_p.pxd │ │ │ ├── ntl_lzz_p.pxd │ │ │ ├── ntl_ZZ_pEX.pxd │ │ │ ├── ntl_lzz_pX.pxd │ │ │ ├── ntl_ZZ_pE.pxd │ │ │ ├── ntl_ZZ_pContext.pxd │ │ │ └── ntl_ZZ_pX.pxd │ │ ├── pari │ │ │ ├── __init__.py │ │ │ ├── all.py │ │ │ ├── handle_error.pxd │ │ │ ├── gen.pxd │ │ │ ├── pari_err.pxi │ │ │ └── pari_err.h │ │ ├── symmetrica │ │ │ ├── __init__.py │ │ │ └── symmetrica.pyx │ │ ├── lcalc │ │ │ └── __init__.py │ │ ├── polybori │ │ │ └── __init__.py │ │ └── singular │ │ │ └── __init__.py │ ├── misc │ │ ├── __init__.py │ │ ├── misc_c.pxd │ │ ├── fast_methods.pxd │ │ ├── proof.py │ │ ├── nested_class.pxd │ │ ├── allocator.pxd │ │ ├── darwin_memory_usage.h │ │ ├── copying.py │ │ ├── refcount.pyx │ │ └── lazy_list.pxd │ ├── modular │ │ ├── __init__.py │ │ ├── hecke │ │ │ └── __init__.py │ │ ├── modsym │ │ │ ├── __init__.py │ │ │ ├── apply.pxd │ │ │ └── all.py │ │ ├── local_comp │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── abvar │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── modform │ │ │ └── __init__.py │ │ ├── ssmod │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── overconvergent │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── quatalg │ │ │ ├── all.py │ │ │ └── __init__.py │ │ ├── arithgroup │ │ │ └── __init__.py │ │ └── congroup_element.py │ ├── modules │ │ ├── __init__.py │ │ ├── fg_pid │ │ │ └── __init__.py │ │ ├── module.pxd │ │ ├── vector_complex_double_dense.pxd │ │ ├── vector_real_double_dense.pxd │ │ ├── vector_modn_sparse_h.pxi │ │ ├── module_element.py │ │ ├── vector_integer_dense.pxd │ │ ├── vector_rational_dense.pxd │ │ ├── vector_mod2_dense.pxd │ │ └── vector_modn_dense.pxd │ ├── schemes │ │ ├── __init__.py │ │ ├── affine │ │ │ └── __init__.py │ │ ├── projective │ │ │ └── __init__.py │ │ ├── elliptic_curves │ │ │ └── __init__.py │ │ ├── generic │ │ │ ├── __init__.py │ │ │ ├── notes │ │ │ │ └── homset.txt │ │ │ └── all.py │ │ ├── jacobians │ │ │ ├── __init__.py │ │ │ ├── all.py │ │ │ └── notes.txt │ │ ├── toric │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── plane_conics │ │ │ └── __init__.py │ │ ├── plane_curves │ │ │ └── __init__.py │ │ ├── plane_quartics │ │ │ ├── __init__.py │ │ │ └── all.py │ │ └── hyperelliptic_curves │ │ │ ├── __init__.py │ │ │ ├── hypellfrob │ │ │ └── README │ │ │ └── all.py │ ├── server │ │ ├── __init__.py │ │ ├── nodoctest.py │ │ ├── trac │ │ │ ├── __init__.py │ │ │ └── all.py │ │ └── all.py │ ├── sets │ │ └── __init__.py │ ├── algebras │ │ ├── __init__.py │ │ ├── steenrod │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── letterplace │ │ │ └── __init__.py │ │ └── quatalg │ │ │ ├── all.py │ │ │ └── __init__.py │ ├── databases │ │ └── __init__.py │ ├── interacts │ │ └── __init__.py │ ├── interfaces │ │ └── __init__.py │ ├── plot │ │ ├── plot3d │ │ │ ├── __init__.py │ │ │ ├── base.pxd │ │ │ ├── examples.py │ │ │ ├── parametric_surface.pxd │ │ │ ├── help.pyx │ │ │ └── transform.pxd │ │ └── __init__.py │ ├── rings │ │ ├── __init__.py │ │ ├── function_field │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── number_field │ │ │ ├── __init__.py │ │ │ └── number_field_base.pxd │ │ ├── semirings │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── padics │ │ │ ├── padic_base_coercion.pxd │ │ │ ├── __init__.py │ │ │ ├── padic_base_coercion.pyx │ │ │ ├── padic_fixed_mod_element.pxd │ │ │ ├── padic_capped_absolute_element.pxd │ │ │ ├── padic_capped_relative_element.pxd │ │ │ ├── local_generic_element.pxd │ │ │ ├── padic_ZZ_pX_element.pxd │ │ │ ├── morphism.pxd │ │ │ ├── all.py │ │ │ ├── common_conversion.pxd │ │ │ └── padic_ZZ_pX_FM_element.pxd │ │ ├── polynomial │ │ │ ├── __init__.py │ │ │ ├── padics │ │ │ │ └── __init__.py │ │ │ ├── multi_polynomial.pxd │ │ │ ├── symmetric_reduction.pxd │ │ │ ├── multi_polynomial_ideal_libsingular.pxd │ │ │ ├── polynomial_gf2x.pxd │ │ │ ├── polynomial_template_header.pxi │ │ │ ├── polynomial_integer_dense_ntl.pxd │ │ │ ├── polynomial_zz_pex.pxd │ │ │ └── multi_polynomial_ring_generic.pxd │ │ ├── finite_rings │ │ │ ├── __init__.py │ │ │ ├── element_base.pxd │ │ │ ├── stdint.h │ │ │ └── finite_field_base.pxd │ │ ├── universal_cyclotomic_field │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── laurent_series_ring_element.pxd │ │ ├── power_series_poly.pxd │ │ ├── power_series_mpoly.pxd │ │ ├── bernmm │ │ │ └── README2.txt │ │ ├── integer_ring.pxd │ │ ├── power_series_ring_element.pxd │ │ ├── complex_number.pxd │ │ ├── integer_ring_python.py │ │ └── rational.pxd │ ├── sat │ │ ├── __init__.py │ │ ├── solvers │ │ │ ├── satsolver.pxd │ │ │ ├── __init__.py │ │ │ └── cryptominisat │ │ │ │ ├── cryptominisat.pxd │ │ │ │ └── __init__.py │ │ └── converters │ │ │ ├── __init__.py │ │ │ └── anf2cnf.py │ ├── coding │ │ ├── codecan │ │ │ └── __init__.py │ │ ├── __init__.py │ │ └── source_coding │ │ │ ├── __init__.py │ │ │ └── all.py │ ├── combinat │ │ ├── designs │ │ │ └── __init__.py │ │ ├── ncsym │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── sf │ │ │ └── __init__.py │ │ ├── ncsf_qsym │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── __init__.py │ │ ├── matrices │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── species │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── words │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── rigged_configurations │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── posets │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── cluster_algebra_quiver │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── permutation_cython.pxd │ │ ├── combinat_cython.pxd │ │ ├── crystals │ │ │ └── __init__.py │ │ ├── partitions_c.h │ │ ├── family.py │ │ └── root_system │ │ │ └── __init__.py │ ├── homology │ │ ├── __init__.py │ │ └── all.py │ ├── __init__.py │ ├── geometry │ │ ├── polyhedron │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── __init__.py │ │ ├── hyperplane_arrangement │ │ │ └── __init__.py │ │ ├── triangulation │ │ │ ├── __init__.py │ │ │ ├── all.py │ │ │ ├── functions.pxd │ │ │ ├── functions.h │ │ │ ├── data.pxd │ │ │ ├── triangulations.pxd │ │ │ └── functions.cc │ │ ├── riemannian_manifolds │ │ │ ├── __init__.py │ │ │ └── all.py │ │ └── polyhedra.py │ ├── gsl │ │ ├── __init__.py │ │ ├── gsl_elljac.pxi │ │ ├── ode.pxd │ │ ├── gsl_dawson.pxi │ │ ├── gsl_clausen.pxi │ │ ├── gsl_pow_int.pxi │ │ ├── gsl_mode.pxi │ │ ├── gsl_elementary.pxi │ │ ├── gsl_sf_result.pxi │ │ ├── gsl_dilog.pxi │ │ ├── gsl_array.pxd │ │ ├── dwt.pxd │ │ ├── gsl_lambert.pxi │ │ ├── gsl_synchrotron.pxi │ │ ├── interpolation.pxd │ │ ├── fft.pxd │ │ ├── gsl_diff.pxi │ │ ├── callback.pyx │ │ ├── gsl_debye.pxi │ │ └── gsl_transport.pxi │ ├── media │ │ ├── __init__.py │ │ └── all.py │ ├── monoids │ │ └── __init__.py │ ├── stats │ │ ├── __init__.py │ │ ├── hmm │ │ │ ├── __init__.py │ │ │ └── util.pxd │ │ ├── test.py │ │ └── all.py │ ├── tensor │ │ ├── __init__.py │ │ └── all.py │ ├── tests │ │ ├── __init__.py │ │ ├── all.py │ │ ├── french_book │ │ │ ├── README │ │ │ └── __init__.py │ │ └── startup.py │ ├── calculus │ │ ├── __init__.py │ │ └── todo.txt │ ├── categories │ │ ├── examples │ │ │ ├── __init__.py │ │ │ └── coxeter_groups.py │ │ ├── category_singleton.pxd │ │ ├── functor.pxd │ │ └── morphism.pxd │ ├── functions │ │ └── __init__.py │ ├── graphs │ │ ├── base │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── __init__.py │ │ ├── generators │ │ │ └── __init__.py │ │ ├── modular_decomposition │ │ │ └── __init__.py │ │ ├── graph_decompositions │ │ │ └── __init__.py │ │ ├── distances_all_pairs.pxd │ │ └── trees.pxd │ ├── lfunctions │ │ ├── __init__.py │ │ └── all.py │ ├── numerical │ │ ├── __init__.py │ │ ├── backends │ │ │ ├── __init__.py │ │ │ └── ppl_backend.pxd │ │ └── all.py │ ├── probability │ │ ├── __init__.py │ │ └── all.py │ ├── sandpiles │ │ ├── __init__.py │ │ └── all.py │ ├── crypto │ │ ├── public_key │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── block_cipher │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── mq │ │ │ └── __init__.py │ │ ├── __init__.py │ │ └── all.py │ ├── logic │ │ ├── all.py │ │ └── __init__.py │ ├── quadratic_forms │ │ ├── __init__.py │ │ └── genera │ │ │ ├── __init__.py │ │ │ └── all.py │ ├── structure │ │ ├── proof │ │ │ └── __init__.py │ │ ├── sage_object.pxd │ │ ├── __init__.py │ │ ├── debug_options.pxd │ │ ├── misc.pxd │ │ └── wrapper_parent.pxd │ ├── symbolic │ │ ├── __init__.py │ │ ├── integration │ │ │ └── __init__.py │ │ ├── constants_c.pxd │ │ ├── getitem.pxd │ │ └── all.py │ ├── games │ │ ├── __init__.py │ │ └── all.py │ ├── dynamics │ │ ├── __init__.py │ │ ├── flat_surfaces │ │ │ ├── __init__.py │ │ │ └── all.py │ │ ├── interval_exchanges │ │ │ ├── __init__.py │ │ │ └── all.py │ │ └── all.py │ ├── matroids │ │ ├── __init__.py │ │ ├── minorfix.h │ │ ├── all.py │ │ └── circuit_closures_matroid.pxd │ ├── parallel │ │ ├── all.py │ │ └── __init__.py │ ├── finance │ │ ├── __init__.py │ │ └── time_series.pxd │ ├── matrix │ │ ├── matrix1.pxd │ │ ├── __init__.py │ │ ├── matrix_sparse.pxd │ │ ├── matrix_domain_dense.pxd │ │ ├── matrix_domain_sparse.pxd │ │ ├── matrix_generic_dense.pxd │ │ ├── matrix_symbolic_dense.pxd │ │ ├── matrix_dense.pxd │ │ ├── template.pxd │ │ ├── matrix_generic_sparse.pxd │ │ ├── matrix_window_modn_dense.pxd │ │ ├── matrix_complex_double_dense.pxd │ │ ├── matrix_mpolynomial_dense.pxd │ │ ├── matrix_real_double_dense.pxd │ │ ├── matrix_integer_2x2.pxd │ │ ├── matrix_modn_sparse.pxd │ │ ├── matrix_modn_dense_float.pxd │ │ ├── matrix_integer_sparse.pxd │ │ ├── matrix_modn_dense_double.pxd │ │ ├── all.py │ │ ├── matrix_rational_sparse.pxd │ │ ├── matrix_double_dense.pxd │ │ └── action.pxd │ ├── doctest │ │ ├── tests │ │ │ ├── 1second.rst │ │ │ ├── 99seconds.rst │ │ │ ├── simple_failure.rst │ │ │ ├── abort.rst │ │ │ ├── longtime.rst │ │ │ ├── sig_on.rst │ │ │ ├── nodoctest.py │ │ │ ├── interrupt.rst │ │ │ ├── fail_and_die.rst │ │ │ ├── atexit.rst │ │ │ ├── keyboardinterrupt.rst │ │ │ ├── initial.rst │ │ │ └── show_skipped.rst │ │ ├── all.py │ │ └── __init__.py │ ├── .gitignore │ └── version.py ├── bin │ ├── sage-gdb-commands │ ├── sage-python │ ├── sage-list-optional │ ├── sage-list-standard │ ├── sage-list-experimental │ ├── sage-grep │ ├── sage-grepdoc │ ├── sage-download-upstream │ ├── sage-maxima.lisp │ ├── sage-version.sh │ ├── sage-native-execute │ ├── sage-open │ ├── sage-run-cython │ ├── sage-upgrade │ ├── sage-inline-fortran │ ├── sage-notebook-insecure │ ├── sage-eval │ └── sage-pypkg-location ├── doc │ ├── common │ │ ├── __init__.py │ │ ├── themes │ │ │ ├── sage │ │ │ │ └── static │ │ │ │ │ ├── favicon.ico │ │ │ │ │ ├── sageicon.png │ │ │ │ │ └── sagelogo.png │ │ │ └── sageref │ │ │ │ └── static │ │ │ │ └── favicon.ico │ │ └── update-python-inv.sh │ ├── en │ │ ├── introspect │ │ │ ├── __init__.py │ │ │ ├── static │ │ │ │ └── empty │ │ │ └── templates │ │ │ │ └── layout.html │ │ ├── reference │ │ │ ├── cmd │ │ │ │ ├── conf.py │ │ │ │ └── index.rst │ │ │ ├── dev │ │ │ │ ├── conf.py │ │ │ │ └── index.rst │ │ │ ├── games │ │ │ │ ├── conf.py │ │ │ │ └── index.rst │ │ │ ├── hecke │ │ │ │ └── conf.py │ │ │ ├── libs │ │ │ │ └── conf.py │ │ │ ├── logic │ │ │ │ ├── conf.py │ │ │ │ └── index.rst │ │ │ ├── misc │ │ │ │ └── conf.py │ │ │ ├── rings │ │ │ │ └── conf.py │ │ │ ├── sat │ │ │ │ └── conf.py │ │ │ ├── stats │ │ │ │ ├── conf.py │ │ │ │ └── index.rst │ │ │ ├── algebras │ │ │ │ └── conf.py │ │ │ ├── arithgroup │ │ │ │ ├── conf.py │ │ │ │ └── media │ │ │ │ │ └── pairing.png │ │ │ ├── calculus │ │ │ │ └── conf.py │ │ │ ├── categories │ │ │ │ └── conf.py │ │ │ ├── coding │ │ │ │ ├── conf.py │ │ │ │ └── index.rst │ │ │ ├── coercion │ │ │ │ └── conf.py │ │ │ ├── combinat │ │ │ │ ├── conf.py │ │ │ │ ├── media │ │ │ │ │ ├── a_poset.png │ │ │ │ │ ├── graphs-5.pdf │ │ │ │ │ ├── graphs-5.png │ │ │ │ │ ├── polytope.png │ │ │ │ │ ├── prefix-tree-graphs-4.pdf │ │ │ │ │ ├── prefix-tree-graphs-4.png │ │ │ │ │ ├── complete-binary-trees-4.pdf │ │ │ │ │ ├── complete-binary-trees-4.png │ │ │ │ │ ├── prefix-tree-partitions-5.pdf │ │ │ │ │ └── prefix-tree-partitions-5.png │ │ │ │ ├── partitions.rst │ │ │ │ ├── ncsym.rst │ │ │ │ ├── cluster_algebras.rst │ │ │ │ ├── tableaux.rst │ │ │ │ ├── posets.rst │ │ │ │ ├── developer.rst │ │ │ │ ├── ncsf_qsym.rst │ │ │ │ ├── designs.rst │ │ │ │ └── words.rst │ │ │ ├── constants │ │ │ │ ├── conf.py │ │ │ │ └── index.rst │ │ │ ├── databases │ │ │ │ └── conf.py │ │ │ ├── doctest │ │ │ │ ├── conf.py │ │ │ │ └── index.rst │ │ │ ├── dynamics │ │ │ │ ├── conf.py │ │ │ │ ├── index.rst │ │ │ │ ├── flat_surfaces.rst │ │ │ │ └── interval_exchanges.rst │ │ │ ├── finance │ │ │ │ ├── conf.py │ │ │ │ └── index.rst │ │ │ ├── functions │ │ │ │ └── conf.py │ │ │ ├── geometry │ │ │ │ └── conf.py │ │ │ ├── graphs │ │ │ │ ├── conf.py │ │ │ │ └── media │ │ │ │ │ ├── cycle.png │ │ │ │ │ ├── square.png │ │ │ │ │ ├── structure.png │ │ │ │ │ └── heawood-graph-latex.png │ │ │ ├── groups │ │ │ │ └── conf.py │ │ │ ├── homology │ │ │ │ ├── conf.py │ │ │ │ └── media │ │ │ │ │ ├── rp2.png │ │ │ │ │ ├── klein.png │ │ │ │ │ ├── torus.png │ │ │ │ │ ├── simplices.png │ │ │ │ │ └── torus_labelled.png │ │ │ ├── interfaces │ │ │ │ └── conf.py │ │ │ ├── lfunctions │ │ │ │ ├── conf.py │ │ │ │ └── index.rst │ │ │ ├── matrices │ │ │ │ └── conf.py │ │ │ ├── matroids │ │ │ │ └── conf.py │ │ │ ├── modabvar │ │ │ │ └── conf.py │ │ │ ├── modfrm │ │ │ │ └── conf.py │ │ │ ├── modmisc │ │ │ │ └── conf.py │ │ │ ├── modsym │ │ │ │ └── conf.py │ │ │ ├── modules │ │ │ │ └── conf.py │ │ │ ├── monoids │ │ │ │ ├── conf.py │ │ │ │ └── index.rst │ │ │ ├── notebook │ │ │ │ └── conf.py │ │ │ ├── numerical │ │ │ │ └── conf.py │ │ │ ├── padics │ │ │ │ └── conf.py │ │ │ ├── parallel │ │ │ │ ├── conf.py │ │ │ │ └── index.rst │ │ │ ├── plot3d │ │ │ │ └── conf.py │ │ │ ├── plotting │ │ │ │ └── conf.py │ │ │ ├── schemes │ │ │ │ └── conf.py │ │ │ ├── semirings │ │ │ │ ├── conf.py │ │ │ │ └── index.rst │ │ │ ├── structure │ │ │ │ └── conf.py │ │ │ ├── tensor │ │ │ │ ├── conf.py │ │ │ │ └── index.rst │ │ │ ├── cryptography │ │ │ │ └── conf.py │ │ │ ├── finite_rings │ │ │ │ └── conf.py │ │ │ ├── function_fields │ │ │ │ ├── conf.py │ │ │ │ └── index.rst │ │ │ ├── number_fields │ │ │ │ └── conf.py │ │ │ ├── plane_curves │ │ │ │ └── conf.py │ │ │ ├── power_series │ │ │ │ ├── conf.py │ │ │ │ └── index.rst │ │ │ ├── probability │ │ │ │ ├── conf.py │ │ │ │ └── index.rst │ │ │ ├── quadratic_forms │ │ │ │ ├── conf.py │ │ │ │ └── index.rst │ │ │ ├── quat_algebras │ │ │ │ ├── conf.py │ │ │ │ └── index.rst │ │ │ ├── rings_numerical │ │ │ │ └── conf.py │ │ │ ├── rings_standard │ │ │ │ └── conf.py │ │ │ ├── history_and_license │ │ │ │ └── conf.py │ │ │ ├── polynomial_rings │ │ │ │ ├── conf.py │ │ │ │ ├── polynomial_rings_laurent.rst │ │ │ │ ├── polynomial_rings_infinite.rst │ │ │ │ ├── polynomial_rings_toy_implementations.rst │ │ │ │ └── index.rst │ │ │ ├── footer.txt │ │ │ ├── riemannian_geometry │ │ │ │ └── index.rst │ │ │ └── todolist.rst │ │ ├── prep │ │ │ └── media │ │ │ │ ├── SignIn.png │ │ │ │ ├── LoggedIn.png │ │ │ │ ├── Rplot001.png │ │ │ │ ├── ActiveCell.png │ │ │ │ ├── FirstCell.png │ │ │ │ ├── HaveSignin.png │ │ │ │ ├── NotLoggedIn.png │ │ │ │ ├── OpenIDPage.png │ │ │ │ ├── TextEditor.png │ │ │ │ ├── ClickBlueLine.png │ │ │ │ ├── EmptyNotebook.png │ │ │ │ ├── EvaluateCell.png │ │ │ │ ├── LiveWorksheet.png │ │ │ │ ├── NewWorksheet.png │ │ │ │ ├── SignInNormal.png │ │ │ │ ├── SignInOpenID.png │ │ │ │ ├── ThinBlueLine.png │ │ │ │ ├── RegularSigninPage.png │ │ │ │ ├── EmptyNotebookGetNew.png │ │ │ │ └── heawood-graph-latex.png │ │ ├── bordeaux_2008 │ │ │ ├── birch.png │ │ │ ├── modpcurve.png │ │ │ ├── number_fields.rst │ │ │ └── birds_eye_view.rst │ │ ├── website │ │ │ ├── static │ │ │ │ └── pdf.png │ │ │ └── index.rst │ │ ├── a_tour_of_sage │ │ │ ├── sin_plot.png │ │ │ └── eigen_plot.png │ │ ├── developer │ │ │ ├── static │ │ │ │ ├── flowchart.dia │ │ │ │ ├── flowchart.pdf │ │ │ │ └── meld-screenshot.png │ │ │ └── sagenb │ │ │ │ ├── pull_button.png │ │ │ │ ├── branch_dropdown.png │ │ │ │ ├── forking_button.png │ │ │ │ ├── links.inc │ │ │ │ ├── this_project.inc │ │ │ │ └── github_development.rst │ │ ├── thematic_tutorials │ │ │ ├── media │ │ │ │ ├── 1.png │ │ │ │ ├── KR_A.png │ │ │ │ ├── KR_B.png │ │ │ │ ├── KR_C.png │ │ │ │ ├── KR_D.png │ │ │ │ ├── wcf1.png │ │ │ │ ├── KR_E6.png │ │ │ │ ├── a1box.png │ │ │ │ ├── a1tag.png │ │ │ │ ├── a2box.png │ │ │ │ ├── a2rho.png │ │ │ │ ├── a2tag.png │ │ │ │ ├── ab2tag.png │ │ │ │ ├── b2box.png │ │ │ │ ├── graph0.png │ │ │ │ ├── stand-a.png │ │ │ │ ├── stand-b.png │ │ │ │ ├── stand-c.png │ │ │ │ ├── stand-d.png │ │ │ │ ├── stand-g.png │ │ │ │ ├── tensor.png │ │ │ │ ├── LScrystal.png │ │ │ │ ├── lp_flot1.png │ │ │ │ ├── lp_flot2.png │ │ │ │ ├── standard1.png │ │ │ │ ├── tableau1.png │ │ │ │ ├── tableau2.png │ │ │ │ ├── tableau3.png │ │ │ │ ├── tableau4.png │ │ │ │ ├── tableaux.png │ │ │ │ ├── KR_Atwisted.png │ │ │ │ ├── KR_Atwisted1.png │ │ │ │ ├── KR_Dtwisted.png │ │ │ │ ├── a2rho_color.png │ │ │ │ ├── sandpile │ │ │ │ │ ├── C_6.png │ │ │ │ │ ├── btw.png │ │ │ │ │ ├── example1.png │ │ │ │ │ ├── initial.png │ │ │ │ │ ├── random.png │ │ │ │ │ └── C_6-parallel.png │ │ │ │ ├── KR_Atwisted_dual.png │ │ │ │ ├── KR_C_exceptional.png │ │ │ │ ├── level_zero_crystal.png │ │ │ │ ├── parabolic_subcrystal.png │ │ │ │ └── KR_Dtwisted_exceptional.png │ │ │ └── toctree.rst │ │ └── numerical_sage │ │ │ ├── parallel_computation.rst │ │ │ └── installation.rst │ ├── .gitignore │ ├── fr │ │ └── a_tour_of_sage │ │ │ ├── sin_plot.png │ │ │ └── eigen_plot.png │ ├── tr │ │ └── a_tour_of_sage │ │ │ ├── sin_plot.png │ │ │ └── eigen_plot.png │ └── Makefile ├── ext │ ├── magma │ │ ├── latex │ │ │ └── latex.spec │ │ ├── sage │ │ │ └── sage.spec │ │ ├── spec │ │ └── user │ │ │ └── foo.m │ ├── mwrank │ │ └── PRIMES │ ├── images │ │ ├── corner.png │ │ ├── evaluate.png │ │ ├── favicon.ico │ │ ├── sagelogo.png │ │ └── evaluate_over.png │ ├── pickle_jar │ │ └── pickle_jar.tar.bz2 │ ├── gap │ │ └── console.g │ ├── pari │ │ └── dokchitser │ │ │ └── testall │ └── singular │ │ ├── sage.lib │ │ └── rrbasis.lib ├── .gitignore ├── c_lib │ ├── .gitignore │ └── include │ │ ├── mpz_longlong.h │ │ ├── convert.h │ │ └── mpz_pylong.h ├── mac-app │ ├── English.lproj │ │ ├── InfoPlist.strings │ │ ├── MainMenu.nib │ │ │ └── keyedobjects.nib │ │ ├── MyDocument.nib │ │ │ └── keyedobjects.nib │ │ └── Credits.html │ ├── appl.icns │ ├── sage-small-blue.png │ ├── sage-small-green.png │ ├── sage-small-grey.png │ ├── sage-small-red.png │ ├── sage-document-py.icns │ ├── sage-document-sws.icns │ ├── sage-document-cython.icns │ ├── sage-document-sage.icns │ ├── sage-document-spkg.icns │ ├── Sage_Prefix.pch │ └── main.m └── Makefile ├── VERSION.txt └── m4 └── ax_prog_perl_version.m4 /src/sage/dev/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/ext/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/groups/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/libs/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/misc/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/modular/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/modules/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/schemes/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/server/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/sets/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/bin/sage-gdb-commands: -------------------------------------------------------------------------------- 1 | r 2 | -------------------------------------------------------------------------------- /src/doc/common/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/sage/algebras/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/databases/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/dev/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/interacts/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/interfaces/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/libs/flint/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/libs/fplll/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/libs/linbox/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/plot/plot3d/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/rings/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/sage/sat/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/sage/server/nodoctest.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/doc/en/introspect/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/ext/magma/latex/latex.spec: -------------------------------------------------------------------------------- 1 | latex.m -------------------------------------------------------------------------------- /src/ext/mwrank/PRIMES: -------------------------------------------------------------------------------- 1 | 19047851 2 | -------------------------------------------------------------------------------- /src/sage/coding/codecan/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/combinat/designs/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/combinat/ncsym/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/combinat/sf/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/sage/groups/affine_gps/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/groups/matrix_gps/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/groups/misc_gps/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/homology/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/sage/libs/gmp/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/sage/libs/lrcalc/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/sage/libs/mpmath/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/sage/modular/hecke/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/modular/modsym/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/schemes/affine/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/doc/en/introspect/static/empty: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/ext/magma/sage/sage.spec: -------------------------------------------------------------------------------- 1 | basic.m 2 | -------------------------------------------------------------------------------- /src/sage/__init__.py: -------------------------------------------------------------------------------- 1 | __all__ = ['all'] 2 | -------------------------------------------------------------------------------- /src/sage/coding/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/combinat/ncsf_qsym/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/ext/interpreters/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /src/sage/ext/interpreters/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/sage/geometry/polyhedron/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/groups/abelian_gps/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/gsl/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/libs/coxeter3/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/sage/media/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/modular/local_comp/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/modules/fg_pid/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/sage/monoids/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/plot/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/rings/function_field/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/rings/number_field/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/schemes/projective/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/stats/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/tensor/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/tests/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/.gitignore: -------------------------------------------------------------------------------- 1 | /.cython_version 2 | /build 3 | -------------------------------------------------------------------------------- /src/doc/en/reference/cmd/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/dev/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/games/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/hecke/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/libs/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/logic/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/misc/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/rings/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/sat/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/stats/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/sage/calculus/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/categories/examples/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/sage/functions/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/geometry/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/graphs/base/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/groups/perm_gps/partn_ref2/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/lfunctions/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/libs/cremona/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/libs/gap/all.py: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/sage/libs/mwrank/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/libs/ntl/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/libs/pari/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/numerical/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/probability/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/sandpiles/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/schemes/elliptic_curves/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/server/trac/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/stats/hmm/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/doc/en/reference/algebras/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/arithgroup/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/calculus/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/categories/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/coding/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/coercion/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/combinat/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/constants/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/databases/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/doctest/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/dynamics/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/finance/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/functions/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/geometry/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/graphs/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/groups/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/homology/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/interfaces/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/lfunctions/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/matrices/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/matroids/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/modabvar/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/modfrm/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/modmisc/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/modsym/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/modules/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/monoids/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/notebook/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/numerical/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/padics/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/parallel/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/plot3d/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/plotting/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/schemes/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/semirings/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/structure/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/tensor/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/sage/algebras/steenrod/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/combinat/__init__.py: -------------------------------------------------------------------------------- 1 | import tutorial 2 | -------------------------------------------------------------------------------- /src/sage/combinat/matrices/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/combinat/species/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/combinat/words/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/crypto/public_key/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/geometry/hyperplane_arrangement/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/graphs/__init__.py: -------------------------------------------------------------------------------- 1 | import dot2tex_utils 2 | -------------------------------------------------------------------------------- /src/sage/groups/perm_gps/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/groups/perm_gps/partn_ref/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/sage/libs/symmetrica/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/logic/all.py: -------------------------------------------------------------------------------- 1 | from logic import SymbolicLogic -------------------------------------------------------------------------------- /src/sage/modular/abvar/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/modular/modform/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/modular/ssmod/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/quadratic_forms/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/rings/semirings/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/schemes/generic/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/schemes/jacobians/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/schemes/toric/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/server/all.py: -------------------------------------------------------------------------------- 1 | from trac.all import * 2 | -------------------------------------------------------------------------------- /src/sage/server/trac/all.py: -------------------------------------------------------------------------------- 1 | from trac import trac 2 | -------------------------------------------------------------------------------- /src/sage/structure/proof/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/doc/en/reference/cryptography/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/finite_rings/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/function_fields/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/number_fields/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/plane_curves/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/power_series/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/probability/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/quadratic_forms/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/quat_algebras/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/rings_numerical/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/rings_standard/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/sage/coding/source_coding/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/combinat/rigged_configurations/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/sage/crypto/block_cipher/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/geometry/triangulation/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/groups/semimonomial_transformations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sage/libs/gap/__init__.py: -------------------------------------------------------------------------------- 1 | # libgap 2 | import all 3 | -------------------------------------------------------------------------------- /src/sage/media/all.py: -------------------------------------------------------------------------------- 1 | from wav import Wave as wave 2 | -------------------------------------------------------------------------------- /src/sage/quadratic_forms/genera/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/schemes/plane_conics/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/schemes/plane_curves/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/schemes/plane_quartics/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/symbolic/__init__.py: -------------------------------------------------------------------------------- 1 | #this file is not empty 2 | -------------------------------------------------------------------------------- /VERSION.txt: -------------------------------------------------------------------------------- 1 | Sage version 6.2.beta1, released 2014-02-07 2 | -------------------------------------------------------------------------------- /src/doc/en/reference/history_and_license/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/doc/en/reference/polynomial_rings/conf.py: -------------------------------------------------------------------------------- 1 | ../conf_sub.py -------------------------------------------------------------------------------- /src/sage/games/__init__.py: -------------------------------------------------------------------------------- 1 | # init file 2 | 3 | import all 4 | -------------------------------------------------------------------------------- /src/sage/groups/additive_abelian/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/sage/numerical/backends/__init__.py: -------------------------------------------------------------------------------- 1 | # not an empty file 2 | -------------------------------------------------------------------------------- /src/sage/rings/padics/padic_base_coercion.pxd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/bin/sage-python: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | sage -python "$@" 3 | -------------------------------------------------------------------------------- /src/sage/coding/source_coding/all.py: -------------------------------------------------------------------------------- 1 | from huffman import Huffman 2 | -------------------------------------------------------------------------------- /src/sage/dynamics/__init__.py: -------------------------------------------------------------------------------- 1 | r""" 2 | Flat surfaces 3 | """ 4 | -------------------------------------------------------------------------------- /src/sage/libs/mpmath/ext_main.pxd: -------------------------------------------------------------------------------- 1 | from ext_impl cimport * 2 | 3 | -------------------------------------------------------------------------------- /src/sage/rings/padics/__init__.py: -------------------------------------------------------------------------------- 1 | # padic initialization file 2 | -------------------------------------------------------------------------------- /src/sage/schemes/hyperelliptic_curves/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | -------------------------------------------------------------------------------- /src/c_lib/.gitignore: -------------------------------------------------------------------------------- 1 | *.os 2 | *.so 3 | *.dylib 4 | .sconsign.dblite 5 | -------------------------------------------------------------------------------- /src/sage/graphs/generators/__init__.py: -------------------------------------------------------------------------------- 1 | # This file is not empty ! 2 | -------------------------------------------------------------------------------- /src/sage/matroids/__init__.py: -------------------------------------------------------------------------------- 1 | import all 2 | 3 | __all__ = ["all"] 4 | -------------------------------------------------------------------------------- /src/sage/modular/overconvergent/__init__.py: -------------------------------------------------------------------------------- 1 | pass 2 | 3 | import all 4 | -------------------------------------------------------------------------------- /src/sage/modular/quatalg/all.py: -------------------------------------------------------------------------------- 1 | 2 | from brandt import BrandtModule 3 | -------------------------------------------------------------------------------- /src/sage/parallel/all.py: -------------------------------------------------------------------------------- 1 | from decorate import parallel, fork 2 | 3 | -------------------------------------------------------------------------------- /src/sage/sat/solvers/satsolver.pxd: -------------------------------------------------------------------------------- 1 | cdef class SatSolver: 2 | pass 3 | -------------------------------------------------------------------------------- /src/sage/symbolic/integration/__init__.py: -------------------------------------------------------------------------------- 1 | #this file is not empty 2 | -------------------------------------------------------------------------------- /src/sage/crypto/mq/__init__.py: -------------------------------------------------------------------------------- 1 | from sr import SR 2 | from sbox import SBox 3 | -------------------------------------------------------------------------------- /src/sage/dynamics/flat_surfaces/__init__.py: -------------------------------------------------------------------------------- 1 | r""" 2 | Flat surfaces 3 | """ 4 | -------------------------------------------------------------------------------- /src/sage/finance/__init__.py: -------------------------------------------------------------------------------- 1 | # Quantitative Finance 2 | 3 | import all 4 | -------------------------------------------------------------------------------- /src/sage/libs/cremona/all.py: -------------------------------------------------------------------------------- 1 | from constructor import CremonaModularSymbols 2 | -------------------------------------------------------------------------------- /src/sage/modular/arithgroup/__init__.py: -------------------------------------------------------------------------------- 1 | # do nothing 2 | 3 | import all 4 | -------------------------------------------------------------------------------- /src/sage/modular/local_comp/all.py: -------------------------------------------------------------------------------- 1 | from local_comp import LocalComponent 2 | -------------------------------------------------------------------------------- /src/sage/rings/function_field/all.py: -------------------------------------------------------------------------------- 1 | from constructor import FunctionField 2 | -------------------------------------------------------------------------------- /src/sage/algebras/letterplace/__init__.py: -------------------------------------------------------------------------------- 1 | # tell Python that letterplace exists 2 | -------------------------------------------------------------------------------- /src/sage/crypto/__init__.py: -------------------------------------------------------------------------------- 1 | from lattice import gen_lattice 2 | 3 | import all 4 | -------------------------------------------------------------------------------- /src/sage/crypto/public_key/all.py: -------------------------------------------------------------------------------- 1 | from blum_goldwasser import BlumGoldwasser 2 | -------------------------------------------------------------------------------- /src/sage/libs/lcalc/__init__.py: -------------------------------------------------------------------------------- 1 | #a comment so that the file is not empty 2 | 3 | -------------------------------------------------------------------------------- /src/sage/misc/misc_c.pxd: -------------------------------------------------------------------------------- 1 | 2 | cpdef list normalize_index(object key, int size) 3 | -------------------------------------------------------------------------------- /src/sage/rings/polynomial/__init__.py: -------------------------------------------------------------------------------- 1 | # Initialization file for polynomials 2 | -------------------------------------------------------------------------------- /src/sage/structure/sage_object.pxd: -------------------------------------------------------------------------------- 1 | cdef class SageObject: 2 | pass 3 | 4 | -------------------------------------------------------------------------------- /src/bin/sage-list-optional: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | sage-list-packages optional 3 | 4 | -------------------------------------------------------------------------------- /src/bin/sage-list-standard: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | sage-list-packages standard 3 | 4 | -------------------------------------------------------------------------------- /src/sage/algebras/quatalg/all.py: -------------------------------------------------------------------------------- 1 | from quaternion_algebra import QuaternionAlgebra 2 | -------------------------------------------------------------------------------- /src/sage/logic/__init__.py: -------------------------------------------------------------------------------- 1 | # This is the init file for logic. 2 | 3 | import all 4 | -------------------------------------------------------------------------------- /src/sage/rings/finite_rings/__init__.py: -------------------------------------------------------------------------------- 1 | # initialization file for finite fields. 2 | -------------------------------------------------------------------------------- /src/sage/algebras/quatalg/__init__.py: -------------------------------------------------------------------------------- 1 | # quaternion algebra init file 2 | 3 | import all 4 | -------------------------------------------------------------------------------- /src/sage/ext/solaris_fixes.h: -------------------------------------------------------------------------------- 1 | #if defined(__sun) 2 | #define _Complex_I 1.0fi 3 | #endif 4 | -------------------------------------------------------------------------------- /src/sage/geometry/triangulation/all.py: -------------------------------------------------------------------------------- 1 | from point_configuration import PointConfiguration 2 | -------------------------------------------------------------------------------- /src/sage/libs/polybori/__init__.py: -------------------------------------------------------------------------------- 1 | # Insert a comment here to prevent repo corruption. 2 | -------------------------------------------------------------------------------- /src/sage/rings/polynomial/padics/__init__.py: -------------------------------------------------------------------------------- 1 | # Initialization file for p-adic polynomials 2 | -------------------------------------------------------------------------------- /src/sage/schemes/plane_quartics/all.py: -------------------------------------------------------------------------------- 1 | from quartic_constructor import QuarticCurve 2 | 3 | -------------------------------------------------------------------------------- /src/bin/sage-list-experimental: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | sage-list-packages experimental 3 | 4 | -------------------------------------------------------------------------------- /src/mac-app/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /src/mac-app/appl.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/mac-app/appl.icns -------------------------------------------------------------------------------- /src/sage/combinat/posets/__init__.py: -------------------------------------------------------------------------------- 1 | # this file shouldn't be empty :) 2 | 3 | import all 4 | -------------------------------------------------------------------------------- /src/sage/misc/fast_methods.pxd: -------------------------------------------------------------------------------- 1 | cdef class FastHashable_class: 2 | cdef Py_ssize_t _hash 3 | -------------------------------------------------------------------------------- /src/sage/parallel/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Parallel computation in Sage 3 | """ 4 | 5 | import all 6 | -------------------------------------------------------------------------------- /src/sage/structure/__init__.py: -------------------------------------------------------------------------------- 1 | import dynamic_class # allows for sage.structure.dynamic_class? 2 | -------------------------------------------------------------------------------- /src/sage/crypto/block_cipher/all.py: -------------------------------------------------------------------------------- 1 | from sdes import SimplifiedDES 2 | from miniaes import MiniAES 3 | -------------------------------------------------------------------------------- /src/sage/libs/ntl/ntl_GF2.pxd: -------------------------------------------------------------------------------- 1 | include "decl.pxi" 2 | 3 | cdef class ntl_GF2: 4 | cdef GF2_c x 5 | -------------------------------------------------------------------------------- /src/sage/schemes/jacobians/all.py: -------------------------------------------------------------------------------- 1 | #from abstract_jacobian import is_Jacobian, Jacobian 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/ext/images/corner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/ext/images/corner.png -------------------------------------------------------------------------------- /src/ext/images/evaluate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/ext/images/evaluate.png -------------------------------------------------------------------------------- /src/ext/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/ext/images/favicon.ico -------------------------------------------------------------------------------- /src/ext/images/sagelogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/ext/images/sagelogo.png -------------------------------------------------------------------------------- /src/sage/calculus/todo.txt: -------------------------------------------------------------------------------- 1 | [ ] Limits. See the comments around dummy_limit in calculus.py 2 | 3 | [ ] 4 | -------------------------------------------------------------------------------- /src/sage/libs/pari/all.py: -------------------------------------------------------------------------------- 1 | from gen import gen as pari_gen, PariError 2 | from pari_instance import pari 3 | -------------------------------------------------------------------------------- /src/sage/matrix/matrix1.pxd: -------------------------------------------------------------------------------- 1 | cimport matrix0 2 | 3 | cdef class Matrix(matrix0.Matrix): 4 | pass 5 | -------------------------------------------------------------------------------- /src/sage/schemes/jacobians/notes.txt: -------------------------------------------------------------------------------- 1 | This is just an example of an abstract scheme. No functionality yet. -------------------------------------------------------------------------------- /src/sage/stats/test.py: -------------------------------------------------------------------------------- 1 | """ 2 | Statistics in Sage 3 | 4 | EXAMPLES: 5 | sage: import rpy2 6 | """ 7 | -------------------------------------------------------------------------------- /src/ext/magma/spec: -------------------------------------------------------------------------------- 1 | latex 2 | { 3 | +latex.spec 4 | } 5 | 6 | sage 7 | { 8 | +sage.spec 9 | } 10 | -------------------------------------------------------------------------------- /src/ext/magma/user/foo.m: -------------------------------------------------------------------------------- 1 | intrinsic f(a::RngIntElt) -> RngIntElt 2 | {} 3 | return a^2; 4 | end intrinsic; 5 | -------------------------------------------------------------------------------- /src/sage/combinat/cluster_algebra_quiver/__init__.py: -------------------------------------------------------------------------------- 1 | # Initialization file for cluster algebras and quivers 2 | -------------------------------------------------------------------------------- /src/sage/rings/universal_cyclotomic_field/__init__.py: -------------------------------------------------------------------------------- 1 | # Initialization file for universal_cyclotomic_field 2 | -------------------------------------------------------------------------------- /src/doc/en/prep/media/SignIn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/prep/media/SignIn.png -------------------------------------------------------------------------------- /src/ext/images/evaluate_over.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/ext/images/evaluate_over.png -------------------------------------------------------------------------------- /src/mac-app/sage-small-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/mac-app/sage-small-blue.png -------------------------------------------------------------------------------- /src/mac-app/sage-small-green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/mac-app/sage-small-green.png -------------------------------------------------------------------------------- /src/mac-app/sage-small-grey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/mac-app/sage-small-grey.png -------------------------------------------------------------------------------- /src/mac-app/sage-small-red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/mac-app/sage-small-red.png -------------------------------------------------------------------------------- /src/sage/dynamics/interval_exchanges/__init__.py: -------------------------------------------------------------------------------- 1 | r""" 2 | Library for Interval Exchange Transformations 3 | """ 4 | -------------------------------------------------------------------------------- /src/sage/matrix/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Classes for matrix algebra. 3 | 4 | See docs.py for more information 5 | """ 6 | -------------------------------------------------------------------------------- /src/doc/en/bordeaux_2008/birch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/bordeaux_2008/birch.png -------------------------------------------------------------------------------- /src/doc/en/introspect/templates/layout.html: -------------------------------------------------------------------------------- 1 |
2 | {% block body %} {% endblock %} 3 |
4 | -------------------------------------------------------------------------------- /src/doc/en/prep/media/LoggedIn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/prep/media/LoggedIn.png -------------------------------------------------------------------------------- /src/doc/en/prep/media/Rplot001.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/prep/media/Rplot001.png -------------------------------------------------------------------------------- /src/doc/en/website/static/pdf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/website/static/pdf.png -------------------------------------------------------------------------------- /src/mac-app/sage-document-py.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/mac-app/sage-document-py.icns -------------------------------------------------------------------------------- /src/mac-app/sage-document-sws.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/mac-app/sage-document-sws.icns -------------------------------------------------------------------------------- /src/sage/libs/gmp/all.pxd: -------------------------------------------------------------------------------- 1 | from types cimport * 2 | from random cimport * 3 | from mpz cimport * 4 | from mpq cimport * 5 | -------------------------------------------------------------------------------- /src/sage/matrix/matrix_sparse.pxd: -------------------------------------------------------------------------------- 1 | cimport matrix 2 | 3 | cdef class Matrix_sparse(matrix.Matrix): 4 | pass 5 | 6 | -------------------------------------------------------------------------------- /src/sage/tests/all.py: -------------------------------------------------------------------------------- 1 | from sage.modular.modsym.tests import Test as modsym 2 | from sage.tests.arxiv_0812_2725 import * 3 | -------------------------------------------------------------------------------- /src/sage/tests/french_book/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/sage/tests/french_book/README -------------------------------------------------------------------------------- /src/sage/tests/french_book/__init__.py: -------------------------------------------------------------------------------- 1 | # This comment is here so the file is non-empty (so Mercurial will check it in). 2 | -------------------------------------------------------------------------------- /src/doc/en/prep/media/ActiveCell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/prep/media/ActiveCell.png -------------------------------------------------------------------------------- /src/doc/en/prep/media/FirstCell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/prep/media/FirstCell.png -------------------------------------------------------------------------------- /src/doc/en/prep/media/HaveSignin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/prep/media/HaveSignin.png -------------------------------------------------------------------------------- /src/doc/en/prep/media/NotLoggedIn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/prep/media/NotLoggedIn.png -------------------------------------------------------------------------------- /src/doc/en/prep/media/OpenIDPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/prep/media/OpenIDPage.png -------------------------------------------------------------------------------- /src/doc/en/prep/media/TextEditor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/prep/media/TextEditor.png -------------------------------------------------------------------------------- /src/ext/pickle_jar/pickle_jar.tar.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/ext/pickle_jar/pickle_jar.tar.bz2 -------------------------------------------------------------------------------- /src/mac-app/sage-document-cython.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/mac-app/sage-document-cython.icns -------------------------------------------------------------------------------- /src/mac-app/sage-document-sage.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/mac-app/sage-document-sage.icns -------------------------------------------------------------------------------- /src/mac-app/sage-document-spkg.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/mac-app/sage-document-spkg.icns -------------------------------------------------------------------------------- /src/sage/dev/all.py: -------------------------------------------------------------------------------- 1 | from sage.misc.lazy_import import lazy_import 2 | 3 | lazy_import('sage.dev.sagedev_instance', 'dev') 4 | -------------------------------------------------------------------------------- /src/sage/doctest/tests/1second.rst: -------------------------------------------------------------------------------- 1 | A test taking one second:: 2 | 3 | sage: import time 4 | sage: time.sleep(1) 5 | -------------------------------------------------------------------------------- /src/sage/doctest/tests/99seconds.rst: -------------------------------------------------------------------------------- 1 | A test taking 99 seconds:: 2 | 3 | sage: import time 4 | sage: time.sleep(99) 5 | -------------------------------------------------------------------------------- /src/sage/matrix/matrix_domain_dense.pxd: -------------------------------------------------------------------------------- 1 | cimport matrix 2 | 3 | cdef class Matrix_domain_dense(matrix.Matrix): 4 | pass 5 | -------------------------------------------------------------------------------- /src/sage/modular/quatalg/__init__.py: -------------------------------------------------------------------------------- 1 | # Modular forms using quaternion algebras -- initialization file 2 | 3 | import all 4 | -------------------------------------------------------------------------------- /src/doc/.gitignore: -------------------------------------------------------------------------------- 1 | /en/reference/*/sage 2 | /en/reference/*/sagenb 3 | /en/reference/sage 4 | /en/reference/sagenb 5 | /output 6 | -------------------------------------------------------------------------------- /src/doc/en/a_tour_of_sage/sin_plot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/a_tour_of_sage/sin_plot.png -------------------------------------------------------------------------------- /src/doc/en/bordeaux_2008/modpcurve.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/bordeaux_2008/modpcurve.png -------------------------------------------------------------------------------- /src/doc/en/prep/media/ClickBlueLine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/prep/media/ClickBlueLine.png -------------------------------------------------------------------------------- /src/doc/en/prep/media/EmptyNotebook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/prep/media/EmptyNotebook.png -------------------------------------------------------------------------------- /src/doc/en/prep/media/EvaluateCell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/prep/media/EvaluateCell.png -------------------------------------------------------------------------------- /src/doc/en/prep/media/LiveWorksheet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/prep/media/LiveWorksheet.png -------------------------------------------------------------------------------- /src/doc/en/prep/media/NewWorksheet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/prep/media/NewWorksheet.png -------------------------------------------------------------------------------- /src/doc/en/prep/media/SignInNormal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/prep/media/SignInNormal.png -------------------------------------------------------------------------------- /src/doc/en/prep/media/SignInOpenID.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/prep/media/SignInOpenID.png -------------------------------------------------------------------------------- /src/doc/en/prep/media/ThinBlueLine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/prep/media/ThinBlueLine.png -------------------------------------------------------------------------------- /src/doc/fr/a_tour_of_sage/sin_plot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/fr/a_tour_of_sage/sin_plot.png -------------------------------------------------------------------------------- /src/doc/tr/a_tour_of_sage/sin_plot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/tr/a_tour_of_sage/sin_plot.png -------------------------------------------------------------------------------- /src/sage/combinat/ncsf_qsym/all.py: -------------------------------------------------------------------------------- 1 | from qsym import QuasiSymmetricFunctions 2 | from ncsf import NonCommutativeSymmetricFunctions 3 | -------------------------------------------------------------------------------- /src/sage/doctest/all.py: -------------------------------------------------------------------------------- 1 | from sage.misc.lazy_import import lazy_import 2 | lazy_import('sage.doctest.control', 'run_doctests') 3 | -------------------------------------------------------------------------------- /src/sage/ext/fast_callable.pxd: -------------------------------------------------------------------------------- 1 | cdef class Wrapper: 2 | cdef readonly object _orig_args 3 | cdef readonly object _metadata 4 | -------------------------------------------------------------------------------- /src/sage/matrix/matrix_domain_sparse.pxd: -------------------------------------------------------------------------------- 1 | cimport matrix 2 | 3 | cdef class Matrix_domain_sparse(matrix.Matrix): 4 | pass 5 | -------------------------------------------------------------------------------- /src/doc/en/a_tour_of_sage/eigen_plot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/a_tour_of_sage/eigen_plot.png -------------------------------------------------------------------------------- /src/doc/en/developer/static/flowchart.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/developer/static/flowchart.dia -------------------------------------------------------------------------------- /src/doc/en/developer/static/flowchart.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/developer/static/flowchart.pdf -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/1.png -------------------------------------------------------------------------------- /src/doc/fr/a_tour_of_sage/eigen_plot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/fr/a_tour_of_sage/eigen_plot.png -------------------------------------------------------------------------------- /src/doc/tr/a_tour_of_sage/eigen_plot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/tr/a_tour_of_sage/eigen_plot.png -------------------------------------------------------------------------------- /src/sage/combinat/permutation_cython.pxd: -------------------------------------------------------------------------------- 1 | cdef void reset_swap(int n, int *c, int *o) 2 | cdef int next_swap(int n, int *c, int *o) 3 | -------------------------------------------------------------------------------- /src/sage/games/all.py: -------------------------------------------------------------------------------- 1 | from sudoku import Sudoku, sudoku 2 | from sudoku_backtrack import backtrack_all 3 | from hexad import Minimog 4 | -------------------------------------------------------------------------------- /src/sage/geometry/riemannian_manifolds/__init__.py: -------------------------------------------------------------------------------- 1 | # This comment is here so the file is non-empty (so Mercurial will check it in). 2 | -------------------------------------------------------------------------------- /src/sage/lfunctions/all.py: -------------------------------------------------------------------------------- 1 | from dokchitser import Dokchitser 2 | 3 | from lcalc import lcalc 4 | 5 | from sympow import sympow 6 | 7 | -------------------------------------------------------------------------------- /src/sage/libs/ntl/ntl_GF2X.pxd: -------------------------------------------------------------------------------- 1 | include "decl.pxi" 2 | include "sage/ext/cdefs.pxi" 3 | 4 | cdef class ntl_GF2X: 5 | cdef GF2X_c x 6 | -------------------------------------------------------------------------------- /src/sage/sat/converters/__init__.py: -------------------------------------------------------------------------------- 1 | from anf2cnf import ANF2CNFConverter 2 | from polybori import CNFEncoder as PolyBoRiCNFEncoder 3 | -------------------------------------------------------------------------------- /src/doc/en/developer/sagenb/pull_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/developer/sagenb/pull_button.png -------------------------------------------------------------------------------- /src/doc/en/prep/media/RegularSigninPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/prep/media/RegularSigninPage.png -------------------------------------------------------------------------------- /src/doc/en/reference/graphs/media/cycle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/reference/graphs/media/cycle.png -------------------------------------------------------------------------------- /src/doc/en/reference/graphs/media/square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/reference/graphs/media/square.png -------------------------------------------------------------------------------- /src/doc/en/reference/homology/media/rp2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/reference/homology/media/rp2.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/KR_A.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/KR_A.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/KR_B.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/KR_B.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/KR_C.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/KR_C.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/KR_D.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/KR_D.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/wcf1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/wcf1.png -------------------------------------------------------------------------------- /src/sage/.gitignore: -------------------------------------------------------------------------------- 1 | *.c 2 | *.cpp 3 | /libs/pari/gen.h 4 | /modular/arithgroup/farey_symbol.h 5 | /rings/real_mpfi.h 6 | /symbolic/pynac.h 7 | -------------------------------------------------------------------------------- /src/sage/categories/category_singleton.pxd: -------------------------------------------------------------------------------- 1 | cdef class Category_contains_method_by_parent_class: 2 | cdef type _parent_class_of_category 3 | -------------------------------------------------------------------------------- /src/sage/groups/additive_abelian/all.py: -------------------------------------------------------------------------------- 1 | from additive_abelian_group import AdditiveAbelianGroup 2 | from additive_abelian_wrapper import * 3 | -------------------------------------------------------------------------------- /src/sage/libs/mpmath/utils.pxd: -------------------------------------------------------------------------------- 1 | include 'sage/ext/cdefs.pxi' 2 | from sage.libs.mpfr cimport * 3 | 4 | cdef mpfr_to_mpfval(mpfr_t) 5 | 6 | -------------------------------------------------------------------------------- /src/sage/rings/number_field/number_field_base.pxd: -------------------------------------------------------------------------------- 1 | from sage.rings.ring cimport Field 2 | 3 | cdef class NumberField(Field): 4 | pass 5 | -------------------------------------------------------------------------------- /src/bin/sage-grep: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | cd "$SAGE_SRC" 4 | 5 | find sage -print | GREP_OPTIONS= egrep '.py([xdi])?$' | xargs grep "$@" 6 | -------------------------------------------------------------------------------- /src/doc/common/themes/sage/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/common/themes/sage/static/favicon.ico -------------------------------------------------------------------------------- /src/doc/common/themes/sage/static/sageicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/common/themes/sage/static/sageicon.png -------------------------------------------------------------------------------- /src/doc/common/themes/sage/static/sagelogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/common/themes/sage/static/sagelogo.png -------------------------------------------------------------------------------- /src/doc/en/developer/sagenb/branch_dropdown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/developer/sagenb/branch_dropdown.png -------------------------------------------------------------------------------- /src/doc/en/developer/sagenb/forking_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/developer/sagenb/forking_button.png -------------------------------------------------------------------------------- /src/doc/en/developer/static/meld-screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/developer/static/meld-screenshot.png -------------------------------------------------------------------------------- /src/doc/en/prep/media/EmptyNotebookGetNew.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/prep/media/EmptyNotebookGetNew.png -------------------------------------------------------------------------------- /src/doc/en/prep/media/heawood-graph-latex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/prep/media/heawood-graph-latex.png -------------------------------------------------------------------------------- /src/doc/en/reference/combinat/media/a_poset.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/reference/combinat/media/a_poset.png -------------------------------------------------------------------------------- /src/doc/en/reference/graphs/media/structure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/reference/graphs/media/structure.png -------------------------------------------------------------------------------- /src/doc/en/reference/homology/media/klein.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/reference/homology/media/klein.png -------------------------------------------------------------------------------- /src/doc/en/reference/homology/media/torus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/reference/homology/media/torus.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/KR_E6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/KR_E6.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/a1box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/a1box.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/a1tag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/a1tag.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/a2box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/a2box.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/a2rho.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/a2rho.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/a2tag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/a2tag.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/ab2tag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/ab2tag.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/b2box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/b2box.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/graph0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/graph0.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/stand-a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/stand-a.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/stand-b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/stand-b.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/stand-c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/stand-c.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/stand-d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/stand-d.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/stand-g.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/stand-g.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/tensor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/tensor.png -------------------------------------------------------------------------------- /src/sage/libs/ntl/ntl_vec_ZZ_pE_decl.pxd: -------------------------------------------------------------------------------- 1 | cdef extern from "ntl_wrap.h": 2 | ctypedef struct vec_ZZ_pE_c "struct vec_ZZ_pE": 3 | pass 4 | -------------------------------------------------------------------------------- /src/sage/misc/proof.py: -------------------------------------------------------------------------------- 1 | """ 2 | Whether or not computations are provably correct by default. 3 | """ 4 | 5 | #proof = False 6 | proof = True 7 | -------------------------------------------------------------------------------- /src/bin/sage-grepdoc: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | cd "$SAGE_DOC/output" 4 | 5 | find html -print | GREP_OPTIONS= egrep '.html$' | xargs grep "$@" 6 | -------------------------------------------------------------------------------- /src/doc/common/themes/sageref/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/common/themes/sageref/static/favicon.ico -------------------------------------------------------------------------------- /src/doc/en/reference/arithgroup/media/pairing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/reference/arithgroup/media/pairing.png -------------------------------------------------------------------------------- /src/doc/en/reference/combinat/media/graphs-5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/reference/combinat/media/graphs-5.pdf -------------------------------------------------------------------------------- /src/doc/en/reference/combinat/media/graphs-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/reference/combinat/media/graphs-5.png -------------------------------------------------------------------------------- /src/doc/en/reference/combinat/media/polytope.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/reference/combinat/media/polytope.png -------------------------------------------------------------------------------- /src/doc/en/reference/homology/media/simplices.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/reference/homology/media/simplices.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/LScrystal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/LScrystal.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/lp_flot1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/lp_flot1.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/lp_flot2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/lp_flot2.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/standard1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/standard1.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/tableau1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/tableau1.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/tableau2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/tableau2.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/tableau3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/tableau3.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/tableau4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/tableau4.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/tableaux.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/tableaux.png -------------------------------------------------------------------------------- /src/sage/combinat/combinat_cython.pxd: -------------------------------------------------------------------------------- 1 | from sage.libs.gmp.all cimport mpz_t 2 | 3 | cdef mpz_stirling_s2(mpz_t s, unsigned long n, unsigned long k) 4 | -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/KR_Atwisted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/KR_Atwisted.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/KR_Atwisted1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/KR_Atwisted1.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/KR_Dtwisted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/KR_Dtwisted.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/a2rho_color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/a2rho_color.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/sandpile/C_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/sandpile/C_6.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/sandpile/btw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/sandpile/btw.png -------------------------------------------------------------------------------- /src/sage/geometry/triangulation/functions.pxd: -------------------------------------------------------------------------------- 1 | 2 | cdef extern from "functions.h": 3 | int factorial(int n) 4 | int binomial(int n, int D) 5 | 6 | -------------------------------------------------------------------------------- /src/sage/graphs/modular_decomposition/__init__.py: -------------------------------------------------------------------------------- 1 | # This file is not empty ! 2 | 3 | import sage.graphs.modular_decomposition.modular_decomposition 4 | 5 | -------------------------------------------------------------------------------- /src/doc/en/reference/homology/media/torus_labelled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/reference/homology/media/torus_labelled.png -------------------------------------------------------------------------------- /src/doc/en/website/index.rst: -------------------------------------------------------------------------------- 1 | Sage Documentation 2 | ================== 3 | 4 | Do not edit this file as its output is overridden by the template in 5 | templates/. -------------------------------------------------------------------------------- /src/sage/combinat/ncsym/all.py: -------------------------------------------------------------------------------- 1 | from ncsym import SymmetricFunctionsNonCommutingVariables 2 | from dual import SymmetricFunctionsNonCommutingVariablesDual 3 | 4 | -------------------------------------------------------------------------------- /src/sage/combinat/species/all.py: -------------------------------------------------------------------------------- 1 | from series import LazyPowerSeriesRing 2 | from recursive_species import CombinatorialSpecies 3 | import library as species 4 | -------------------------------------------------------------------------------- /src/sage/doctest/__init__.py: -------------------------------------------------------------------------------- 1 | # This flag gets set to True by sage.doctest.forker.init_sage at the 2 | # beginning of each doctest run. 3 | DOCTEST_MODE = False 4 | -------------------------------------------------------------------------------- /src/doc/en/developer/sagenb/links.inc: -------------------------------------------------------------------------------- 1 | .. compiling links file 2 | .. include:: known_projects.inc 3 | .. include:: this_project.inc 4 | .. include:: git_links.inc 5 | -------------------------------------------------------------------------------- /src/doc/en/reference/graphs/media/heawood-graph-latex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/reference/graphs/media/heawood-graph-latex.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/KR_Atwisted_dual.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/KR_Atwisted_dual.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/KR_C_exceptional.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/KR_C_exceptional.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/sandpile/example1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/sandpile/example1.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/sandpile/initial.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/sandpile/initial.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/sandpile/random.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/sandpile/random.png -------------------------------------------------------------------------------- /src/mac-app/English.lproj/MainMenu.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/mac-app/English.lproj/MainMenu.nib/keyedobjects.nib -------------------------------------------------------------------------------- /src/mac-app/English.lproj/MyDocument.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/mac-app/English.lproj/MyDocument.nib/keyedobjects.nib -------------------------------------------------------------------------------- /src/sage/dynamics/interval_exchanges/all.py: -------------------------------------------------------------------------------- 1 | from sage.misc.lazy_import import lazy_import 2 | lazy_import("sage.dynamics.interval_exchanges", "constructors", "iet") 3 | -------------------------------------------------------------------------------- /src/sage/gsl/gsl_elljac.pxi: -------------------------------------------------------------------------------- 1 | cdef extern from "gsl/gsl_sf_elljac.h": 2 | 3 | int gsl_sf_elljac_e(double u, double m, double * sn, double * cn, double * dn) 4 | 5 | -------------------------------------------------------------------------------- /src/sage/matrix/matrix_generic_dense.pxd: -------------------------------------------------------------------------------- 1 | cimport matrix_dense 2 | 3 | cdef class Matrix_generic_dense(matrix_dense.Matrix_dense): 4 | cdef object _entries 5 | 6 | -------------------------------------------------------------------------------- /src/sage/schemes/generic/notes/homset.txt: -------------------------------------------------------------------------------- 1 | The Homset constructor base extends the codomain to a new ring, 2 | so that the codomain is no longer the scheme of interest. -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/level_zero_crystal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/level_zero_crystal.png -------------------------------------------------------------------------------- /src/sage/matrix/matrix_symbolic_dense.pxd: -------------------------------------------------------------------------------- 1 | cimport matrix_generic_dense 2 | 3 | cdef class Matrix_symbolic_dense(matrix_generic_dense.Matrix_generic_dense): 4 | pass 5 | -------------------------------------------------------------------------------- /src/sage/modules/module.pxd: -------------------------------------------------------------------------------- 1 | cimport sage.structure.parent_gens 2 | 3 | cdef class Module_old(sage.structure.parent_gens.ParentWithAdditiveAbelianGens): 4 | pass 5 | -------------------------------------------------------------------------------- /src/doc/en/reference/combinat/media/prefix-tree-graphs-4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/reference/combinat/media/prefix-tree-graphs-4.pdf -------------------------------------------------------------------------------- /src/doc/en/reference/combinat/media/prefix-tree-graphs-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/reference/combinat/media/prefix-tree-graphs-4.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/parabolic_subcrystal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/parabolic_subcrystal.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/sandpile/C_6-parallel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/sandpile/C_6-parallel.png -------------------------------------------------------------------------------- /src/sage/geometry/triangulation/functions.h: -------------------------------------------------------------------------------- 1 | #ifndef FUNCTIONS__H 2 | #define FUNCTIONS__H 3 | 4 | int factorial(int n); 5 | int binomial(int n, int D); 6 | 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /src/sage/libs/ntl/ntl_vec_ZZ_p_decl.pxd: -------------------------------------------------------------------------------- 1 | cdef extern from "ntl_wrap.h": 2 | #### vec_ZZ_p_c 3 | ctypedef struct vec_ZZ_p_c "struct vec_ZZ_p": 4 | pass 5 | 6 | -------------------------------------------------------------------------------- /src/sage/matrix/matrix_dense.pxd: -------------------------------------------------------------------------------- 1 | cimport matrix 2 | 3 | cdef class Matrix_dense(matrix.Matrix): 4 | cdef set_unsafe_int(self, Py_ssize_t i, Py_ssize_t j, int value) 5 | 6 | -------------------------------------------------------------------------------- /src/sage/matrix/template.pxd: -------------------------------------------------------------------------------- 1 | # choose: dense or sparse 2 | 3 | cimport matrix_dense 4 | 5 | cdef class Matrix_generic_dense(matrix_dense.Matrix_dense): 6 | pass 7 | 8 | -------------------------------------------------------------------------------- /src/doc/en/reference/combinat/media/complete-binary-trees-4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/reference/combinat/media/complete-binary-trees-4.pdf -------------------------------------------------------------------------------- /src/doc/en/reference/combinat/media/complete-binary-trees-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/reference/combinat/media/complete-binary-trees-4.png -------------------------------------------------------------------------------- /src/doc/en/reference/combinat/media/prefix-tree-partitions-5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/reference/combinat/media/prefix-tree-partitions-5.pdf -------------------------------------------------------------------------------- /src/doc/en/reference/combinat/media/prefix-tree-partitions-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/reference/combinat/media/prefix-tree-partitions-5.png -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/media/KR_Dtwisted_exceptional.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sagemath/sagesmc/master/src/doc/en/thematic_tutorials/media/KR_Dtwisted_exceptional.png -------------------------------------------------------------------------------- /src/sage/doctest/tests/simple_failure.rst: -------------------------------------------------------------------------------- 1 | Test a simple doctest failure:: 2 | 3 | sage: a = 3 4 | sage: b = 5 5 | sage: a + b 6 | 8 7 | sage: a * b 8 | 20 9 | -------------------------------------------------------------------------------- /src/sage/gsl/ode.pxd: -------------------------------------------------------------------------------- 1 | cdef class ode_system: 2 | cdef int c_j(self,double , double *, double *,double *) 3 | 4 | 5 | cdef int c_f(self,double t, double* , double* ) 6 | 7 | -------------------------------------------------------------------------------- /src/sage/libs/ntl/ntl_mat_ZZ.pxd: -------------------------------------------------------------------------------- 1 | include "decl.pxi" 2 | include "sage/ext/cdefs.pxi" 3 | 4 | cdef class ntl_mat_ZZ: 5 | cdef mat_ZZ_c x 6 | cdef long __nrows, __ncols 7 | -------------------------------------------------------------------------------- /src/sage/modules/vector_complex_double_dense.pxd: -------------------------------------------------------------------------------- 1 | cimport vector_double_dense 2 | 3 | cdef class Vector_complex_double_dense(vector_double_dense.Vector_double_dense): 4 | pass 5 | -------------------------------------------------------------------------------- /src/sage/modules/vector_real_double_dense.pxd: -------------------------------------------------------------------------------- 1 | cimport vector_double_dense 2 | 3 | cdef class Vector_real_double_dense(vector_double_dense.Vector_double_dense): 4 | pass 5 | 6 | -------------------------------------------------------------------------------- /src/c_lib/include/mpz_longlong.h: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | 4 | void mpz_set_longlong(mpz_ptr z, long long val); 5 | 6 | void mpz_set_ulonglong(mpz_ptr z, unsigned long long val); 7 | -------------------------------------------------------------------------------- /src/doc/en/numerical_sage/parallel_computation.rst: -------------------------------------------------------------------------------- 1 | Parallel Computation 2 | ==================== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | mpi4py 8 | parallel_laplace_solver -------------------------------------------------------------------------------- /src/sage/gsl/gsl_dawson.pxi: -------------------------------------------------------------------------------- 1 | cdef extern from "gsl/gsl_sf_dawson.h": 2 | 3 | double gsl_sf_dawson(double x) 4 | 5 | int gsl_sf_dawson_e(double x, gsl_sf_result * result) 6 | 7 | -------------------------------------------------------------------------------- /src/sage/finance/time_series.pxd: -------------------------------------------------------------------------------- 1 | cdef class TimeSeries: 2 | cdef double* _values 3 | cdef Py_ssize_t _length 4 | cpdef rescale(self, double s) 5 | cpdef double sum(self) 6 | -------------------------------------------------------------------------------- /src/sage/gsl/gsl_clausen.pxi: -------------------------------------------------------------------------------- 1 | cdef extern from "gsl/gsl_sf_clausen.h": 2 | 3 | double gsl_sf_clausen(double x) 4 | 5 | int gsl_sf_clausen_e(double x, gsl_sf_result * result) 6 | 7 | -------------------------------------------------------------------------------- /src/sage/symbolic/constants_c.pxd: -------------------------------------------------------------------------------- 1 | from ginac cimport GConstant 2 | 3 | cdef class PynacConstant: 4 | cdef GConstant* pointer 5 | cdef GConstant object 6 | cdef object _name 7 | -------------------------------------------------------------------------------- /src/sage/tensor/all.py: -------------------------------------------------------------------------------- 1 | from coordinate_patch import CoordinatePatch 2 | from differential_forms import DifferentialForms 3 | from differential_form_element import DifferentialForm, wedge 4 | -------------------------------------------------------------------------------- /src/bin/sage-download-upstream: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | for pkg in $SAGE_ROOT/build/pkgs/* 4 | do 5 | if [ -d $pkg ]; then 6 | sage-spkg -f -d `basename $pkg` 7 | fi 8 | done 9 | -------------------------------------------------------------------------------- /src/doc/en/reference/footer.txt: -------------------------------------------------------------------------------- 1 | Indices and Tables 2 | ================== 3 | 4 | * `Index <../genindex.html>`_ 5 | * `Module Index <../py-modindex.html>`_ 6 | * `Search Page <../search.html>`_ 7 | -------------------------------------------------------------------------------- /src/mac-app/Sage_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Sage' target in the 'Sage' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | -------------------------------------------------------------------------------- /src/sage/combinat/crystals/__init__.py: -------------------------------------------------------------------------------- 1 | #This makes sure that sage.combinat.crystals? points to the correct 2 | #documentation about crystals 3 | from crystals import __doc__ 4 | 5 | import all 6 | -------------------------------------------------------------------------------- /src/sage/graphs/graph_decompositions/__init__.py: -------------------------------------------------------------------------------- 1 | # This file is not empty ! 2 | import sage.graphs.graph_decompositions.vertex_separation 3 | import sage.graphs.graph_decompositions.rankwidth 4 | -------------------------------------------------------------------------------- /src/sage/rings/polynomial/multi_polynomial.pxd: -------------------------------------------------------------------------------- 1 | from sage.structure.element cimport CommutativeRingElement 2 | 3 | cdef class MPolynomial(CommutativeRingElement): 4 | cdef long _hash_c(self) 5 | -------------------------------------------------------------------------------- /src/doc/en/bordeaux_2008/number_fields.rst: -------------------------------------------------------------------------------- 1 | Number Fields 2 | ============= 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | nf_introduction 8 | nf_galois_groups 9 | nf_orders 10 | -------------------------------------------------------------------------------- /src/sage/algebras/steenrod/all.py: -------------------------------------------------------------------------------- 1 | """ 2 | The Steenrod algebra 3 | """ 4 | 5 | from steenrod_algebra import SteenrodAlgebra, Sq 6 | from steenrod_algebra_bases import steenrod_algebra_basis 7 | 8 | -------------------------------------------------------------------------------- /src/sage/graphs/base/all.py: -------------------------------------------------------------------------------- 1 | from sparse_graph import SparseGraph 2 | from dense_graph import DenseGraph 3 | import sage.graphs.base.static_sparse_graph 4 | import sage.graphs.base.static_dense_graph 5 | -------------------------------------------------------------------------------- /src/sage/graphs/distances_all_pairs.pxd: -------------------------------------------------------------------------------- 1 | cdef unsigned short * c_shortest_path_all_pairs(G) except NULL 2 | cdef unsigned short * c_distances_all_pairs(G) 3 | cdef int * c_eccentricity(G) except NULL 4 | -------------------------------------------------------------------------------- /src/sage/gsl/gsl_pow_int.pxi: -------------------------------------------------------------------------------- 1 | cdef extern from "gsl/gsl_sf_pow_int.h": 2 | 3 | double gsl_sf_pow_int(double x, int n) 4 | 5 | int gsl_sf_pow_int_e(double x, int n, gsl_sf_result * result) 6 | 7 | -------------------------------------------------------------------------------- /src/sage/matrix/matrix_generic_sparse.pxd: -------------------------------------------------------------------------------- 1 | cimport matrix_sparse 2 | 3 | cdef class Matrix_generic_sparse(matrix_sparse.Matrix_sparse): 4 | cdef object _entries 5 | cdef object _zero 6 | 7 | -------------------------------------------------------------------------------- /src/sage/matrix/matrix_window_modn_dense.pxd: -------------------------------------------------------------------------------- 1 | from sage.ext.mod_int cimport * 2 | 3 | from matrix_window cimport MatrixWindow 4 | 5 | cdef class MatrixWindow_modn_dense(MatrixWindow): 6 | pass 7 | -------------------------------------------------------------------------------- /src/sage/modules/vector_modn_sparse_h.pxi: -------------------------------------------------------------------------------- 1 | cdef struct c_vector_modint: 2 | int *entries 3 | int p 4 | Py_ssize_t *positions 5 | Py_ssize_t degree 6 | Py_ssize_t num_nonzero 7 | 8 | -------------------------------------------------------------------------------- /src/sage/version.py: -------------------------------------------------------------------------------- 1 | # Sage version information for Python scripts 2 | # This file is auto-generated by the sage-update-version script, do not edit! 3 | version = '6.2.beta1' 4 | date = '2014-02-07' 5 | -------------------------------------------------------------------------------- /src/sage/doctest/tests/abort.rst: -------------------------------------------------------------------------------- 1 | This causes an "Unhandled SIGABRT..." which should be handled by 2 | the doctester:: 3 | 4 | sage: from sage.tests.interrupt import * 5 | sage: unguarded_abort() 6 | -------------------------------------------------------------------------------- /src/sage/misc/nested_class.pxd: -------------------------------------------------------------------------------- 1 | cdef extern from "object.h": 2 | ctypedef class __builtin__.type [object PyHeapTypeObject]: 3 | pass 4 | 5 | cdef class NestedClassMetaclass(type): 6 | pass 7 | -------------------------------------------------------------------------------- /src/bin/sage-maxima.lisp: -------------------------------------------------------------------------------- 1 | ;(setf *prompt-prefix* "") 2 | ;(setf *prompt-suffix* "") 3 | ;(setf *general-display-prefix* "") 4 | 5 | (setf *prompt-prefix* "") 6 | 7 | -------------------------------------------------------------------------------- /src/sage/categories/functor.pxd: -------------------------------------------------------------------------------- 1 | from sage.structure.sage_object cimport SageObject 2 | 3 | cdef class Functor(SageObject): 4 | cdef __weakref__ 5 | cdef object __domain 6 | cdef object __codomain 7 | -------------------------------------------------------------------------------- /src/sage/misc/allocator.pxd: -------------------------------------------------------------------------------- 1 | include "sage/ext/python_rich_object.pxi" 2 | cdef hook_tp_functions(object global_dummy, allocfunc tp_alloc, newfunc tp_new, freefunc tp_free, destructor tp_dealloc, bint useGC) 3 | -------------------------------------------------------------------------------- /src/sage/modular/overconvergent/all.py: -------------------------------------------------------------------------------- 1 | from weightspace import WeightSpace_constructor as pAdicWeightSpace 2 | 3 | from genus0 import OverconvergentModularForms 4 | 5 | from hecke_series import hecke_series 6 | -------------------------------------------------------------------------------- /src/sage/modular/ssmod/all.py: -------------------------------------------------------------------------------- 1 | from ssmod import (dimension_supersingular_module, 2 | supersingular_j, 3 | SupersingularModule, 4 | supersingular_D) 5 | 6 | -------------------------------------------------------------------------------- /src/sage/sat/solvers/__init__.py: -------------------------------------------------------------------------------- 1 | from satsolver import SatSolver 2 | 3 | from dimacs import Glucose, RSat 4 | 5 | try: 6 | from cryptominisat import CryptoMiniSat 7 | except ImportError: 8 | pass 9 | -------------------------------------------------------------------------------- /src/sage/sat/solvers/cryptominisat/cryptominisat.pxd: -------------------------------------------------------------------------------- 1 | from sage.sat.solvers.satsolver cimport SatSolver 2 | from decl cimport Solver 3 | 4 | cdef class CryptoMiniSat(SatSolver): 5 | cdef Solver *_solver 6 | -------------------------------------------------------------------------------- /src/bin/sage-version.sh: -------------------------------------------------------------------------------- 1 | # Sage version information for shell scripts 2 | # This file is auto-generated by the sage-update-version script, do not edit! 3 | SAGE_VERSION='6.2.beta1' 4 | SAGE_RELEASE_DATE='2014-02-07' 5 | -------------------------------------------------------------------------------- /src/doc/Makefile: -------------------------------------------------------------------------------- 1 | clean: 2 | @echo "Deleting generated docs..." 3 | rm -rf en/reference/*/sage 4 | rm -rf en/reference/*/sagenb 5 | rm -rf en/reference/sage 6 | rm -rf en/reference/sagenb 7 | rm -rf output 8 | -------------------------------------------------------------------------------- /src/doc/en/numerical_sage/installation.rst: -------------------------------------------------------------------------------- 1 | Installation of Visualization Tools 2 | =================================== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | installation_linux 8 | installation_osx -------------------------------------------------------------------------------- /src/sage/doctest/tests/longtime.rst: -------------------------------------------------------------------------------- 1 | Test combining various modifiers:: 2 | 3 | sage: sys.maxint # long time, abs tol 0.01 4 | 2147483646.999 # 32-bit 5 | 9223372036854775806.999 # 64-bit 6 | -------------------------------------------------------------------------------- /src/sage/doctest/tests/sig_on.rst: -------------------------------------------------------------------------------- 1 | Test a bad value of ``sig_on_count``:: 2 | 3 | sage: cython('sig_on()') 4 | 5 | The following test should succeed as usual:: 6 | 7 | sage: 3**12 - 2**19 8 | 7153 9 | -------------------------------------------------------------------------------- /src/sage/geometry/triangulation/data.pxd: -------------------------------------------------------------------------------- 1 | 2 | 3 | cdef extern from "data.h": 4 | cdef cppclass compact_simplices(object): 5 | void push_back(int encoded_simplex) 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/sage/libs/ntl/ntl_ZZ.pxd: -------------------------------------------------------------------------------- 1 | 2 | include "decl.pxi" 3 | 4 | cdef class ntl_ZZ: 5 | cdef ZZ_c x 6 | cdef public int get_as_int(ntl_ZZ self) 7 | cdef public void set_from_int(ntl_ZZ self, int value) 8 | -------------------------------------------------------------------------------- /src/sage/symbolic/getitem.pxd: -------------------------------------------------------------------------------- 1 | from sage.symbolic.expression cimport Expression 2 | from sage.structure.sage_object cimport SageObject 3 | 4 | cdef class OperandsWrapper(SageObject): 5 | cdef Expression _expr 6 | -------------------------------------------------------------------------------- /src/sage/libs/ntl/ntl_lzz_pContext.pxd: -------------------------------------------------------------------------------- 1 | include "decl.pxi" 2 | include "sage/ext/cdefs.pxi" 3 | 4 | cdef class ntl_zz_pContext_class: 5 | cdef zz_pContext_c x 6 | cdef void restore_c(self) 7 | cdef long p 8 | -------------------------------------------------------------------------------- /src/sage/matrix/matrix_complex_double_dense.pxd: -------------------------------------------------------------------------------- 1 | import matrix_double_dense 2 | 3 | cimport matrix_double_dense 4 | 5 | cdef class Matrix_complex_double_dense(matrix_double_dense.Matrix_double_dense): 6 | pass 7 | 8 | -------------------------------------------------------------------------------- /src/sage/structure/debug_options.pxd: -------------------------------------------------------------------------------- 1 | 2 | cdef class DebugOptions_class: 3 | cdef public bint bad_parent_warnings 4 | cdef public bint unique_parent_warnings 5 | cdef public bint refine_category_hash_check 6 | -------------------------------------------------------------------------------- /src/doc/en/reference/constants/index.rst: -------------------------------------------------------------------------------- 1 | Constants 2 | ========= 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | sage/symbolic/constants 8 | sage/symbolic/constants_c 9 | 10 | .. include:: ../footer.txt 11 | -------------------------------------------------------------------------------- /src/doc/en/reference/dynamics/index.rst: -------------------------------------------------------------------------------- 1 | Discrete dynamics 2 | ================= 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | interval_exchanges 8 | flat_surfaces 9 | 10 | .. include:: ../footer.txt 11 | -------------------------------------------------------------------------------- /src/sage/dynamics/all.py: -------------------------------------------------------------------------------- 1 | from sage.misc.lazy_import import lazy_import 2 | lazy_import("sage.dynamics.interval_exchanges.all", "*", overwrite=False) 3 | lazy_import("sage.dynamics.flat_surfaces.all", "*", overwrite=False) 4 | -------------------------------------------------------------------------------- /src/sage/gsl/gsl_mode.pxi: -------------------------------------------------------------------------------- 1 | cdef extern from "gsl/gsl_mode.h": 2 | ctypedef unsigned int gsl_mode_t 3 | double GSL_PREC_DOUBLE 4 | 5 | double GSL_PREC_SINGLE 6 | 7 | double GSL_PREC_APPROX 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/sage/libs/singular/__init__.py: -------------------------------------------------------------------------------- 1 | from sage.libs.singular.function import singular_function, lib 2 | 3 | from sage.libs.singular.function_factory import SingularFunctionFactory 4 | 5 | ff = SingularFunctionFactory() 6 | 7 | -------------------------------------------------------------------------------- /src/sage/categories/examples/coxeter_groups.py: -------------------------------------------------------------------------------- 1 | """ 2 | Examples of Coxeter groups 3 | """ 4 | # temporary until someone implements an appropriate example 5 | 6 | import finite_weyl_groups 7 | Example = finite_weyl_groups.Example 8 | -------------------------------------------------------------------------------- /src/sage/geometry/polyhedra.py: -------------------------------------------------------------------------------- 1 | from sage.misc.superseded import deprecation 2 | deprecation(11634, 'The module sage.geometry.polyhedra has been removed, use sage.geometry.polyhedron instead.') 3 | from polyhedron.all import * 4 | -------------------------------------------------------------------------------- /src/sage/geometry/polyhedron/all.py: -------------------------------------------------------------------------------- 1 | 2 | from sage.misc.lazy_import import lazy_import 3 | lazy_import('sage.geometry.polyhedron.constructor', 'Polyhedron') 4 | lazy_import('sage.geometry.polyhedron.library', 'polytopes') 5 | 6 | -------------------------------------------------------------------------------- /src/sage/combinat/matrices/all.py: -------------------------------------------------------------------------------- 1 | from latin import LatinSquare, LatinSquare_generator 2 | from dlxcpp import DLXCPP 3 | from dancing_links import make_dlxwrapper 4 | from hadamard_matrix import hadamard_matrix, hadamard_matrix_www 5 | -------------------------------------------------------------------------------- /src/sage/combinat/posets/all.py: -------------------------------------------------------------------------------- 1 | from posets import Poset 2 | 3 | from lattices import LatticePoset 4 | from lattices import MeetSemilattice 5 | from lattices import JoinSemilattice 6 | 7 | from poset_examples import posets, Posets 8 | -------------------------------------------------------------------------------- /src/sage/doctest/tests/nodoctest.py: -------------------------------------------------------------------------------- 1 | """ 2 | This directories contains various files with doctests to test the 3 | doctesting framework. Many of these are supposed to fail in various 4 | ways. They are run by ``../test.py``. 5 | """ 6 | -------------------------------------------------------------------------------- /src/bin/sage-native-execute: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | LD_LIBRARY_PATH=$SAGE_ORIG_LD_LIBRARY_PATH; export LD_LIBRARY_PATH 4 | if [ `uname` = 'Darwin' ]; then 5 | DYLD_LIBRARY_PATH=$SAGE_ORIG_DYLD_LIBRARY_PATH 6 | fi 7 | 8 | "$@" 9 | 10 | -------------------------------------------------------------------------------- /src/sage/matroids/minorfix.h: -------------------------------------------------------------------------------- 1 | // On some systems, macros "minor()" and "major()" are defined in system header files. This will undefine those: 2 | #ifdef major 3 | #undef major 4 | #endif 5 | #ifdef minor 6 | #undef minor 7 | #endif 8 | -------------------------------------------------------------------------------- /src/sage/misc/darwin_memory_usage.h: -------------------------------------------------------------------------------- 1 | 2 | #if defined(__APPLE__) 3 | 4 | // Returns the virtual size of the current process. This will match what "top" reports for VSIZE 5 | unsigned long long darwin_virtual_size(); 6 | 7 | #endif 8 | 9 | -------------------------------------------------------------------------------- /src/sage/rings/polynomial/symmetric_reduction.pxd: -------------------------------------------------------------------------------- 1 | cdef class SymmetricReductionStrategy: 2 | cdef list _lm 3 | cdef list _lengths 4 | cdef object _min_lm 5 | cdef int _tail 6 | cdef object _R 7 | cdef object _parent 8 | -------------------------------------------------------------------------------- /src/sage/rings/universal_cyclotomic_field/all.py: -------------------------------------------------------------------------------- 1 | # for lazy importing 2 | from sage.misc.lazy_import import lazy_import 3 | 4 | lazy_import("sage.rings.universal_cyclotomic_field.universal_cyclotomic_field","UniversalCyclotomicField") 5 | -------------------------------------------------------------------------------- /src/sage/matrix/matrix_mpolynomial_dense.pxd: -------------------------------------------------------------------------------- 1 | from sage.matrix.matrix_generic_dense cimport Matrix_generic_dense 2 | 3 | from sage.libs.singular.decl cimport ideal 4 | 5 | cdef class Matrix_mpolynomial_dense(Matrix_generic_dense): 6 | pass 7 | -------------------------------------------------------------------------------- /src/sage/structure/misc.pxd: -------------------------------------------------------------------------------- 1 | # A class that allows for a more efficient creation 2 | # of attribute errors, so that raising them requires 3 | # less time. 4 | cdef class AttributeErrorMessage: 5 | cdef public cls 6 | cdef public name 7 | -------------------------------------------------------------------------------- /src/doc/en/reference/logic/index.rst: -------------------------------------------------------------------------------- 1 | Symbolic Logic 2 | ============== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | sage/logic/propcalc 8 | sage/logic/boolformula 9 | sage/logic/booleval 10 | 11 | .. include:: ../footer.txt 12 | -------------------------------------------------------------------------------- /src/doc/en/reference/probability/index.rst: -------------------------------------------------------------------------------- 1 | Probability 2 | =========== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | sage/gsl/probability_distribution 8 | sage/probability/random_variable 9 | 10 | .. include:: ../footer.txt 11 | -------------------------------------------------------------------------------- /src/sage/doctest/tests/interrupt.rst: -------------------------------------------------------------------------------- 1 | Interrupt the doctester (the parent process):: 2 | 3 | sage: import signal 4 | sage: import time 5 | sage: os.kill(os.getppid(), signal.SIGINT) 6 | sage: time.sleep(10) 7 | sage: os._exit(0) 8 | -------------------------------------------------------------------------------- /src/sage/dev/test/data/git.patch: -------------------------------------------------------------------------------- 1 | From: David Roe 2 | Subject: #12555: fixed modulus templates 3 | Date: Sun, 04 Mar 2012 05:08:43 -0000 4 | 5 | diff --git a/sage/rings/padics/FM_template.pxi b/sage/rings/padics/FM_template.pxi 6 | -------------------------------------------------------------------------------- /src/sage/libs/ntl/ntl_ZZX.pxd: -------------------------------------------------------------------------------- 1 | include "decl.pxi" 2 | include "sage/ext/cdefs.pxi" 3 | 4 | cdef class ntl_ZZX: 5 | cdef ZZX_c x 6 | cdef void setitem_from_int(ntl_ZZX self, long i, int value) 7 | cdef int getitem_as_int(ntl_ZZX self, long i) 8 | -------------------------------------------------------------------------------- /src/sage/rings/finite_rings/element_base.pxd: -------------------------------------------------------------------------------- 1 | from sage.structure.element cimport CommutativeRingElement 2 | 3 | cdef class FiniteRingElement(CommutativeRingElement): 4 | pass 5 | 6 | cdef class FinitePolyExtElement(FiniteRingElement): 7 | pass 8 | -------------------------------------------------------------------------------- /src/sage/tests/startup.py: -------------------------------------------------------------------------------- 1 | r""" 2 | Ensure that certain modules are not loaded on startup. 3 | 4 | EXAMPLES:: 5 | 6 | sage: 'numpy' in sys.modules 7 | False 8 | sage: 'sage.libs.gap.libgap' in sys.modules 9 | False 10 | """ 11 | -------------------------------------------------------------------------------- /src/sage/dev/test/data/git-output.patch: -------------------------------------------------------------------------------- 1 | From: David Roe 2 | Subject: #12555: fixed modulus templates 3 | Date: Sun, 04 Mar 2012 13:08:43 -0000 4 | 5 | diff --git a/sage/rings/padics/FM_template.pxi b/sage/rings/padics/FM_template.pxi 6 | -------------------------------------------------------------------------------- /src/doc/en/developer/sagenb/this_project.inc: -------------------------------------------------------------------------------- 1 | .. Sage Notebook 2 | .. _`Sage Notebook`: http://nb.sagemath.org 3 | .. _`Sage Notebook github`: http://github.com/sagemath/sagenb 4 | 5 | .. _`Sage Notebook mailing list`: http://groups.google.com/group/sage-notebook 6 | -------------------------------------------------------------------------------- /src/sage/gsl/gsl_elementary.pxi: -------------------------------------------------------------------------------- 1 | cdef extern from "gsl/gsl_sf_elementary.h": 2 | 3 | int gsl_sf_multiply_e(double x, double y, gsl_sf_result * result) 4 | 5 | int gsl_sf_multiply_err_e(double x, double dx, double y, double dy, gsl_sf_result * result) 6 | 7 | -------------------------------------------------------------------------------- /src/sage/libs/gap/test/README.txt: -------------------------------------------------------------------------------- 1 | In this folder is a small stub program that uses libGAP library for 2 | some simple computations for debugging purposes. It uses libGAP 3 | essentially in the same as the Sage libgap interface, but without the 4 | overhead. 5 | 6 | -------------------------------------------------------------------------------- /src/sage/libs/pari/handle_error.pxd: -------------------------------------------------------------------------------- 1 | cdef str pari_error_string 2 | 3 | cdef void _pari_init_error_handling() 4 | cdef void _pari_check_warning "_pari_check_warning"() 5 | cdef int _pari_handle_exception(long err) except 0 6 | cdef void _pari_err_recover(long err) 7 | -------------------------------------------------------------------------------- /src/sage/probability/all.py: -------------------------------------------------------------------------------- 1 | from random_variable import ( 2 | is_ProbabilitySpace, 3 | is_DiscreteProbabilitySpace, 4 | is_RandomVariable, 5 | is_DiscreteRandomVariable, 6 | DiscreteRandomVariable, 7 | DiscreteProbabilitySpace ) 8 | 9 | -------------------------------------------------------------------------------- /src/sage/rings/finite_rings/stdint.h: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | 4 | #define INTEGER_MOD_INT32_LIMIT 46341 // = ceil(sqrt(2^31-1)) 5 | #define INTEGER_MOD_INT64_LIMIT 2147483647 // = 2^31-1 for now, should be 3037000500LL = ceil(sqrt(2^63-1)) 6 | 7 | -------------------------------------------------------------------------------- /src/sage/rings/polynomial/multi_polynomial_ideal_libsingular.pxd: -------------------------------------------------------------------------------- 1 | from sage.libs.singular.decl cimport ideal, ring 2 | 3 | cdef object singular_ideal_to_sage_sequence(ideal *i, ring *r, object parent) 4 | cdef ideal *sage_ideal_to_singular_ideal(I) except NULL 5 | -------------------------------------------------------------------------------- /src/ext/gap/console.g: -------------------------------------------------------------------------------- 1 | # If we are loaded with a workspace then $SAGE will be defined and in 2 | # that case we need to call StartInteract so that the pager will be 3 | # set correctly. See trac #5043. 4 | if IsBound($SAGE) then 5 | $SAGE.StartInteract(); 6 | fi; 7 | -------------------------------------------------------------------------------- /src/sage/libs/ntl/ntl_mat_GF2.pxd: -------------------------------------------------------------------------------- 1 | include "decl.pxi" 2 | include "sage/ext/cdefs.pxi" 3 | 4 | from ntl_GF2 cimport ntl_GF2 5 | 6 | cdef class ntl_mat_GF2: 7 | cdef mat_GF2_c x 8 | cdef ntl_GF2 _new_element(self) 9 | cdef ntl_mat_GF2 _new(self) 10 | -------------------------------------------------------------------------------- /src/sage/rings/padics/padic_base_coercion.pyx: -------------------------------------------------------------------------------- 1 | """ 2 | This file contains morphisms implementing coercion between base p-adic rings and fields as well as ZZ and QQ 3 | 4 | AUTHOR: 5 | -- David Roe (initial version: 2010-8-25) 6 | """ 7 | 8 | include "sage/ext/gmp.pxi" 9 | -------------------------------------------------------------------------------- /src/sage/rings/semirings/all.py: -------------------------------------------------------------------------------- 1 | 2 | from sage.misc.lazy_import import lazy_import 3 | lazy_import('sage.rings.semirings.non_negative_integer_semiring', 4 | ['NonNegativeIntegerSemiring', 'NN']) 5 | 6 | from tropical_semiring import TropicalSemiring 7 | 8 | -------------------------------------------------------------------------------- /src/sage/matroids/all.py: -------------------------------------------------------------------------------- 1 | from sage.misc.lazy_import import lazy_import 2 | # from constructor import Matroid 3 | # import matroids_catalog as matroids 4 | lazy_import('sage.matroids.constructor', 'Matroid') 5 | lazy_import('sage.matroids', 'matroids_catalog', 'matroids') 6 | -------------------------------------------------------------------------------- /src/sage/rings/laurent_series_ring_element.pxd: -------------------------------------------------------------------------------- 1 | from sage.structure.element cimport AlgebraElement, ModuleElement 2 | from power_series_ring_element cimport PowerSeries 3 | 4 | cdef class LaurentSeries(AlgebraElement): 5 | cpdef ModuleElement __u 6 | cdef long __n 7 | -------------------------------------------------------------------------------- /src/doc/en/reference/dynamics/flat_surfaces.rst: -------------------------------------------------------------------------------- 1 | Abelian differentials and flat surfaces 2 | ======================================= 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | ../sage/dynamics/flat_surfaces/strata 8 | ../sage/dynamics/flat_surfaces/quadratic_strata 9 | -------------------------------------------------------------------------------- /src/sage/combinat/partitions_c.h: -------------------------------------------------------------------------------- 1 | #if defined(__sun) 2 | #include 3 | int isinf(double x) { return !finite(x) && x==x; } 4 | #endif 5 | 6 | #include 7 | 8 | int part(mpz_t answer, unsigned int n); 9 | int test(bool longtest, bool forever); 10 | 11 | -------------------------------------------------------------------------------- /src/sage/combinat/words/all.py: -------------------------------------------------------------------------------- 1 | from alphabet import Alphabet, build_alphabet 2 | from morphism import WordMorphism 3 | from paths import WordPaths 4 | from word import Word 5 | from word_options import WordOptions 6 | from word_generators import words 7 | from words import Words 8 | -------------------------------------------------------------------------------- /src/sage/doctest/tests/fail_and_die.rst: -------------------------------------------------------------------------------- 1 | The ``NameError`` raised on the second line should be displayed, even 2 | if we crash immediately afterwards:: 3 | 4 | sage: import time, signal 5 | sage: this_gives_a_NameError 6 | sage: os.kill(os.getpid(), signal.SIGKILL) 7 | -------------------------------------------------------------------------------- /src/sage/gsl/gsl_sf_result.pxi: -------------------------------------------------------------------------------- 1 | 2 | cdef extern from "gsl/gsl_sf_result.h": 3 | ctypedef struct gsl_sf_result: 4 | double val 5 | double err 6 | 7 | 8 | ctypedef struct gsl_sf_result_e10: 9 | double val 10 | double err 11 | int e10 12 | 13 | -------------------------------------------------------------------------------- /src/doc/en/reference/semirings/index.rst: -------------------------------------------------------------------------------- 1 | Standard Semirings 2 | ================== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | sage/rings/semirings/non_negative_integer_semiring 8 | sage/rings/semirings/tropical_semiring 9 | 10 | .. include:: ../footer.txt 11 | -------------------------------------------------------------------------------- /src/sage/ext/cdefs.pxi: -------------------------------------------------------------------------------- 1 | # 2 | # Declare C library functions used in Sage 3 | # 4 | 5 | from libc.stdio cimport * 6 | from libc.string cimport strlen, strcpy, memset, memcpy, memcmp 7 | 8 | from libc.math cimport sqrt, frexp, ldexp 9 | 10 | from sage.libs.gmp.all cimport * 11 | -------------------------------------------------------------------------------- /src/sage/libs/ntl/ntl_GF2E.pxd: -------------------------------------------------------------------------------- 1 | include "decl.pxi" 2 | include "sage/ext/cdefs.pxi" 3 | 4 | from ntl_GF2EContext cimport ntl_GF2EContext_class 5 | 6 | cdef class ntl_GF2E: 7 | cdef GF2E_c x 8 | cdef ntl_GF2EContext_class c 9 | cdef ntl_GF2E _new(self) 10 | 11 | -------------------------------------------------------------------------------- /src/sage/sat/converters/anf2cnf.py: -------------------------------------------------------------------------------- 1 | """ 2 | Abstract ANF to CNF Converter. 3 | 4 | All ANF to CNF converters must inherit from this class. 5 | 6 | AUTHORS: 7 | 8 | - Martin Albrecht (2012): first version 9 | """ 10 | 11 | class ANF2CNFConverter(object): 12 | pass 13 | -------------------------------------------------------------------------------- /src/doc/en/reference/combinat/partitions.rst: -------------------------------------------------------------------------------- 1 | Partitions and Partition-like Objects 2 | ===================================== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | sage/combinat/partition 8 | sage/combinat/partition_tuple 9 | sage/combinat/skew_partition 10 | -------------------------------------------------------------------------------- /src/bin/sage-open: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # SAGE open command for OS X -- needed since 4 | # the SAGE libraries clash with some OS X libraries, 5 | # will leads to a crash. 6 | 7 | unset LIBRARY_PATH 8 | unset LD_LIBRARY_PATH 9 | unset DYLD_LIBRARY_PATH 10 | 11 | open "$@" 12 | -------------------------------------------------------------------------------- /src/doc/en/reference/quat_algebras/index.rst: -------------------------------------------------------------------------------- 1 | Quaternion Algebras 2 | =================== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | sage/algebras/quatalg/quaternion_algebra 8 | sage/algebras/quatalg/quaternion_algebra_element 9 | 10 | 11 | .. include:: ../footer.txt 12 | -------------------------------------------------------------------------------- /src/sage/dynamics/flat_surfaces/all.py: -------------------------------------------------------------------------------- 1 | from sage.misc.lazy_import import lazy_import 2 | lazy_import("sage.dynamics.flat_surfaces.strata", 3 | ["AbelianStrata", "AbelianStratum"]) 4 | lazy_import("sage.dynamics.flat_surfaces.quadratic_strata", 5 | ["QuadraticStratum"]) 6 | -------------------------------------------------------------------------------- /src/sage/gsl/gsl_dilog.pxi: -------------------------------------------------------------------------------- 1 | cdef extern from "gsl/gsl_sf_dilog.h": 2 | 3 | double gsl_sf_dilog(double x) 4 | 5 | int gsl_sf_dilog_e(double x, gsl_sf_result * result) 6 | 7 | int gsl_sf_complex_dilog_e(double r, double theta, gsl_sf_result * result_re, gsl_sf_result * result_im) 8 | 9 | -------------------------------------------------------------------------------- /src/sage/rings/polynomial/polynomial_gf2x.pxd: -------------------------------------------------------------------------------- 1 | from sage.libs.ntl.ntl_GF2X_decl cimport GF2X_c 2 | 3 | ctypedef GF2X_c celement 4 | ctypedef long cparent 5 | 6 | include "polynomial_template_header.pxi" 7 | 8 | cdef class Polynomial_GF2X(Polynomial_template): 9 | pass 10 | 11 | -------------------------------------------------------------------------------- /src/sage/rings/power_series_poly.pxd: -------------------------------------------------------------------------------- 1 | from sage.structure.element cimport ModuleElement 2 | from power_series_ring_element cimport PowerSeries 3 | from sage.rings.polynomial.polynomial_element cimport Polynomial 4 | 5 | cdef class PowerSeries_poly(PowerSeries): 6 | cdef Polynomial __f 7 | 8 | -------------------------------------------------------------------------------- /src/doc/en/reference/tensor/index.rst: -------------------------------------------------------------------------------- 1 | Differential Forms 2 | ================== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | sage/tensor/coordinate_patch 8 | sage/tensor/differential_forms 9 | sage/tensor/differential_form_element 10 | 11 | 12 | .. include:: ../footer.txt 13 | -------------------------------------------------------------------------------- /src/sage/groups/group.pxd: -------------------------------------------------------------------------------- 1 | from sage.structure.parent cimport Parent 2 | 3 | cdef class Group(Parent): 4 | pass 5 | 6 | cdef class AbelianGroup(Group): 7 | pass 8 | 9 | cdef class FiniteGroup(Group): 10 | pass 11 | 12 | cdef class AlgebraicGroup(Group): 13 | pass 14 | 15 | -------------------------------------------------------------------------------- /src/bin/sage-run-cython: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import sys 4 | from sage.misc.preparser import preparse, load_cython 5 | from sage.misc.misc import tmp_filename 6 | 7 | if len(sys.argv) > 1: 8 | s = preparse(load_cython(sys.argv[1])) 9 | eval(compile(s, tmp_filename(), 'exec')) 10 | -------------------------------------------------------------------------------- /src/doc/en/reference/dev/index.rst: -------------------------------------------------------------------------------- 1 | Sage's Development Scripts 2 | ========================== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | sage/dev/sagedev 8 | sage/dev/git_interface 9 | sage/dev/trac_interface 10 | sage/dev/user_interface 11 | 12 | .. include:: ../footer.txt 13 | -------------------------------------------------------------------------------- /src/sage/libs/ntl/ntl_GF2EContext.pxd: -------------------------------------------------------------------------------- 1 | include "decl.pxi" 2 | include "sage/ext/cdefs.pxi" 3 | 4 | from ntl_GF2X cimport ntl_GF2X 5 | 6 | cdef class ntl_GF2EContext_class: 7 | cdef GF2EContext_c x 8 | cdef ntl_GF2X m 9 | cdef void restore_c(self) 10 | cdef object __weakref__ 11 | -------------------------------------------------------------------------------- /src/sage/libs/pari/gen.pxd: -------------------------------------------------------------------------------- 1 | include 'decl.pxi' 2 | 3 | cimport sage.structure.element 4 | cimport cython 5 | 6 | @cython.final 7 | cdef class gen(sage.structure.element.RingElement): 8 | cdef GEN g 9 | cdef pari_sp b 10 | cdef dict refers_to 11 | 12 | cdef gen objtogen(object s) 13 | -------------------------------------------------------------------------------- /src/doc/en/reference/combinat/ncsym.rst: -------------------------------------------------------------------------------- 1 | Symmetric Functions in Non-Commuting Variables 2 | ============================================== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | ../sage/combinat/ncsym/bases 8 | ../sage/combinat/ncsym/dual 9 | ../sage/combinat/ncsym/ncsym 10 | 11 | -------------------------------------------------------------------------------- /src/sage/modules/module_element.py: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Elements of free modules 3 | ############################################################################### 4 | 5 | from sage.structure.element import ModuleElement, is_ModuleElement 6 | -------------------------------------------------------------------------------- /src/sage/rings/power_series_mpoly.pxd: -------------------------------------------------------------------------------- 1 | from sage.structure.element cimport ModuleElement 2 | from power_series_ring_element cimport PowerSeries 3 | 4 | cdef class PowerSeries_mpoly(PowerSeries): 5 | cpdef ModuleElement __f 6 | cdef object __poly 7 | cdef object __list 8 | cdef bint _truncated 9 | -------------------------------------------------------------------------------- /src/sage/doctest/tests/atexit.rst: -------------------------------------------------------------------------------- 1 | Register an atexit function to remove the file given by the 2 | ``DOCTEST_DELETE_FILE`` environment variable:: 3 | 4 | sage: import atexit 5 | sage: fn = os.environ['DOCTEST_DELETE_FILE'] 6 | sage: atexit.register(os.unlink, fn) 7 | 8 | -------------------------------------------------------------------------------- /src/sage/libs/flint/flint.pxd: -------------------------------------------------------------------------------- 1 | cdef extern from "flint/flint.h": 2 | 3 | cdef long FLINT_BITS 4 | cdef long FLINT_D_BITS 5 | 6 | cdef unsigned long FLINT_BIT_COUNT(unsigned long) 7 | 8 | cdef extern from "flint/fmpz.h": 9 | void _fmpz_cleanup() 10 | void _fmpz_cleanup_mpz_content() 11 | -------------------------------------------------------------------------------- /src/sage/rings/bernmm/README2.txt: -------------------------------------------------------------------------------- 1 | This directory contains the bernmm library, by David Harvey. 2 | 3 | bernmm is maintained as a separate project, see my website dharvey.net. 4 | 5 | If you make any changes/improvements, please tell me about it! 6 | I might want to merge those changes into the upstream version. 7 | -------------------------------------------------------------------------------- /src/sage/rings/polynomial/polynomial_template_header.pxi: -------------------------------------------------------------------------------- 1 | """ 2 | Polynomial Template for C/C++ Library Interfaces 3 | """ 4 | 5 | from sage.rings.polynomial.polynomial_element cimport Polynomial 6 | 7 | cdef class Polynomial_template(Polynomial): 8 | cdef celement x 9 | cdef cparent _cparent 10 | -------------------------------------------------------------------------------- /src/sage/geometry/riemannian_manifolds/all.py: -------------------------------------------------------------------------------- 1 | from sage.misc.lazy_import import lazy_import 2 | lazy_import('sage.geometry.riemannian_manifolds.parametrized_surface3d', 3 | 'ParametrizedSurface3D') 4 | lazy_import('sage.geometry.riemannian_manifolds.surface3d_generators', 5 | 'surfaces') 6 | 7 | -------------------------------------------------------------------------------- /src/sage/gsl/gsl_array.pxd: -------------------------------------------------------------------------------- 1 | include 'sage/ext/cdefs.pxi' 2 | include 'sage/ext/interrupt.pxi' 3 | include 'gsl.pxi' 4 | cdef class GSLDoubleArray: 5 | cdef size_t n 6 | cdef size_t stride 7 | cdef double * data 8 | 9 | #cdef class GSLDoubleComplexArray(GSLDoubleArray): 10 | # cdef size_t m 11 | -------------------------------------------------------------------------------- /src/sage/libs/fplll/fplll.pxd: -------------------------------------------------------------------------------- 1 | include "sage/ext/cdefs.pxi" 2 | include "fplll.pxi" 3 | 4 | cdef class FP_LLL: 5 | cdef ZZ_mat *_lattice 6 | cdef int _check_precision(self, int precision) except -1 7 | cdef int _check_eta(self, float eta) except -1 8 | cdef int _check_delta(self, float delta) except -1 9 | -------------------------------------------------------------------------------- /src/sage/sat/solvers/cryptominisat/__init__.py: -------------------------------------------------------------------------------- 1 | try: 2 | from cryptominisat import CryptoMiniSat 3 | except ImportError: 4 | raise ImportError("Failed to import 'sage.sat.solvers.cryptominisat.CryptoMiniSat'. Run \"install_package('cryptominisat')\" to install it.") 5 | 6 | from solverconf import SolverConf 7 | -------------------------------------------------------------------------------- /src/bin/sage-upgrade: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # This script must be run from $SAGE_ROOT and without having sourced 4 | # sage-env. 5 | 6 | set -e 7 | 8 | # Update sources 9 | local/bin/sage-update-src "$@" 10 | 11 | # Run top-level make with SAGE_UPGRADING set 12 | export SAGE_UPGRADING=yes 13 | exec make 14 | -------------------------------------------------------------------------------- /src/doc/en/reference/polynomial_rings/polynomial_rings_laurent.rst: -------------------------------------------------------------------------------- 1 | 2 | Laurent Polynomials and Polynomial Rings 3 | ======================================== 4 | 5 | .. toctree:: 6 | :maxdepth: 2 7 | 8 | sage/rings/polynomial/laurent_polynomial_ring 9 | sage/rings/polynomial/laurent_polynomial 10 | 11 | -------------------------------------------------------------------------------- /src/sage/groups/old.pxd: -------------------------------------------------------------------------------- 1 | cimport sage.structure.parent_gens 2 | 3 | cdef class Group(sage.structure.parent_gens.ParentWithGens): 4 | pass 5 | 6 | cdef class AbelianGroup(Group): 7 | pass 8 | 9 | cdef class FiniteGroup(Group): 10 | pass 11 | 12 | cdef class AlgebraicGroup(Group): 13 | pass 14 | 15 | -------------------------------------------------------------------------------- /src/sage/gsl/dwt.pxd: -------------------------------------------------------------------------------- 1 | include 'sage/ext/cdefs.pxi' 2 | include 'sage/ext/interrupt.pxi' 3 | include "gsl_wavelet.pxi" 4 | import gsl_array 5 | cimport gsl_array 6 | 7 | 8 | cdef class DiscreteWaveletTransform(gsl_array.GSLDoubleArray): 9 | cdef gsl_wavelet* wavelet 10 | cdef gsl_wavelet_workspace* workspace 11 | -------------------------------------------------------------------------------- /src/sage/gsl/gsl_lambert.pxi: -------------------------------------------------------------------------------- 1 | cdef extern from "gsl/gsl_sf_lambert.h": 2 | 3 | double gsl_sf_lambert_W0(double x) 4 | 5 | int gsl_sf_lambert_W0_e(double x, gsl_sf_result * result) 6 | 7 | double gsl_sf_lambert_Wm1(double x) 8 | 9 | int gsl_sf_lambert_Wm1_e(double x, gsl_sf_result * result) 10 | 11 | -------------------------------------------------------------------------------- /src/sage/matrix/matrix_real_double_dense.pxd: -------------------------------------------------------------------------------- 1 | cimport matrix_double_dense 2 | 3 | cdef class Matrix_real_double_dense(matrix_double_dense.Matrix_double_dense): 4 | cdef set_unsafe_double(self, Py_ssize_t i, Py_ssize_t j, double value) 5 | cdef double get_unsafe_double(self, Py_ssize_t i, Py_ssize_t j) 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/doc/en/developer/sagenb/github_development.rst: -------------------------------------------------------------------------------- 1 | .. _github-development: 2 | 3 | ===================== 4 | Git for Development 5 | ===================== 6 | 7 | Contents: 8 | 9 | .. toctree:: 10 | :maxdepth: 2 11 | 12 | forking_hell 13 | set_up_fork 14 | development_workflow 15 | maintainer_workflow 16 | -------------------------------------------------------------------------------- /src/mac-app/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Sage 4 | // 5 | // Created by Ivan Andrus on 26/6/10. 6 | // Copyright 2010 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | return NSApplicationMain(argc, (const char **) argv); 14 | } 15 | -------------------------------------------------------------------------------- /src/sage/categories/morphism.pxd: -------------------------------------------------------------------------------- 1 | from sage.structure.parent cimport Parent 2 | from sage.structure.element cimport Element 3 | from map cimport Map 4 | 5 | cdef class Morphism(Map): 6 | pass 7 | 8 | cdef class SetMorphism(Morphism): 9 | cdef object _function 10 | cpdef bint _eq_c_impl(left, Element right) 11 | -------------------------------------------------------------------------------- /src/sage/libs/ntl/ntl_ZZ_pEContext.pxd: -------------------------------------------------------------------------------- 1 | include "decl.pxi" 2 | include "sage/ext/cdefs.pxi" 3 | 4 | from sage.libs.ntl.ntl_ZZ_pContext cimport ntl_ZZ_pContext_class 5 | 6 | cdef class ntl_ZZ_pEContext_class: 7 | cdef ZZ_pEContext_c x 8 | cdef ntl_ZZ_pContext_class pc 9 | cdef void restore_c(self) 10 | cdef f -------------------------------------------------------------------------------- /src/sage/rings/padics/padic_fixed_mod_element.pxd: -------------------------------------------------------------------------------- 1 | include "sage/ext/cdefs.pxi" 2 | 3 | ctypedef mpz_t celement 4 | from sage.libs.pari.gen cimport gen as pari_gen 5 | 6 | include "FM_template_header.pxi" 7 | 8 | cdef class pAdicFixedModElement(FMElement): 9 | cdef lift_c(self) 10 | cdef pari_gen _to_gen(self) 11 | -------------------------------------------------------------------------------- /src/bin/sage-inline-fortran: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Compile Fortran code within Sage, 4 | # see devel/sage/sage/misc/inline_fortran.py 5 | 6 | [ -n "$FC" ] || FC=gfortran 7 | 8 | if [ "$UNAME" = "Darwin" ]; then 9 | exec $FC -bundle -undefined dynamic_lookup "$@" 10 | else 11 | exec $FC -shared "$@" 12 | fi 13 | -------------------------------------------------------------------------------- /src/doc/en/reference/parallel/index.rst: -------------------------------------------------------------------------------- 1 | Parallel Computing 2 | ================== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | sage/parallel/decorate 8 | sage/parallel/reference 9 | sage/parallel/use_fork 10 | sage/parallel/multiprocessing_sage 11 | sage/parallel/ncpus 12 | 13 | .. include:: ../footer.txt 14 | -------------------------------------------------------------------------------- /src/doc/en/reference/stats/index.rst: -------------------------------------------------------------------------------- 1 | Statistics 2 | ========== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | sage/stats/basic_stats 8 | sage/stats/intlist 9 | sage/stats/hmm/hmm 10 | sage/stats/hmm/chmm 11 | sage/stats/hmm/distributions 12 | sage/stats/hmm/util 13 | 14 | 15 | .. include:: ../footer.txt 16 | -------------------------------------------------------------------------------- /src/sage/gsl/gsl_synchrotron.pxi: -------------------------------------------------------------------------------- 1 | cdef extern from "gsl/gsl_sf_synchrotron.h": 2 | 3 | double gsl_sf_synchrotron_1(double x) 4 | 5 | int gsl_sf_synchrotron_1_e(double x, gsl_sf_result * result) 6 | 7 | double gsl_sf_synchrotron_2(double x) 8 | 9 | int gsl_sf_synchrotron_2_e(double x, gsl_sf_result * result) 10 | 11 | -------------------------------------------------------------------------------- /src/doc/en/reference/finance/index.rst: -------------------------------------------------------------------------------- 1 | Quantitative Finance 2 | ====================== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | sage/finance/time_series 8 | sage/finance/stock 9 | sage/finance/option 10 | sage/finance/fractal 11 | sage/finance/markov_multifractal 12 | 13 | 14 | .. include:: ../footer.txt 15 | -------------------------------------------------------------------------------- /src/sage/rings/padics/padic_capped_absolute_element.pxd: -------------------------------------------------------------------------------- 1 | include "sage/ext/cdefs.pxi" 2 | 3 | ctypedef mpz_t celement 4 | from sage.libs.pari.gen cimport gen as pari_gen 5 | 6 | include "CA_template_header.pxi" 7 | 8 | cdef class pAdicCappedAbsoluteElement(CAElement): 9 | cdef lift_c(self) 10 | cdef pari_gen _to_gen(self) 11 | -------------------------------------------------------------------------------- /src/sage/rings/padics/padic_capped_relative_element.pxd: -------------------------------------------------------------------------------- 1 | include "sage/ext/cdefs.pxi" 2 | 3 | ctypedef mpz_t celement 4 | from sage.libs.pari.gen cimport gen as pari_gen 5 | 6 | include "CR_template_header.pxi" 7 | 8 | cdef class pAdicCappedRelativeElement(CRElement): 9 | cdef lift_c(self) 10 | cdef pari_gen _to_gen(self) 11 | -------------------------------------------------------------------------------- /src/sage/combinat/family.py: -------------------------------------------------------------------------------- 1 | """ 2 | Families 3 | 4 | This is a backward compatibility stub. Use :mod:`sage.sets.family` instead. 5 | """ 6 | 7 | # Backward compatibility pointer 8 | # Needed for unpickling. 9 | from sage.sets.family import (Family, FiniteFamily, LazyFamily, 10 | FiniteFamilyWithHiddenKeys) 11 | -------------------------------------------------------------------------------- /src/doc/en/reference/combinat/cluster_algebras.rst: -------------------------------------------------------------------------------- 1 | Cluster Algebras and Quivers 2 | ============================ 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | ../sage/combinat/cluster_algebra_quiver/quiver_mutation_type 8 | ../sage/combinat/cluster_algebra_quiver/quiver 9 | ../sage/combinat/cluster_algebra_quiver/cluster_seed 10 | -------------------------------------------------------------------------------- /src/sage/libs/symmetrica/symmetrica.pyx: -------------------------------------------------------------------------------- 1 | include "sage/ext/interrupt.pxi" 2 | include 'sage/ext/stdsage.pxi' 3 | 4 | include "symmetrica.pxi" 5 | 6 | include "kostka.pxi" 7 | 8 | include "sab.pxi" 9 | 10 | include "sc.pxi" 11 | 12 | include "sb.pxi" 13 | 14 | include "part.pxi" 15 | 16 | include "schur.pxi" 17 | 18 | include "plet.pxi" 19 | -------------------------------------------------------------------------------- /src/sage/matrix/matrix_integer_2x2.pxd: -------------------------------------------------------------------------------- 1 | include "sage/ext/cdefs.pxi" 2 | 3 | cimport matrix_dense 4 | 5 | cdef class Matrix_integer_2x2(matrix_dense.Matrix_dense): 6 | cdef mpz_t a 7 | cdef mpz_t b 8 | cdef mpz_t c 9 | cdef mpz_t d 10 | cdef mpz_t *_entries 11 | 12 | cdef Matrix_integer_2x2 _new_c(self) 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/sage/plot/plot3d/base.pxd: -------------------------------------------------------------------------------- 1 | from sage.structure.sage_object cimport SageObject 2 | 3 | 4 | cdef class Graphics3d(SageObject): 5 | cdef public object texture 6 | cdef object _aspect_ratio 7 | cdef object _frame_aspect_ratio 8 | cdef public object _extra_kwds 9 | 10 | cdef class PrimitiveObject(Graphics3d): 11 | pass 12 | -------------------------------------------------------------------------------- /src/sage/sandpiles/all.py: -------------------------------------------------------------------------------- 1 | from sandpile import Sandpile, SandpileDivisor, SandpileConfig, sandlib, grid_sandpile, complete_sandpile, firing_vector, admissible_partitions, firing_graph, parallel_firing_graph, wilmes_algorithm, min_cycles, partition_sandpile, glue_graphs, random_tree, random_DAG, random_digraph, triangle_sandpile, aztec_sandpile 2 | 3 | -------------------------------------------------------------------------------- /src/c_lib/include/convert.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | convert.h 4 | 2007 Aug 19 5 | Author: Craig Citro 6 | 7 | C header for conversions to and from pari types. 8 | 9 | */ 10 | 11 | #include 12 | #include 13 | #include 14 | 15 | void t_INT_to_ZZ ( mpz_t value, GEN g ); 16 | void t_FRAC_to_QQ ( mpq_t value, GEN g ); 17 | -------------------------------------------------------------------------------- /src/sage/combinat/cluster_algebra_quiver/all.py: -------------------------------------------------------------------------------- 1 | from sage.misc.lazy_import import lazy_import 2 | lazy_import("sage.combinat.cluster_algebra_quiver.quiver_mutation_type", "QuiverMutationType") 3 | lazy_import("sage.combinat.cluster_algebra_quiver.quiver", "ClusterQuiver") 4 | lazy_import("sage.combinat.cluster_algebra_quiver.cluster_seed", "ClusterSeed") 5 | -------------------------------------------------------------------------------- /src/sage/libs/ntl/ntl_GF2EX.pxd: -------------------------------------------------------------------------------- 1 | include "decl.pxi" 2 | include "sage/ext/cdefs.pxi" 3 | 4 | from ntl_GF2EContext cimport ntl_GF2EContext_class 5 | from ntl_GF2E cimport ntl_GF2E 6 | 7 | cdef class ntl_GF2EX: 8 | cdef GF2EX_c x 9 | cdef ntl_GF2EContext_class c 10 | cdef ntl_GF2E _new_element(self) 11 | cdef ntl_GF2EX _new(self) 12 | -------------------------------------------------------------------------------- /src/sage/matrix/matrix_modn_sparse.pxd: -------------------------------------------------------------------------------- 1 | cimport matrix_sparse 2 | 3 | include 'sage/modules/vector_modn_sparse_h.pxi' 4 | 5 | cdef class Matrix_modn_sparse(matrix_sparse.Matrix_sparse): 6 | cdef c_vector_modint* rows 7 | cdef public int p 8 | cdef swap_rows_c(self, Py_ssize_t n1, Py_ssize_t n2) 9 | 10 | cdef _init_linbox(self) 11 | -------------------------------------------------------------------------------- /src/sage/modules/vector_integer_dense.pxd: -------------------------------------------------------------------------------- 1 | cimport free_module_element 2 | import free_module_element 3 | 4 | include 'sage/ext/cdefs.pxi' 5 | 6 | cdef class Vector_integer_dense(free_module_element.FreeModuleElement): 7 | cdef mpz_t* _entries 8 | cdef _new_c(self) 9 | cdef _init(self, Py_ssize_t degree, parent) 10 | 11 | -------------------------------------------------------------------------------- /src/sage/modules/vector_rational_dense.pxd: -------------------------------------------------------------------------------- 1 | cimport free_module_element 2 | import free_module_element 3 | 4 | include 'sage/ext/cdefs.pxi' 5 | 6 | cdef class Vector_rational_dense(free_module_element.FreeModuleElement): 7 | cdef mpq_t* _entries 8 | cdef _new_c(self) 9 | cdef _init(self, Py_ssize_t degree, parent) 10 | 11 | -------------------------------------------------------------------------------- /src/sage/dev/test/data/hg.patch: -------------------------------------------------------------------------------- 1 | # HG changeset patch 2 | # User David Roe 3 | # Date 1330866523 28800 4 | # Node ID 264dcd0442d217ff8762bcc068fbb6fc12cf5367 5 | # Parent 05fca316b08fe56c8eec85151d9a6dde6f435d46 6 | #12555: fixed modulus templates 7 | 8 | diff --git a/sage/rings/padics/FM_template.pxi b/sage/rings/padics/FM_template.pxi 9 | -------------------------------------------------------------------------------- /src/sage/matrix/matrix_modn_dense_float.pxd: -------------------------------------------------------------------------------- 1 | include "sage/ext/cdefs.pxi" 2 | 3 | ctypedef float celement 4 | 5 | include "matrix_modn_dense_template_header.pxi" 6 | 7 | from sage.rings.finite_rings.integer_mod cimport IntegerMod_int 8 | 9 | cdef class Matrix_modn_dense_float(Matrix_modn_dense_template): 10 | cdef IntegerMod_int _get_template 11 | -------------------------------------------------------------------------------- /src/doc/en/reference/combinat/tableaux.rst: -------------------------------------------------------------------------------- 1 | Tableaux and Tableaux-like Objects 2 | ================================== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | sage/combinat/tableau 8 | sage/combinat/skew_tableau 9 | sage/combinat/ribbon 10 | sage/combinat/ribbon_tableau 11 | sage/combinat/tableau_tuple 12 | sage/combinat/k_tableau 13 | -------------------------------------------------------------------------------- /src/doc/en/reference/lfunctions/index.rst: -------------------------------------------------------------------------------- 1 | L-Functions 2 | =========== 3 | 4 | Sage includes several standard open source packages for computing 5 | with :math:`L`-functions. 6 | 7 | .. toctree:: 8 | :maxdepth: 2 9 | 10 | sage/lfunctions/lcalc 11 | sage/lfunctions/sympow 12 | sage/lfunctions/dokchitser 13 | 14 | .. include:: ../footer.txt 15 | -------------------------------------------------------------------------------- /src/doc/en/reference/riemannian_geometry/index.rst: -------------------------------------------------------------------------------- 1 | Differential Geometry of Curves and Surfaces 2 | ============================================ 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | sage/geometry/riemannian_manifolds/parametrized_surface3d 8 | sage/geometry/riemannian_manifolds/surface3d_generators 9 | 10 | .. include:: ../footer.txt 11 | -------------------------------------------------------------------------------- /src/sage/libs/ntl/ntl_mat_GF2E.pxd: -------------------------------------------------------------------------------- 1 | include "decl.pxi" 2 | include "sage/ext/cdefs.pxi" 3 | 4 | from ntl_GF2EContext cimport ntl_GF2EContext_class 5 | from ntl_GF2E cimport ntl_GF2E 6 | 7 | cdef class ntl_mat_GF2E: 8 | cdef mat_GF2E_c x 9 | cdef ntl_GF2EContext_class c 10 | cdef ntl_GF2E _new_element(self) 11 | cdef ntl_mat_GF2E _new(self) 12 | -------------------------------------------------------------------------------- /src/sage/schemes/toric/all.py: -------------------------------------------------------------------------------- 1 | # code exports 2 | 3 | from fano_variety import CPRFanoToricVariety 4 | from ideal import ToricIdeal 5 | from library import toric_varieties 6 | from variety import AffineToricVariety, ToricVariety 7 | 8 | 9 | from sage.misc.lazy_import import lazy_import 10 | lazy_import('sage.schemes.toric.weierstrass', 'WeierstrassForm') 11 | -------------------------------------------------------------------------------- /src/sage/stats/hmm/util.pxd: -------------------------------------------------------------------------------- 1 | from sage.finance.time_series cimport TimeSeries 2 | 3 | cdef class HMM_Util: 4 | cpdef normalize_probability_TimeSeries(self, TimeSeries T, Py_ssize_t i, Py_ssize_t j) 5 | cpdef TimeSeries initial_probs_to_TimeSeries(self, pi, bint normalize) 6 | cpdef TimeSeries state_matrix_to_TimeSeries(self, A, int N, bint normalize) 7 | 8 | -------------------------------------------------------------------------------- /src/sage/dev/test/data/hg-output.patch: -------------------------------------------------------------------------------- 1 | # HG changeset patch 2 | # User David Roe 3 | # Date 1330837723 00000 4 | # Node ID 0000000000000000000000000000000000000000 5 | # Parent 0000000000000000000000000000000000000000 6 | #12555: fixed modulus templates 7 | 8 | diff --git a/sage/rings/padics/FM_template.pxi b/sage/rings/padics/FM_template.pxi 9 | -------------------------------------------------------------------------------- /src/sage/modules/vector_mod2_dense.pxd: -------------------------------------------------------------------------------- 1 | cimport free_module_element 2 | import free_module_element 3 | 4 | from sage.libs.m4ri cimport mzd_t 5 | 6 | cdef class Vector_mod2_dense(free_module_element.FreeModuleElement): 7 | cdef mzd_t *_entries 8 | cdef object _base_ring 9 | 10 | cdef _new_c(self) 11 | cdef _init(self, Py_ssize_t degree, parent) 12 | -------------------------------------------------------------------------------- /src/sage/plot/plot3d/examples.py: -------------------------------------------------------------------------------- 1 | r""" 2 | Introduction 3 | 4 | EXAMPLES:: 5 | 6 | sage: x, y = var('x y') 7 | sage: W = plot3d(sin(pi*((x)^2+(y)^2))/2,(x,-1,1),(y,-1,1), frame=False, color='purple', opacity=0.8) 8 | sage: S = sphere((0,0,0),size=0.3, color='red', aspect_ratio=[1,1,1]) 9 | sage: show(W + S, figsize=8) 10 | """ 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/doc/en/reference/combinat/posets.rst: -------------------------------------------------------------------------------- 1 | Posets 2 | ====== 3 | 4 | .. toctree:: 5 | :maxdepth: 1 6 | 7 | ../sage/combinat/posets/posets 8 | ../sage/combinat/posets/hasse_diagram 9 | ../sage/combinat/posets/elements 10 | ../sage/combinat/posets/lattices 11 | ../sage/combinat/posets/linear_extensions 12 | ../sage/combinat/posets/poset_examples 13 | -------------------------------------------------------------------------------- /src/doc/en/reference/games/index.rst: -------------------------------------------------------------------------------- 1 | Games 2 | ===== 3 | 4 | Sage includes a sophisticated Sudoku solver. It also has a 5 | Rubik's cube solver (see 6 | `Rubik's Cube Group <../groups/sage/groups/perm_gps/cubegroup.html>`_). 7 | 8 | .. toctree:: 9 | :maxdepth: 2 10 | 11 | sage/games/sudoku 12 | sage/games/quantumino 13 | 14 | .. include:: ../footer.txt 15 | -------------------------------------------------------------------------------- /src/sage/libs/ntl/ntl_ZZ_p.pxd: -------------------------------------------------------------------------------- 1 | 2 | include "decl.pxi" 3 | 4 | from sage.libs.ntl.ntl_ZZ_pContext cimport ntl_ZZ_pContext_class 5 | 6 | cdef class ntl_ZZ_p: 7 | cdef ZZ_p_c x 8 | cdef ntl_ZZ_pContext_class c 9 | cdef public int get_as_int(ntl_ZZ_p self) 10 | cdef public void set_from_int(ntl_ZZ_p self, int value) 11 | cdef ntl_ZZ_p _new(self) 12 | -------------------------------------------------------------------------------- /src/sage/rings/polynomial/polynomial_integer_dense_ntl.pxd: -------------------------------------------------------------------------------- 1 | include "sage/ext/cdefs.pxi" 2 | include "sage/libs/ntl/decl.pxi" # to get ZZX_c etc 3 | 4 | from sage.rings.polynomial.polynomial_element cimport Polynomial 5 | 6 | cdef class Polynomial_integer_dense_ntl(Polynomial): 7 | cdef ZZX_c __poly 8 | 9 | cdef Polynomial_integer_dense_ntl _new(self) 10 | -------------------------------------------------------------------------------- /src/sage/rings/polynomial/polynomial_zz_pex.pxd: -------------------------------------------------------------------------------- 1 | from sage.libs.ntl.ntl_ZZ_pEX_decl cimport ZZ_pEX_c 2 | from sage.libs.ntl.ntl_ZZ_pEContext_decl cimport ZZ_pEContext_c 3 | 4 | ctypedef ZZ_pEX_c celement 5 | ctypedef ZZ_pEContext_c *cparent 6 | 7 | include "polynomial_template_header.pxi" 8 | 9 | cdef class Polynomial_ZZ_pX(Polynomial_template): 10 | pass 11 | 12 | -------------------------------------------------------------------------------- /src/sage/doctest/tests/keyboardinterrupt.rst: -------------------------------------------------------------------------------- 1 | We explicitly raise an interrupt and expect it:: 2 | 3 | sage: raise KeyboardInterrupt 4 | Traceback (most recent call last): 5 | ... 6 | KeyboardInterrupt 7 | 8 | We now raise an interrupt without expecting it, which should lead to 9 | an ordinary doctest failure:: 10 | 11 | sage: raise KeyboardInterrupt 12 | -------------------------------------------------------------------------------- /src/sage/modular/modsym/apply.pxd: -------------------------------------------------------------------------------- 1 | include "sage/ext/stdsage.pxi" 2 | include "sage/ext/cdefs.pxi" 3 | 4 | from sage.libs.flint.flint cimport * 5 | include "sage/libs/flint/fmpz_poly.pxi" 6 | 7 | 8 | cdef class Apply: 9 | cdef fmpz_poly_t f, g, ff, gg 10 | cdef int apply_to_monomial_flint(self, fmpz_poly_t ans, int i, int j, int a, int b, int c, int d) except -1 11 | -------------------------------------------------------------------------------- /src/sage/plot/plot3d/parametric_surface.pxd: -------------------------------------------------------------------------------- 1 | from index_face_set cimport IndexFaceSet 2 | from transform cimport point_c, face_c 3 | 4 | cdef class ParametricSurface(IndexFaceSet): 5 | cdef object f 6 | cdef object render_grid 7 | cdef int eval_grid(self, urange, vrange) except -1 8 | cdef int eval_c(self, point_c *res, double u, double v) except -1 9 | 10 | -------------------------------------------------------------------------------- /src/doc/en/reference/doctest/index.rst: -------------------------------------------------------------------------------- 1 | Sage's Doctesting Framework 2 | =========================== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | sage/doctest/control 8 | sage/doctest/sources 9 | sage/doctest/forker 10 | sage/doctest/parsing 11 | sage/doctest/reporting 12 | sage/doctest/test 13 | sage/doctest/util 14 | 15 | .. include:: ../footer.txt 16 | -------------------------------------------------------------------------------- /src/sage/groups/misc_gps/misc_groups.py: -------------------------------------------------------------------------------- 1 | r""" 2 | Miscellaneous Groups 3 | 4 | This is a collection of groups that may not fit into some of the other infinite families described elsewhere. 5 | """ 6 | 7 | # Implementation note: 8 | # When adding a group here make an entry 9 | # in the misc_groups_catalog.py module 10 | # or a more closely-related catalog module 11 | -------------------------------------------------------------------------------- /src/sage/gsl/interpolation.pxd: -------------------------------------------------------------------------------- 1 | include 'sage/ext/cdefs.pxi' 2 | include 'sage/ext/interrupt.pxi' 3 | include 'gsl.pxi' 4 | 5 | cdef class Spline: 6 | cdef double *x, *y 7 | cdef gsl_interp_accel *acc 8 | cdef gsl_spline *spline 9 | cdef int started 10 | cdef object v 11 | 12 | cdef start_interp(self) 13 | cdef stop_interp(self) 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/sage/matrix/matrix_integer_sparse.pxd: -------------------------------------------------------------------------------- 1 | include 'sage/ext/cdefs.pxi' 2 | include 'sage/modules/vector_integer_sparse_h.pxi' 3 | 4 | from sage.ext.mod_int cimport * 5 | cimport matrix_sparse 6 | 7 | cdef class Matrix_integer_sparse(matrix_sparse.Matrix_sparse): 8 | cdef mpz_vector* _matrix 9 | cdef int _initialized 10 | 11 | cdef _mod_int_c(self, mod_int p) 12 | -------------------------------------------------------------------------------- /src/sage/rings/padics/local_generic_element.pxd: -------------------------------------------------------------------------------- 1 | import sage.structure.element 2 | cimport sage.structure.element 3 | from sage.structure.element cimport RingElement, ModuleElement, CommutativeRingElement 4 | 5 | cdef class LocalGenericElement(CommutativeRingElement): 6 | cpdef RingElement _div_(self, RingElement right) 7 | cpdef ModuleElement _sub_(self, ModuleElement right) 8 | -------------------------------------------------------------------------------- /src/sage/rings/padics/padic_ZZ_pX_element.pxd: -------------------------------------------------------------------------------- 1 | include "sage/libs/ntl/decl.pxi" 2 | 3 | from sage.rings.padics.padic_ext_element cimport pAdicExtElement 4 | from sage.rings.padics.pow_computer_ext cimport PowComputer_ZZ_pX 5 | from sage.libs.ntl.ntl_ZZ_pContext cimport ntl_ZZ_pContext_class 6 | 7 | cdef class pAdicZZpXElement(pAdicExtElement): 8 | cdef PowComputer_ZZ_pX prime_pow 9 | -------------------------------------------------------------------------------- /src/sage/schemes/generic/all.py: -------------------------------------------------------------------------------- 1 | # code exports 2 | 3 | from spec import Spec, is_Spec 4 | from algebraic_scheme import is_AlgebraicScheme 5 | from ambient_space import is_AmbientSpace 6 | from morphism import is_SchemeMorphism 7 | from scheme import is_Scheme, is_AffineScheme 8 | from hypersurface import ProjectiveHypersurface, AffineHypersurface 9 | -------------------------------------------------------------------------------- /src/sage/libs/pari/pari_err.pxi: -------------------------------------------------------------------------------- 1 | # Let Cython know that pari_err.h includes interrupt.h 2 | cdef extern from 'interrupt.h': 3 | pass 4 | 5 | from sage.libs.pari.handle_error cimport _pari_check_warning 6 | 7 | cdef extern from 'sage/libs/pari/pari_err.h': 8 | int pari_catch_sig_on() except 0 9 | int pari_catch_sig_str(char *) except 0 10 | void pari_catch_sig_off() 11 | -------------------------------------------------------------------------------- /src/sage/modular/modsym/all.py: -------------------------------------------------------------------------------- 1 | from element import set_modsym_print_mode, is_ModularSymbolsElement 2 | 3 | from modsym import ModularSymbols, ModularSymbols_clear_cache 4 | 5 | from space import is_ModularSymbolsSpace 6 | 7 | from heilbronn import HeilbronnCremona, HeilbronnMerel 8 | 9 | from p1list import P1List, lift_to_sl2z 10 | 11 | from p1list_nf import P1NFList, MSymbol 12 | -------------------------------------------------------------------------------- /src/bin/sage-notebook-insecure: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import os, sys, socket 4 | 5 | print open(os.environ['SAGE_ROOT'] + '/local/bin/sage-banner').read() 6 | 7 | print "Please wait while the Sage Notebook server starts..." 8 | 9 | from sage.all import * 10 | 11 | if len(sys.argv) > 1: 12 | notebook(secure=False, *sys.argv[1:]) 13 | else: 14 | notebook(secure=False) 15 | -------------------------------------------------------------------------------- /src/doc/en/reference/polynomial_rings/polynomial_rings_infinite.rst: -------------------------------------------------------------------------------- 1 | 2 | Infinite Polynomial Rings 3 | ========================= 4 | 5 | .. toctree:: 6 | :maxdepth: 2 7 | 8 | sage/rings/polynomial/infinite_polynomial_ring 9 | sage/rings/polynomial/infinite_polynomial_element 10 | 11 | sage/rings/polynomial/symmetric_ideal 12 | sage/rings/polynomial/symmetric_reduction 13 | 14 | -------------------------------------------------------------------------------- /src/doc/en/reference/polynomial_rings/polynomial_rings_toy_implementations.rst: -------------------------------------------------------------------------------- 1 | 2 | Educational Versions of Groebner Basis and Related Algorithms 3 | ============================================================= 4 | 5 | .. toctree:: 6 | :maxdepth: 2 7 | 8 | sage/rings/polynomial/toy_buchberger 9 | sage/rings/polynomial/toy_variety 10 | sage/rings/polynomial/toy_d_basis 11 | 12 | -------------------------------------------------------------------------------- /src/sage/geometry/triangulation/triangulations.pxd: -------------------------------------------------------------------------------- 1 | 2 | 3 | cdef extern from "triangulations.h": 4 | ctypedef void* triangulations_ptr 5 | cdef triangulations_ptr init_triangulations \ 6 | (int n, int d, int star, bint fine, object seed, object flips) 7 | cdef object next_triangulation(triangulations_ptr) 8 | cdef void delete_triangulations(triangulations_ptr) 9 | 10 | -------------------------------------------------------------------------------- /src/sage/libs/ntl/ntl_lzz_p.pxd: -------------------------------------------------------------------------------- 1 | include "decl.pxi" 2 | 3 | from sage.libs.ntl.ntl_lzz_pContext cimport ntl_zz_pContext_class 4 | from sage.libs.ntl.ntl_lzz_p_decl cimport *,zz_p_c 5 | 6 | #cdef extern from "ntl_wrap.h": 7 | # struct zz_p_c 8 | 9 | cdef class ntl_zz_p: 10 | cdef zz_p_c x 11 | cdef ntl_zz_pContext_class c 12 | cdef ntl_zz_p _new(ntl_zz_p self) 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/sage/rings/finite_rings/finite_field_base.pxd: -------------------------------------------------------------------------------- 1 | from sage.rings.ring cimport Field 2 | 3 | cdef class FiniteField(Field): 4 | cdef public object __factored_unit_order 5 | cdef public object __multiplicative_generator 6 | cdef public object __polynomial_ring 7 | cdef public object __vector_space 8 | cdef public object __interface 9 | cdef public object _kwargs 10 | 11 | -------------------------------------------------------------------------------- /src/sage/rings/integer_ring.pxd: -------------------------------------------------------------------------------- 1 | include "sage/ext/cdefs.pxi" 2 | include "sage/libs/ntl/decl.pxi" 3 | 4 | from ring cimport PrincipalIdealDomain 5 | from integer cimport Integer 6 | 7 | cdef class IntegerRing_class(PrincipalIdealDomain): 8 | cdef Integer _coerce_ZZ(self, ZZ_c *z) 9 | cdef int _randomize_mpz(self, mpz_t value, x, y, distribution) except -1 10 | cdef object _zero 11 | -------------------------------------------------------------------------------- /src/sage/graphs/trees.pxd: -------------------------------------------------------------------------------- 1 | 2 | cdef class TreeIterator: 3 | cdef int vertices 4 | cdef int first_time 5 | cdef int p 6 | cdef int q 7 | cdef int h1 8 | cdef int h2 9 | cdef int c 10 | cdef int r 11 | cdef int *l 12 | cdef int *current_level_sequence 13 | cdef int generate_first_level_sequence(self) 14 | cdef int generate_next_level_sequence(self) 15 | -------------------------------------------------------------------------------- /src/sage/matrix/matrix_modn_dense_double.pxd: -------------------------------------------------------------------------------- 1 | include "sage/ext/cdefs.pxi" 2 | 3 | ctypedef double celement 4 | 5 | include "matrix_modn_dense_template_header.pxi" 6 | 7 | from sage.rings.finite_rings.integer_mod cimport IntegerMod_abstract 8 | 9 | cdef class Matrix_modn_dense_double(Matrix_modn_dense_template): 10 | cdef IntegerMod_abstract _get_template 11 | cdef bint _fits_int32 12 | -------------------------------------------------------------------------------- /src/sage/rings/padics/morphism.pxd: -------------------------------------------------------------------------------- 1 | from sage.rings.morphism cimport RingHomomorphism 2 | from sage.structure.element cimport Element 3 | 4 | 5 | cdef class FrobeniusEndomorphism_padics(RingHomomorphism): 6 | cdef long _degree 7 | cdef long _power 8 | cdef long _order 9 | 10 | cpdef Element _call_(self,x) 11 | 12 | cdef int _cmp_c_impl(self, Element other) except -2 13 | 14 | -------------------------------------------------------------------------------- /m4/ax_prog_perl_version.m4: -------------------------------------------------------------------------------- 1 | dnl provided on autoconf mailing list by Russ Albery 2 | 3 | AC_DEFUN([AX_PROG_PERL_VERSION], 4 | [AC_CACHE_CHECK([for Perl version $1 or later], [ax_cv_prog_perl_version], 5 | [AS_IF(["$PERL" -e 'require $1;' >/dev/null 2>&1], 6 | [ax_cv_prog_perl_version=yes], 7 | [ax_cv_prog_perl_version=no])]) 8 | AS_IF([test x"$ax_cv_prog_perl_version" = xyes], [$2], [$3])]) 9 | -------------------------------------------------------------------------------- /src/doc/en/reference/combinat/developer.rst: -------------------------------------------------------------------------------- 1 | Developer Tools 2 | =============== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | ../sage/combinat/backtrack 8 | ../sage/combinat/output 9 | ../sage/combinat/permutation_nk 10 | ../sage/combinat/split_nk 11 | ../sage/combinat/choose_nk 12 | ../sage/combinat/multichoose_nk 13 | ../sage/combinat/tools 14 | ../sage/combinat/ranker 15 | 16 | -------------------------------------------------------------------------------- /src/sage/combinat/rigged_configurations/all.py: -------------------------------------------------------------------------------- 1 | from rigged_configurations import HighestWeightRiggedConfigurations 2 | from rigged_configurations import RiggedConfigurations 3 | from tensor_product_kr_tableaux import HighestWeightTensorProductOfKirillovReshetikhinTableaux 4 | from tensor_product_kr_tableaux import TensorProductOfKirillovReshetikhinTableaux 5 | from kr_tableaux import KirillovReshetikhinTableaux 6 | 7 | -------------------------------------------------------------------------------- /src/sage/combinat/root_system/__init__.py: -------------------------------------------------------------------------------- 1 | # Makes sage.combinat.root_system? equivalent to sage.combinat.root_system.root_system? 2 | from root_system import __doc__ 3 | 4 | # currently needed to activate the backward compatibility register_unpickle_override 5 | import type_A 6 | import type_B 7 | import type_C 8 | import type_D 9 | import type_E 10 | import type_F 11 | import type_G 12 | 13 | import all 14 | -------------------------------------------------------------------------------- /src/sage/modules/vector_modn_dense.pxd: -------------------------------------------------------------------------------- 1 | from sage.ext.mod_int cimport * 2 | 3 | cimport free_module_element 4 | import free_module_element 5 | 6 | cdef class Vector_modn_dense(free_module_element.FreeModuleElement): 7 | cdef mod_int* _entries 8 | cdef mod_int _p 9 | cdef object _base_ring 10 | 11 | cdef _new_c(self) 12 | cdef _init(self, Py_ssize_t degree, parent, mod_int p) 13 | 14 | -------------------------------------------------------------------------------- /src/sage/misc/copying.py: -------------------------------------------------------------------------------- 1 | import os, pager 2 | 3 | from sage.env import SAGE_ROOT 4 | 5 | class License: 6 | def __call__(self): 7 | pager.pager()(self.__str__()) 8 | 9 | def __repr__(self): 10 | return "Type license() to see the full license text." 11 | 12 | def __str__(self): 13 | return open(os.path.join(SAGE_ROOT,'COPYING.txt')).read() 14 | 15 | license = License() 16 | -------------------------------------------------------------------------------- /src/sage/libs/flint/fmpz_poly.pxd: -------------------------------------------------------------------------------- 1 | include "sage/ext/stdsage.pxi" 2 | 3 | from flint cimport * 4 | include "fmpz_poly.pxi" 5 | 6 | from sage.structure.sage_object cimport SageObject 7 | 8 | cdef class Fmpz_poly(SageObject): 9 | cdef fmpz_poly_t poly 10 | 11 | cdef extern from "flint/fmpz_poly.h": 12 | cdef void fmpz_poly_reverse(fmpz_poly_t output, fmpz_poly_t input, 13 | unsigned long length) 14 | -------------------------------------------------------------------------------- /src/sage/libs/ntl/ntl_ZZ_pEX.pxd: -------------------------------------------------------------------------------- 1 | include "decl.pxi" 2 | include "sage/ext/cdefs.pxi" 3 | 4 | from sage.libs.ntl.ntl_ZZ_pEContext cimport ntl_ZZ_pEContext_class 5 | 6 | cdef class ntl_ZZ_pEX: 7 | cdef ZZ_pEX_c x 8 | cdef ntl_ZZ_pEContext_class c 9 | #cdef void setitem_from_int(ntl_ZZ_pX self, long i, int value) 10 | #cdef int getitem_as_int(ntl_ZZ_pX self, long i) 11 | cdef ntl_ZZ_pEX _new(self) 12 | -------------------------------------------------------------------------------- /src/sage/libs/pari/pari_err.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include "interrupt.h" 3 | 4 | 5 | /***************************************** 6 | Interrupts and PARI exception handling 7 | *****************************************/ 8 | 9 | #define pari_catch_sig_on() _sig_on_(NULL) 10 | #define pari_catch_sig_str(s) _sig_on_(s) 11 | #define pari_catch_sig_off() (_sig_off_(__FILE__, __LINE__), _pari_check_warning()) 12 | -------------------------------------------------------------------------------- /src/sage/stats/all.py: -------------------------------------------------------------------------------- 1 | from r import (ttest) 2 | from basic_stats import (mean, mode, std, variance, median, moving_average) 3 | 4 | import hmm.all as hmm 5 | 6 | # We lazy_import the following modules since they import numpy which slows down sage startup 7 | from sage.misc.lazy_import import lazy_import 8 | lazy_import("sage.finance.time_series", ["TimeSeries"]) 9 | lazy_import("sage.stats.intlist",["IntList"]) 10 | -------------------------------------------------------------------------------- /src/sage/doctest/tests/initial.rst: -------------------------------------------------------------------------------- 1 | One initial typo causes a ``NameError`` in the first test and many 2 | following failures:: 3 | 4 | sage: a = binomiak(10,5) # random to test that we still get the exception 5 | sage: a 6 | 252 7 | sage: a == factorial(10)/factorial(5)^2 8 | True 9 | sage: a//12 10 | 21 11 | 12 | But this is a new failure:: 13 | 14 | sage: binomial(10,5) 15 | 255 16 | -------------------------------------------------------------------------------- /src/sage/gsl/fft.pxd: -------------------------------------------------------------------------------- 1 | include 'sage/ext/cdefs.pxi' 2 | include 'sage/ext/interrupt.pxi' 3 | include 'gsl.pxi' 4 | 5 | cdef class FastFourierTransform_base: 6 | pass 7 | 8 | cdef class FastFourierTransform_complex(FastFourierTransform_base): 9 | 10 | cdef double * data 11 | cdef size_t n 12 | cdef size_t stride 13 | cdef gsl_fft_complex_wavetable * wt 14 | cdef gsl_fft_complex_workspace * mem 15 | -------------------------------------------------------------------------------- /src/doc/en/reference/cmd/index.rst: -------------------------------------------------------------------------------- 1 | The Sage Command Line 2 | ===================== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | options 8 | startup 9 | environ 10 | sage/misc/trace 11 | 12 | sage/misc/readline_extra_commands 13 | 14 | For more details about how to use the Sage command line once it starts up, see the Sage tutorial and the documentation for IPython. 15 | 16 | .. include:: ../footer.txt 17 | -------------------------------------------------------------------------------- /src/doc/en/reference/quadratic_forms/index.rst: -------------------------------------------------------------------------------- 1 | Quadratic Forms 2 | =============== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | sage/quadratic_forms/quadratic_form 8 | sage/quadratic_forms/binary_qf 9 | sage/quadratic_forms/constructions 10 | sage/quadratic_forms/random_quadraticform 11 | sage/quadratic_forms/special_values 12 | sage/quadratic_forms/count_local_2 13 | 14 | .. include:: ../footer.txt 15 | -------------------------------------------------------------------------------- /src/sage/gsl/gsl_diff.pxi: -------------------------------------------------------------------------------- 1 | cdef extern from "gsl/gsl_diff.h": 2 | int gsl_diff_central ( gsl_function *f, double x, 3 | double *result, double *abserr) 4 | 5 | int gsl_diff_backward ( gsl_function *f, double x, 6 | double *result, double *abserr) 7 | 8 | int gsl_diff_forward ( gsl_function *f, double x, 9 | double *result, double *abserr) 10 | 11 | -------------------------------------------------------------------------------- /src/sage/libs/flint/flint.pyx: -------------------------------------------------------------------------------- 1 | """ 2 | TESTS: 3 | 4 | We verify that Trac #6919 is correctly fixed:: 5 | 6 | sage: R. = PolynomialRing(ZZ) 7 | sage: A = 2^(2^17+2^15) 8 | sage: a = A * x^31 9 | sage: b = (A * x) * x^30 10 | sage: a == b 11 | True 12 | """ 13 | include "sage/ext/stdsage.pxi" 14 | include "sage/ext/cdefs.pxi" 15 | 16 | def free_flint_stack(): 17 | _fmpz_cleanup_mpz_content() 18 | -------------------------------------------------------------------------------- /src/sage/dev/test/data/diff.patch: -------------------------------------------------------------------------------- 1 | diff -r c6f635d36eed sage/geometry/all.py 2 | --- a/sage/geometry/all.py Sat Aug 28 22:10:07 2010 +0200 3 | +++ b/sage/geometry/all.py Mon Aug 30 21:15:57 2010 +0200 4 | @@ -12,5 +12,6 @@ 5 | 6 | # hyperbolic geometry 7 | from hyperbolic_geometry import DD,HH,HyperbolicPlane,HyperbolicDisc 8 | +from fundamental_domains import FundamentalDomain 9 | 10 | from toric_lattice import ToricLattice 11 | -------------------------------------------------------------------------------- /src/sage/libs/ntl/ntl_lzz_pX.pxd: -------------------------------------------------------------------------------- 1 | from sage.libs.ntl.ntl_lzz_pX_decl cimport *, zz_pX_c, zz_pX_Modulus_c 2 | from sage.libs.ntl.ntl_lzz_p_decl cimport *, zz_p_c 3 | 4 | from sage.libs.ntl.ntl_lzz_pContext cimport ntl_zz_pContext_class 5 | 6 | #cdef extern from "ntl_wrap.h": 7 | # struct zz_pX 8 | 9 | cdef class ntl_zz_pX: 10 | cdef zz_pX_c x 11 | cdef ntl_zz_pContext_class c 12 | cdef ntl_zz_pX _new(self) 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/sage/matrix/all.py: -------------------------------------------------------------------------------- 1 | from matrix_space import MatrixSpace 2 | from constructor import (matrix, Matrix, column_matrix, random_matrix, 3 | diagonal_matrix, identity_matrix, block_matrix, 4 | block_diagonal_matrix, jordan_block, zero_matrix, 5 | ones_matrix, elementary_matrix, companion_matrix) 6 | from berlekamp_massey import berlekamp_massey 7 | 8 | Mat = MatrixSpace 9 | -------------------------------------------------------------------------------- /src/sage/libs/ntl/ntl_ZZ_pE.pxd: -------------------------------------------------------------------------------- 1 | 2 | include "decl.pxi" 3 | 4 | from sage.libs.ntl.ntl_ZZ_pEContext cimport ntl_ZZ_pEContext_class 5 | from sage.libs.ntl.ntl_ZZ_pX cimport ntl_ZZ_pX 6 | 7 | cdef class ntl_ZZ_pE: 8 | cdef ZZ_pE_c x 9 | cdef ntl_ZZ_pEContext_class c 10 | cdef public ntl_ZZ_pX get_as_ZZ_pX(ntl_ZZ_pE self) 11 | cdef public void set_from_ZZ_pX(ntl_ZZ_pE self, ntl_ZZ_pX value) 12 | cdef ntl_ZZ_pE _new(self) 13 | -------------------------------------------------------------------------------- /src/sage/crypto/all.py: -------------------------------------------------------------------------------- 1 | from classical import ( 2 | AffineCryptosystem, 3 | HillCryptosystem, 4 | SubstitutionCryptosystem, 5 | ShiftCryptosystem, 6 | TranspositionCryptosystem, 7 | VigenereCryptosystem) 8 | 9 | from stream import ( 10 | LFSRCryptosystem, 11 | ShrinkingGeneratorCryptosystem) 12 | 13 | from lfsr import ( 14 | lfsr_sequence, 15 | lfsr_autocorrelation, 16 | lfsr_connection_polynomial) 17 | -------------------------------------------------------------------------------- /src/sage/structure/wrapper_parent.pxd: -------------------------------------------------------------------------------- 1 | from sage.structure.parent cimport Parent 2 | from sage.categories.morphism cimport Morphism 3 | from sage.structure.element cimport AlgebraElement, Element, ModuleElement, RingElement 4 | 5 | cdef class WrapperParent_model0(Parent): 6 | cdef Parent R 7 | 8 | cdef class WrapperParent_model1(Parent): 9 | cdef Parent R 10 | 11 | cdef class WrapperElement(AlgebraElement): 12 | cdef Element val 13 | -------------------------------------------------------------------------------- /src/doc/en/reference/combinat/ncsf_qsym.rst: -------------------------------------------------------------------------------- 1 | Non-Commutative Symmetric Functions and Quasi-Symmetric Functions 2 | ================================================================= 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | ../sage/combinat/ncsf_qsym/tutorial 8 | ../sage/combinat/ncsf_qsym/combinatorics 9 | ../sage/combinat/ncsf_qsym/generic_basis_code 10 | ../sage/combinat/ncsf_qsym/ncsf 11 | ../sage/combinat/ncsf_qsym/qsym 12 | -------------------------------------------------------------------------------- /src/doc/en/reference/combinat/designs.rst: -------------------------------------------------------------------------------- 1 | Designs and Incidence Structures 2 | ================================ 3 | 4 | .. toctree:: 5 | :maxdepth: 1 6 | 7 | ../sage/combinat/designs/block_design 8 | ../sage/combinat/designs/covering_design 9 | ../sage/combinat/designs/ext_rep 10 | ../sage/combinat/designs/incidence_structures 11 | ../sage/combinat/designs/steiner_quadruple_systems 12 | ../sage/combinat/designs/design_catalog 13 | 14 | -------------------------------------------------------------------------------- /src/sage/matrix/matrix_rational_sparse.pxd: -------------------------------------------------------------------------------- 1 | include 'sage/ext/cdefs.pxi' 2 | include 'sage/modules/vector_rational_sparse_h.pxi' 3 | 4 | cimport matrix_sparse 5 | 6 | cdef class Matrix_rational_sparse(matrix_sparse.Matrix_sparse): 7 | cdef mpq_vector* _matrix 8 | cdef int _initialized 9 | 10 | cdef int mpz_denom(self, mpz_t d) except -1 11 | cdef int mpz_height(self, mpz_t height) except -1 12 | 13 | cdef _dealloc(self) 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/sage/groups/libgap_wrapper.pxd: -------------------------------------------------------------------------------- 1 | from sage.structure.element cimport MultiplicativeGroupElement, MonoidElement 2 | from sage.libs.gap.element cimport GapElement 3 | 4 | 5 | cdef class ElementLibGAP(MultiplicativeGroupElement): 6 | cdef GapElement _libgap 7 | cpdef GapElement gap(self) 8 | cpdef MonoidElement _mul_(left, MonoidElement right) 9 | cpdef MultiplicativeGroupElement _div_(self, MultiplicativeGroupElement right) 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/sage/homology/all.py: -------------------------------------------------------------------------------- 1 | from chain_complex import ChainComplex 2 | 3 | from chain_complex_morphism import ChainComplexMorphism 4 | 5 | from simplicial_complex import SimplicialComplex, Simplex 6 | 7 | from simplicial_complex_morphism import SimplicialComplexMorphism 8 | 9 | from examples import simplicial_complexes 10 | 11 | from delta_complex import DeltaComplex, delta_complexes 12 | 13 | from cubical_complex import CubicalComplex, cubical_complexes 14 | -------------------------------------------------------------------------------- /src/sage/misc/refcount.pyx: -------------------------------------------------------------------------------- 1 | cdef extern from *: 2 | ctypedef struct PyObject: 3 | Py_ssize_t ob_refcnt 4 | 5 | def ref_count(o): 6 | """ 7 | Return the number of references to \code{o}. 8 | 9 | EXAMPLES: 10 | sage: from sage.misc.refcount import ref_count 11 | sage: ref_count(33) 12 | 1 13 | sage: L = [-7] * 5 14 | sage: ref_count(L[0]) 15 | 6 16 | """ 17 | return (o).ob_refcnt 18 | -------------------------------------------------------------------------------- /src/bin/sage-eval: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import sys 4 | from sage.all import * 5 | from sage.calculus.predefined import x 6 | from sage.misc.preparser import preparse 7 | 8 | if len(sys.argv) > 1: 9 | s = preparse(" ".join(sys.argv[1:])) 10 | if s.startswith('load') or s.startswith('attach'): 11 | os.system('sage "' + os.path.join(os.getcwd(), s.split(None, 1)[1]) + '"') 12 | else: 13 | eval(compile(s,'','exec')) 14 | 15 | -------------------------------------------------------------------------------- /src/doc/en/reference/coding/index.rst: -------------------------------------------------------------------------------- 1 | Coding Theory 2 | ============= 3 | 4 | .. toctree:: 5 | :maxdepth: 1 6 | 7 | sage/coding/codes_catalog 8 | sage/coding/linear_code 9 | sage/coding/code_constructions 10 | sage/coding/guava 11 | sage/coding/sd_codes 12 | sage/coding/code_bounds 13 | sage/coding/codecan/autgroup_can_label 14 | sage/coding/delsarte_bounds 15 | sage/coding/source_coding/huffman 16 | 17 | .. include:: ../footer.txt 18 | -------------------------------------------------------------------------------- /src/ext/pari/dokchitser/testall: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | echo "\\r ex-bsw" | sage -gp 3 | echo "\\r ex-chgen" | sage -gp 4 | echo "\\r ex-chqua" | sage -gp 5 | echo "\\r ex-delta" | sage -gp 6 | echo "\\r ex-eisen" | sage -gp 7 | echo "\\r ex-gen2" | sage -gp 8 | echo "\\r ex-gen3" | sage -gp 9 | echo "\\r ex-gen4" | sage -gp 10 | echo "\\r ex-nf" | sage -gp 11 | echo "\\r ex-shin" | sage -gp 12 | echo "\\r ex-zeta" | sage -gp 13 | echo "\\r ex-zeta2" | sage -gp 14 | -------------------------------------------------------------------------------- /src/sage/libs/ntl/ntl_ZZ_pContext.pxd: -------------------------------------------------------------------------------- 1 | include "decl.pxi" 2 | include "sage/ext/cdefs.pxi" 3 | 4 | from sage.libs.ntl.ntl_ZZ cimport ntl_ZZ 5 | 6 | cdef class ntl_ZZ_pContext_class: 7 | cdef ZZ_pContext_c x 8 | cdef void restore_c(self) 9 | cdef ntl_ZZ p 10 | cdef double p_bits 11 | cdef object __weakref__ 12 | 13 | cdef class ntl_ZZ_pContext_factory: 14 | cdef object context_dict 15 | cdef ntl_ZZ_pContext_class make_c(self, ntl_ZZ v) 16 | -------------------------------------------------------------------------------- /src/sage/rings/power_series_ring_element.pxd: -------------------------------------------------------------------------------- 1 | from sage.structure.element cimport AlgebraElement, RingElement 2 | 3 | cdef class PowerSeries(AlgebraElement): 4 | cdef char __is_gen 5 | cdef _prec 6 | cdef common_prec_c(self, PowerSeries other) 7 | #_prec(self, RingElement right_r) 8 | 9 | # UNSAFE, only call from an inplace operator 10 | # may return a new element if not possible to modify inplace 11 | cdef _inplace_truncate(self, long prec) -------------------------------------------------------------------------------- /src/sage/schemes/hyperelliptic_curves/hypellfrob/README: -------------------------------------------------------------------------------- 1 | This directory contains the main source files for hypellfrob 2 | version 2.1.1, by David Harvey. 3 | 4 | hypellfrob is also maintained as a separate project, see 5 | http://cims.nyu.edu/~harvey/hypellfrob/ 6 | 7 | At that web site you'll find a standalone demo program and 8 | a test suite. 9 | 10 | hypellfrob 2.1.1 is Copyright (C) 2007, 2008 David Harvey and is 11 | licensed under the GPL (version 2 or later). 12 | -------------------------------------------------------------------------------- /src/doc/en/bordeaux_2008/birds_eye_view.rst: -------------------------------------------------------------------------------- 1 | A Bird's Eye View 2 | ================= 3 | 4 | We now take a whirlwind tour of some of the number theoretical 5 | functionality of Sage. There is much that we won't cover here, but 6 | this should help give you a flavor for some of the number theoretic 7 | capabilities of Sage, much of which is unique to Sage. 8 | 9 | .. toctree:: 10 | :maxdepth: 2 11 | 12 | integer_factorization 13 | elliptic_curves 14 | birds_other -------------------------------------------------------------------------------- /src/doc/en/reference/dynamics/interval_exchanges.rst: -------------------------------------------------------------------------------- 1 | Interval exchange transformations and linear involutions 2 | ======================================================== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | ../sage/dynamics/interval_exchanges/constructors 8 | ../sage/dynamics/interval_exchanges/labelled 9 | ../sage/dynamics/interval_exchanges/reduced 10 | ../sage/dynamics/interval_exchanges/template 11 | ../sage/dynamics/interval_exchanges/iet 12 | -------------------------------------------------------------------------------- /src/doc/en/reference/power_series/index.rst: -------------------------------------------------------------------------------- 1 | Power Series Rings 2 | ================== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | sage/rings/power_series_ring 8 | sage/rings/power_series_ring_element 9 | sage/rings/power_series_poly 10 | 11 | sage/rings/multi_power_series_ring 12 | sage/rings/multi_power_series_ring_element 13 | 14 | sage/rings/laurent_series_ring 15 | sage/rings/laurent_series_ring_element 16 | 17 | .. include:: ../footer.txt 18 | -------------------------------------------------------------------------------- /src/sage/quadratic_forms/genera/all.py: -------------------------------------------------------------------------------- 1 | #***************************************************************************** 2 | # Copyright (C) 2007 David Kohel 3 | # 4 | # Distributed under the terms of the GNU General Public License (GPL) 5 | # 6 | # http://www.gnu.org/licenses/ 7 | #***************************************************************************** 8 | 9 | from genus import Genus, LocalGenusSymbol, is_GlobalGenus 10 | -------------------------------------------------------------------------------- /src/sage/rings/padics/all.py: -------------------------------------------------------------------------------- 1 | from generic_nodes import is_pAdicField, is_pAdicRing 2 | from factory import Zp, Zq, Zp as pAdicRing, ZpCR, ZpCA, ZpFM, ZqCR, ZqCA, ZqFM #, ZpL, ZqL 3 | from factory import Qp, Qq, Qp as pAdicField, QpCR, QqCR #, QpL, QqL 4 | from factory import pAdicExtension 5 | from padic_generic import local_print_mode 6 | from pow_computer import PowComputer 7 | from pow_computer_ext import PowComputer_ext_maker 8 | from discrete_value_group import DiscreteValueGroup 9 | -------------------------------------------------------------------------------- /src/sage/schemes/hyperelliptic_curves/all.py: -------------------------------------------------------------------------------- 1 | from constructor import HyperellipticCurve 2 | from hyperelliptic_generic import is_HyperellipticCurve 3 | from kummer_surface import KummerSurface 4 | from invariants import (igusa_clebsch_invariants, 5 | absolute_igusa_invariants_kohel, 6 | absolute_igusa_invariants_wamelen, 7 | clebsch_invariants) 8 | from mestre import (Mestre_conic, HyperellipticCurve_from_invariants) 9 | -------------------------------------------------------------------------------- /src/doc/en/reference/function_fields/index.rst: -------------------------------------------------------------------------------- 1 | Algebraic Function Fields 2 | ========================= 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | sage/rings/function_field/function_field 8 | sage/rings/function_field/function_field_element 9 | sage/rings/function_field/function_field_order 10 | sage/rings/function_field/function_field_ideal 11 | sage/rings/function_field/maps 12 | sage/rings/function_field/constructor 13 | 14 | .. include:: ../footer.txt 15 | -------------------------------------------------------------------------------- /src/mac-app/English.lproj/Credits.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | The Sage project was begun by William Stein and is possible thanks to 4 | the work of many 5 | people 6 | and many open 7 | source projects. Please see 8 | the acknowledgement 9 | page for a list of those who have contributed monetarily. 10 | 11 | -------------------------------------------------------------------------------- /src/Makefile: -------------------------------------------------------------------------------- 1 | clean: 2 | @echo "Deleting Sage library build artifacts..." 3 | rm -f c_lib/.sconsign.dblite 4 | find c_lib -name '*.os' | xargs rm -f 5 | find c_lib -name '*.so' | xargs rm -f 6 | rm -rf build 7 | find . -name '*.pyc' | xargs rm -f 8 | find . -name '*.pyx' | sed 's/pyx$$/c/' | xargs rm -f 9 | find . -name '*.pyx' | sed 's/pyx$$/cpp/' | xargs rm -f 10 | rm -rf sage/modular/arithgroup/farey_symbol.h 11 | rm -rf sage/rings/real_mpfi.h 12 | rm -rf sage/symbolic/pynac.h 13 | -------------------------------------------------------------------------------- /src/c_lib/include/mpz_pylong.h: -------------------------------------------------------------------------------- 1 | #ifndef MPZ_PYLONG_H 2 | #define MPZ_PYLONG_H 3 | 4 | #include 5 | #include 6 | 7 | /* mpz -> pylong conversion */ 8 | PyObject * mpz_get_pylong(mpz_srcptr z); 9 | 10 | /* mpz -> pyint/pylong conversion */ 11 | PyObject * mpz_get_pyintlong(mpz_srcptr z); 12 | 13 | /* pylong -> mpz conversion */ 14 | int mpz_set_pylong(mpz_ptr z, PyObject * ll); 15 | 16 | /* mpz python hash */ 17 | long mpz_pythonhash (mpz_srcptr z); 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /src/ext/singular/sage.lib: -------------------------------------------------------------------------------- 1 | // Singular-library. 2 | // AUHTOR: Martin Albrecht 3 | 4 | info = "efficient format to talk to SAGE"; 5 | category="Utilities"; 6 | 7 | proc sage_poly(poly f) 8 | { 9 | poly g = f; 10 | list ret; 11 | int i = 1; 12 | 13 | //ret[1] = list(leadexp(1),0); //make sure to handle 0 14 | 15 | for(i=1; g!=0 ; i=i+1) { 16 | ret[i]=list(leadexp(g),leadcoef(g)); 17 | g = g - lead(g); 18 | } 19 | return(ret); 20 | } 21 | -------------------------------------------------------------------------------- /src/sage/gsl/callback.pyx: -------------------------------------------------------------------------------- 1 | include 'sage/ext/cdefs.pxi' 2 | include 'sage/ext/interrupt.pxi' 3 | 4 | include 'gsl.pxi' 5 | 6 | 7 | foo = None 8 | cdef double f(double x, void* p): 9 | return foo(x) 10 | 11 | def diff(g, double x=1.0): 12 | cdef double result, abserr 13 | cdef gsl_function F 14 | 15 | global foo 16 | foo = g 17 | F.function = f 18 | F.params = NULL 19 | 20 | gsl_diff_central(&F, x, &result, &abserr) 21 | 22 | return result, abserr 23 | -------------------------------------------------------------------------------- /src/sage/matrix/matrix_double_dense.pxd: -------------------------------------------------------------------------------- 1 | cimport matrix_dense 2 | cimport numpy as cnumpy 3 | 4 | cdef class Matrix_double_dense(matrix_dense.Matrix_dense): 5 | cdef object _numpy_dtype 6 | # cdef cnumpy.NPY_TYPES _numpy_dtypeint 7 | cdef int _numpy_dtypeint 8 | cdef object _python_dtype 9 | cdef object _sage_dtype 10 | cdef object _sage_vector_dtype 11 | cdef Matrix_double_dense _new(self, int nrows=*, int ncols=*) 12 | cdef cnumpy.ndarray _matrix_numpy 13 | -------------------------------------------------------------------------------- /src/sage/rings/padics/common_conversion.pxd: -------------------------------------------------------------------------------- 1 | 2 | from sage.rings.integer cimport Integer 3 | from sage.rings.padics.pow_computer cimport PowComputer_class 4 | 5 | cdef long get_ordp(x, PowComputer_class prime_pow) except? -10000 6 | cdef long get_preccap(x, PowComputer_class prime_pow) except? -10000 7 | cdef long comb_prec(iprec, long prec) except? -10000 8 | cdef int _process_args_and_kwds(long *aprec, long *rprec, args, kwds, bint absolute, PowComputer_class prime_pow) except -1 9 | 10 | -------------------------------------------------------------------------------- /src/doc/en/thematic_tutorials/toctree.rst: -------------------------------------------------------------------------------- 1 | =============================== 2 | Thematic tutorial document tree 3 | =============================== 4 | 5 | .. toctree:: 6 | :maxdepth: 2 7 | 8 | tutorial-notebook-and-help-long 9 | sandpile 10 | group_theory 11 | lie 12 | linear_programming 13 | numtheory_rsa 14 | tutorial-programming-python 15 | tutorial-comprehensions 16 | tutorial-objects-and-classes 17 | functional_programming 18 | coercion_and_categories 19 | -------------------------------------------------------------------------------- /src/sage/libs/flint/ntl_interface.pxd: -------------------------------------------------------------------------------- 1 | include "fmpz.pxi" 2 | 3 | from sage.libs.flint.fmpz_poly cimport fmpz_poly_t 4 | from sage.libs.ntl.ntl_ZZ_decl cimport ZZ_c 5 | from sage.libs.ntl.ntl_ZZX_decl cimport ZZX_c 6 | 7 | cdef extern from "flint/NTL-interface.h": 8 | void fmpz_poly_get_ZZX(ZZX_c output, fmpz_poly_t poly) 9 | void fmpz_poly_set_ZZX(fmpz_poly_t output, ZZX_c poly) 10 | 11 | void fmpz_get_ZZ(ZZ_c output, fmpz_t f) 12 | void fmpz_set_ZZ(fmpz_t output, ZZ_c z) 13 | -------------------------------------------------------------------------------- /src/sage/rings/polynomial/multi_polynomial_ring_generic.pxd: -------------------------------------------------------------------------------- 1 | import sage.rings.ring 2 | cimport sage.rings.ring 3 | 4 | from sage.structure.parent cimport Parent 5 | 6 | cdef class MPolynomialRing_generic(sage.rings.ring.CommutativeRing): 7 | cdef object __ngens 8 | cdef object __term_order 9 | cdef public object _has_singular 10 | cdef public object _magma_gens, _magma_cache 11 | 12 | cdef _coerce_c_impl(self, x) 13 | cdef int _cmp_c_impl(left, Parent right) except -2 14 | -------------------------------------------------------------------------------- /src/sage/modular/congroup_element.py: -------------------------------------------------------------------------------- 1 | ########################################################### 2 | # Re-bindings for unpickling 3 | # 4 | # We want to ensure class 5 | # sage.modular.congroup_element.CongruenceSubgroupElement still exists, so we 6 | # can unpickle safely. 7 | # 8 | ########################################################### 9 | 10 | from sage.modular.arithgroup.arithgroup_element import ArithmeticSubgroupElement 11 | 12 | CongruenceSubgroupElement = ArithmeticSubgroupElement 13 | -------------------------------------------------------------------------------- /src/sage/doctest/tests/show_skipped.rst: -------------------------------------------------------------------------------- 1 | We test that optional tests are run correctly and the 2 | ``--show-skipped`` option displays the correctly. 3 | We also test case insensitivity:: 4 | 5 | sage: 2 + 3 6 | 5 7 | sage: 1 + 1 # Optional --- Gap 8 | 2 9 | sage: 1 - 1 # Known Bug 10 | 17 11 | sage: 4 / 2 # Long Time 12 | 2 13 | sage: 1 - 2 # Optional - Bug 14 | 16 15 | sage: 8 + 1 # Optional 16 | 9 17 | sage: 1 / 0 # Not Tested 18 | I'm on fire! 19 | -------------------------------------------------------------------------------- /src/sage/groups/semimonomial_transformations/semimonomial_transformation.pxd: -------------------------------------------------------------------------------- 1 | from sage.structure.element cimport Element, MonoidElement, MultiplicativeGroupElement 2 | from sage.rings.finite_rings.integer_mod cimport IntegerMod_int 3 | 4 | cdef class SemimonomialTransformation(MultiplicativeGroupElement): 5 | cdef tuple v 6 | cdef object perm, alpha 7 | 8 | cpdef MonoidElement _mul_(left, MonoidElement _right) 9 | cdef int _cmp_c_impl(left, Element _right) except -2 10 | cdef _new_c(self) -------------------------------------------------------------------------------- /src/sage/misc/lazy_list.pxd: -------------------------------------------------------------------------------- 1 | from cpython.object cimport * 2 | 3 | cdef class lazy_list(object): 4 | cdef object iterator 5 | cdef list cache 6 | cdef Py_ssize_t start, stop, step 7 | 8 | cdef int update_cache_up_to(self, Py_ssize_t i) except -1 9 | 10 | cdef class lazy_list_iterator(object): 11 | cdef lazy_list l 12 | cdef Py_ssize_t pos, step 13 | 14 | cdef class stopped_lazy_list_iterator(object): 15 | cdef lazy_list l 16 | cdef Py_ssize_t pos, step, stop 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/bin/sage-pypkg-location: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | from __future__ import print_function 3 | from pkg_resources import Requirement, working_set 4 | import sys 5 | 6 | if __name__ == "__main__": 7 | help_message = """ 8 | Usage: {0} 9 | """.format(sys.argv[0]) 10 | if len(sys.argv) < 2: 11 | print(help_message) 12 | exit(1) 13 | else: 14 | location = working_set.find(Requirement.parse(sys.argv[1])).location 15 | print(location) 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/doc/en/reference/monoids/index.rst: -------------------------------------------------------------------------------- 1 | Monoids 2 | ======= 3 | 4 | Sage supports free monoids and free abelian monoids in any 5 | finite number of indeterminates. 6 | 7 | .. toctree:: 8 | :maxdepth: 2 9 | 10 | sage/monoids/monoid 11 | sage/monoids/free_monoid 12 | sage/monoids/free_monoid_element 13 | sage/monoids/free_abelian_monoid 14 | sage/monoids/free_abelian_monoid_element 15 | sage/monoids/string_monoid_element 16 | sage/monoids/string_monoid 17 | 18 | .. include:: ../footer.txt 19 | -------------------------------------------------------------------------------- /src/sage/numerical/backends/ppl_backend.pxd: -------------------------------------------------------------------------------- 1 | ############################################################################## 2 | # Copyright (C) 2010 Nathann Cohen 3 | # Distributed under the terms of the GNU General Public License (GPL) 4 | # The full text of the GPL is available at: 5 | # http://www.gnu.org/licenses/ 6 | ############################################################################## 7 | 8 | from sage.numerical.backends.generic_backend cimport GenericBackend 9 | -------------------------------------------------------------------------------- /src/doc/common/update-python-inv.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # The file python-inv.txt contains the database of Sphinx hyperlink targets 3 | # used by the intersphinx extension. See 4 | # http://sphinx.pocoo.org/latest/ext/intersphinx.html 5 | # To be able to compile Sage without accessing the net, we use a local copy of 6 | # this database. Here is how to update it: 7 | 8 | rm -f python-inv.txt 9 | wget http://docs.python.org/release/`sage -python --version 2>&1| cut -d " " --fields=2`/objects.inv -O - > python.inv 10 | -------------------------------------------------------------------------------- /src/sage/gsl/gsl_debye.pxi: -------------------------------------------------------------------------------- 1 | cdef extern from "gsl/gsl_sf_debye.h": 2 | 3 | double gsl_sf_debye_1(double x) 4 | 5 | int gsl_sf_debye_1_e(double x, gsl_sf_result * result) 6 | 7 | double gsl_sf_debye_2(double x) 8 | 9 | int gsl_sf_debye_2_e(double x, gsl_sf_result * result) 10 | 11 | double gsl_sf_debye_3(double x) 12 | 13 | int gsl_sf_debye_3_e(double x, gsl_sf_result * result) 14 | 15 | double gsl_sf_debye_4(double x) 16 | 17 | int gsl_sf_debye_4_e(double x, gsl_sf_result * result) 18 | 19 | -------------------------------------------------------------------------------- /src/sage/modular/abvar/all.py: -------------------------------------------------------------------------------- 1 | ########################################################################### 2 | # Copyright (C) 2007 William Stein # 3 | # Distributed under the terms of the GNU General Public License (GPL) # 4 | # http://www.gnu.org/licenses/ # 5 | ########################################################################### 6 | 7 | from constructor import J0, J1, JH, AbelianVariety 8 | from abvar import is_ModularAbelianVariety 9 | -------------------------------------------------------------------------------- /src/sage/rings/complex_number.pxd: -------------------------------------------------------------------------------- 1 | include 'sage/ext/cdefs.pxi' 2 | 3 | from sage.libs.mpfr cimport * 4 | 5 | cimport sage.structure.element 6 | cimport real_mpfr 7 | 8 | cdef class ComplexNumber(sage.structure.element.FieldElement): 9 | cdef mpfr_t __re 10 | cdef mpfr_t __im 11 | cdef object _multiplicative_order 12 | cdef int _prec 13 | 14 | cdef real_mpfr.RealNumber abs_c(ComplexNumber self) 15 | cdef real_mpfr.RealNumber norm_c(ComplexNumber self) 16 | 17 | cdef ComplexNumber _new(self) 18 | -------------------------------------------------------------------------------- /src/sage/groups/affine_gps/catalog.py: -------------------------------------------------------------------------------- 1 | r""" 2 | Type ``groups.affine.`` to access examples 3 | of groups implemented as affine groups. 4 | """ 5 | 6 | # groups imported here will be available 7 | # via groups.affine. 8 | # 9 | # Do not use this file for code 10 | # 11 | # If you import a new group, then add an 12 | # entry to the list in the module-level 13 | # docstring of groups/groups_catalog.py 14 | 15 | from affine_group import AffineGroup as Affine 16 | from euclidean_group import EuclideanGroup as Euclidean 17 | -------------------------------------------------------------------------------- /src/sage/matrix/action.pxd: -------------------------------------------------------------------------------- 1 | from sage.structure.element cimport Element, Matrix, Vector 2 | from sage.structure.parent_base cimport ParentWithBase 3 | from sage.categories.action cimport Action 4 | 5 | cdef class MatrixMulAction(Action): 6 | cdef ParentWithBase _codomain 7 | cdef bint fix_sparseness 8 | 9 | cdef class MatrixMatrixAction(MatrixMulAction): 10 | pass 11 | 12 | cdef class MatrixVectorAction(MatrixMulAction): 13 | pass 14 | 15 | cdef class VectorMatrixAction(MatrixMulAction): 16 | pass 17 | 18 | -------------------------------------------------------------------------------- /src/sage/matroids/circuit_closures_matroid.pxd: -------------------------------------------------------------------------------- 1 | from matroid cimport Matroid 2 | 3 | cdef class CircuitClosuresMatroid(Matroid): 4 | cdef frozenset _groundset # _E 5 | cdef dict _circuit_closures # _CC 6 | cdef int _matroid_rank # _R 7 | cpdef groundset(self) 8 | cpdef _rank(self, X) 9 | cpdef full_rank(self) 10 | cpdef _is_independent(self, F) 11 | cpdef _max_independent(self, F) 12 | cpdef _circuit(self, F) 13 | cpdef circuit_closures(self) 14 | cpdef _is_isomorphic(self, other) 15 | -------------------------------------------------------------------------------- /src/doc/en/reference/todolist.rst: -------------------------------------------------------------------------------- 1 | .. _ch:todolist: 2 | 3 | SAGE's To Do list 4 | ================= 5 | 6 | There is still some work to do :-) : 7 | 8 | .. warning:: 9 | 10 | This list is currently very incomplete as most doctests do not use the 11 | ``.. todo::`` markup. 12 | 13 | .. todo:: 14 | 15 | Rewrite the hand-written TODOs by using the correct ``.. todo::`` 16 | markup. 17 | 18 | The combined to do list is only available in the html version of the reference manual. 19 | 20 | .. todolist:: 21 | -------------------------------------------------------------------------------- /src/sage/plot/plot3d/help.pyx: -------------------------------------------------------------------------------- 1 | """ 2 | 3d Plotting Using Java3d 3 | 4 | 5 | IMPORTANT NOTE ON LINUX -- This may help if you're having trouble with java3d: 6 | From https://java3d.dev.java.net/binary-builds.html 7 | 8 | In order to get Java3d working with sage in your browser, you have may 9 | have to install the Java3d extension that can be found on "https:// 10 | java3d.dev.java.net/binary-builds.html". Follow the instructions in 11 | the README posted there to install the Java3d extension in your local 12 | java installation. 13 | """ -------------------------------------------------------------------------------- /src/sage/symbolic/all.py: -------------------------------------------------------------------------------- 1 | from pynac import I 2 | i = I 3 | from ring import SR 4 | from constants import (pi, e, NaN, golden_ratio, log2, euler_gamma, catalan, 5 | khinchin, twinprime, mertens, glaisher, brun) 6 | from expression import Expression 7 | from callable import is_CallableSymbolicExpressionRing, CallableSymbolicExpressionRing 8 | 9 | from sage.symbolic.relation import solve, solve_mod, solve_ineq 10 | from sage.symbolic.assumptions import assume, forget, assumptions 11 | 12 | from units import units 13 | -------------------------------------------------------------------------------- /src/sage/libs/ntl/ntl_ZZ_pX.pxd: -------------------------------------------------------------------------------- 1 | include "sage/ext/cdefs.pxi" 2 | 3 | from ntl_ZZ_pX_decl cimport *, ZZ_pX_c, ZZ_pX_Modulus_c 4 | from sage.libs.ntl.ntl_ZZ_pContext cimport ntl_ZZ_pContext_class 5 | 6 | cdef class ntl_ZZ_pX: 7 | cdef ZZ_pX_c x 8 | cdef ntl_ZZ_pContext_class c 9 | cdef void setitem_from_int(ntl_ZZ_pX self, long i, int value) 10 | cdef int getitem_as_int(ntl_ZZ_pX self, long i) 11 | cdef ntl_ZZ_pX _new(self) 12 | 13 | cdef class ntl_ZZ_pX_Modulus: 14 | cdef ZZ_pX_Modulus_c x 15 | cdef ntl_ZZ_pX poly 16 | -------------------------------------------------------------------------------- /src/ext/singular/rrbasis.lib: -------------------------------------------------------------------------------- 1 | LIB "brnoeth.lib"; 2 | kill X, X2,R,G,LG; 3 | ring R=11,(x,y),lp; 4 | list X = Adj_div(x^7 + y^7 - 1); 5 | def X2 = NSplaces(1,X); 6 | def X3 = extcurve(1,X2); 7 | def RR =X3[1][5]; 8 | setring RR; 9 | print("POINTS"); 10 | print(POINTS); 11 | /* PROBLEM -- this G defined a different divisor every time the 12 | this code is run!!! Need a way to compute G from a list of points */ 13 | intvec G=(10,-1,0,0,9,0,0,0,0,0,0,0,0,0); 14 | def R = X2[1][2]; 15 | setring R; 16 | list LG = BrillNoether(G,X2); 17 | print(LG); 18 | -------------------------------------------------------------------------------- /src/sage/numerical/all.py: -------------------------------------------------------------------------------- 1 | from optimize import (find_fit, 2 | find_local_maximum, 3 | find_local_minimum, 4 | find_maximum_on_interval, 5 | find_minimum_on_interval, 6 | find_root, 7 | linear_program, 8 | minimize, 9 | minimize_constrained) 10 | from sage.numerical.mip import MixedIntegerLinearProgram 11 | from sage.numerical.backends.generic_backend import default_mip_solver 12 | -------------------------------------------------------------------------------- /src/doc/en/reference/combinat/words.rst: -------------------------------------------------------------------------------- 1 | Words 2 | ===== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | ../sage/combinat/words/alphabet 8 | ../sage/combinat/words/abstract_word 9 | ../sage/combinat/words/finite_word 10 | ../sage/combinat/words/infinite_word 11 | ../sage/combinat/words/word 12 | ../sage/combinat/words/word_generators 13 | ../sage/combinat/words/words 14 | ../sage/combinat/words/shuffle_product 15 | ../sage/combinat/words/suffix_trees 16 | ../sage/combinat/words/morphism 17 | ../sage/combinat/words/paths 18 | -------------------------------------------------------------------------------- /src/doc/en/reference/polynomial_rings/index.rst: -------------------------------------------------------------------------------- 1 | Polynomial Rings 2 | ================ 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | sage/rings/polynomial/polynomial_ring_constructor 8 | 9 | polynomial_rings_univar 10 | 11 | polynomial_rings_multivar 12 | 13 | polynomial_rings_infinite 14 | 15 | polynomial_rings_laurent 16 | 17 | sage/rings/polynomial/pbori 18 | 19 | polynomial_rings_toy_implementations 20 | 21 | sage/rings/polynomial/convolution 22 | sage/rings/polynomial/cyclotomic 23 | 24 | .. include:: ../footer.txt 25 | -------------------------------------------------------------------------------- /src/sage/gsl/gsl_transport.pxi: -------------------------------------------------------------------------------- 1 | cdef extern from "gsl/gsl_sf_transport.h": 2 | 3 | double gsl_sf_transport_2(double x) 4 | 5 | int gsl_sf_transport_2_e(double x, gsl_sf_result * result) 6 | 7 | double gsl_sf_transport_3(double x) 8 | 9 | int gsl_sf_transport_3_e(double x, gsl_sf_result * result) 10 | 11 | double gsl_sf_transport_4(double x) 12 | 13 | int gsl_sf_transport_4_e(double x, gsl_sf_result * result) 14 | 15 | double gsl_sf_transport_5(double x) 16 | 17 | int gsl_sf_transport_5_e(double x, gsl_sf_result * result) 18 | 19 | -------------------------------------------------------------------------------- /src/sage/rings/integer_ring_python.py: -------------------------------------------------------------------------------- 1 | def iterator(self): 2 | r""" 3 | Iterate over all integers: 0 1 -1 2 -2 3 -3 ... 4 | 5 | This is the iterator for the integer ring `\ZZ`. 6 | 7 | EXAMPLES:: 8 | 9 | sage: for n in ZZ: # indirect doctest 10 | ... if n < 3: print n 11 | ... else: break 12 | 0 13 | 1 14 | -1 15 | 2 16 | -2 17 | """ 18 | yield self(0) 19 | n = self(1) 20 | while True: 21 | yield n 22 | yield -n 23 | n += 1 24 | 25 | -------------------------------------------------------------------------------- /src/sage/geometry/triangulation/functions.cc: -------------------------------------------------------------------------------- 1 | #include "functions.h" 2 | 3 | // ------- auxiliary functions ---------------------------- 4 | int factorial(int n) 5 | { 6 | int result=1; 7 | for (int i=1; i<=n; i++) 8 | result*=i; 9 | return(result); 10 | } 11 | 12 | 13 | // binomial works only well for "normal" values 14 | int binomial(int n, int D) 15 | { 16 | int d=D; 17 | if (d>n/2) d=n-d; 18 | int result=1; 19 | for (int i=0; i