A computer algebra system written in pure Python
10626 matches across 16 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | conftest.py | 3 | |
| LOW | conftest.py | 3 | |
| LOW | conftest.py | 3 | |
| LOW | isympy.py | 316 | |
| LOW | sympy/conftest.py | 1 | |
| LOW | sympy/release.py | 1 | |
| LOW | sympy/this.py | 4 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| LOW | sympy/__init__.py | 56 | |
| 5075 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | sympy/conftest.py | 76 | def pytest_collection_modifyitems(config, items): |
| LOW | sympy/series/tests/test_sequences.py | 294 | def test_find_linear_recurrence(): |
| LOW | sympy/series/tests/test_limits.py | 211 | def test_floor_requires_robust_assumptions(): |
| LOW | sympy/series/tests/test_limits.py | 241 | def test_ceiling_requires_robust_assumptions(): |
| LOW | sympy/series/tests/test_limits.py | 373 | def test_bessel_functions_at_infinity(): |
| LOW | sympy/series/tests/test_order.py | 326 | def test_order_conjugate_transpose(): |
| LOW | sympy/series/tests/test_order.py | 339 | def test_order_noncommutative(): |
| LOW | sympy/series/tests/test_order.py | 397 | def test_mixing_order_at_zero_and_infinity(): |
| LOW | sympy/series/tests/test_order.py | 441 | def test_order_failing_due_to_solveset(): |
| LOW | sympy/series/tests/test_order.py | 459 | def test_performance_of_adding_order(): |
| LOW | sympy/series/tests/test_formal.py | 81 | def test_rational_independent(): |
| LOW | sympy/series/tests/test_formal.py | 389 | def test_fps__logarithmic_singularity(): |
| LOW | sympy/series/tests/test_formal.py | 398 | def test_fps__logarithmic_singularity_fail(): |
| LOW | sympy/series/tests/test_series.py | 204 | def test_exp_product_positive_factors(): |
| LOW | sympy/series/tests/test_gruntz.py | 98 | def test_gruntz_evaluation_slow(): |
| LOW | sympy/series/tests/test_gruntz.py | 129 | def test_gruntz_eval_special_slow(): |
| LOW | sympy/series/tests/test_gruntz.py | 137 | def test_grunts_eval_special_slow_sometimes_fail(): |
| LOW | sympy/series/tests/test_gruntz.py | 148 | def test_gruntz_eval_special_fail(): |
| LOW | sympy/series/tests/test_approximants.py | 30 | def test_pade_approximants_gcdex(): |
| LOW | sympy/series/tests/test_approximants.py | 65 | def test_pade_approximant_gcdex(): |
| LOW | sympy/crypto/crypto.py | 2452 | def lfsr_connection_polynomial(s): |
| LOW | sympy/crypto/tests/test_crypto.py | 74 | def test_encipher_substitution(): |
| LOW | sympy/crypto/tests/test_crypto.py | 229 | def test_mutltiprime_rsa_full_example(): |
| LOW | sympy/crypto/tests/test_crypto.py | 331 | def test_rsa_multiprime_exhanstive(): |
| LOW | sympy/crypto/tests/test_crypto.py | 352 | def test_rsa_multipower_exhanstive(): |
| LOW | sympy/crypto/tests/test_crypto.py | 431 | def test_lfsr_autocorrelation(): |
| LOW | sympy/crypto/tests/test_crypto.py | 439 | def test_lfsr_connection_polynomial(): |
| LOW | sympy/crypto/tests/test_crypto.py | 506 | def test_encipher_decipher_gm(): |
| LOW | sympy/crypto/tests/test_crypto.py | 536 | def test_encipher_decipher_bg(): |
| LOW | sympy/core/facts.py | 96 | def deduce_alpha_implications(implications): |
| LOW | sympy/core/facts.py | 136 | def apply_beta_to_alpha_route(alpha_implications, beta_rules): |
| LOW | sympy/core/add.py | 24 | def _could_extract_minus_sign(expr): |
| LOW | sympy/core/add.py | 614 | def _eval_is_rational_function(self, syms): |
| LOW | sympy/core/add.py | 764 | def _eval_is_extended_positive(self): |
| LOW | sympy/core/add.py | 816 | def _eval_is_extended_nonnegative(self): |
| LOW | sympy/core/add.py | 831 | def _eval_is_extended_nonpositive(self): |
| LOW | sympy/core/add.py | 846 | def _eval_is_extended_negative(self): |
| LOW | sympy/core/numbers.py | 1027 | def _eval_is_extended_negative(self): |
| LOW | sympy/core/numbers.py | 1034 | def _eval_is_extended_positive(self): |
| LOW | sympy/core/random.py | 105 | def test_derivative_numerically(f, z, tol=1.0e-6, a=2, b=-1, c=3, d=1): |
| LOW | sympy/core/mul.py | 1284 | def _eval_is_rational_function(self, syms): |
| LOW | sympy/core/mul.py | 1306 | def _eval_is_zero_infinite_helper(self): |
| LOW | sympy/core/mul.py | 1594 | def _eval_is_extended_positive(self): |
| LOW | sympy/core/mul.py | 1647 | def _eval_is_extended_negative(self): |
| LOW | sympy/core/basic.py | 156 | def _get_postprocessors_for_type(arg_type): |
| LOW | sympy/core/basic.py | 2122 | def _exec_constructor_postprocessors(cls, obj): |
| LOW | sympy/core/evalf.py | 1763 | def _evalf_with_bounded_error(x: Expr, eps: Expr | None = None, |
| LOW | sympy/core/power.py | 1318 | def _eval_is_rational_function(self, syms): |
| LOW | sympy/core/power.py | 404 | def _eval_is_extended_positive(self): |
| LOW | sympy/core/power.py | 433 | def _eval_is_extended_negative(self): |
| LOW | sympy/core/function.py | 1930 | def _get_zero_with_shape_like(cls, expr): |
| LOW | sympy/core/function.py | 1934 | def _dispatch_eval_derivative_n_times(cls, expr, v, count): |
| LOW | sympy/core/assumptions.py | 230 | def _load_pre_generated_assumption_rules() -> FactRules: |
| LOW | sympy/core/assumptions.py | 238 | def _generate_assumption_rules(): |
| LOW | sympy/core/assumptions.py | 623 | def _prepare_class_assumptions(cls): |
| LOW | sympy/core/expr.py | 911 | def _eval_is_extended_positive_negative(self, positive): |
| LOW | sympy/core/expr.py | 950 | def _eval_is_extended_positive(self): |
| LOW | sympy/core/expr.py | 953 | def _eval_is_extended_negative(self): |
| LOW | sympy/core/expr.py | 4016 | def _eval_derivative_matrix_lines(self, x): |
| LOW | sympy/core/expr.py | 4054 | def _eval_is_rational_function(self, syms): |
| 2551 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | sympy/core/add.py | 0 | efficiently extract the coefficient of a summation. |
| HIGH | sympy/core/numbers.py | 0 | efficiently extract the coefficient of a summation. |
| HIGH | sympy/core/numbers.py | 0 | efficiently extract the coefficient of a summation. |
| HIGH | sympy/core/expr.py | 0 | efficiently extract the coefficient of a summation. |
| HIGH | sympy/vector/basisdependent.py | 0 | efficiently extract the coefficient of a summation. |
| HIGH | sympy/core/relational.py | 0 | a boolean argument can only be used in eq and ne; all other relationals expect real expressions. |
| HIGH | sympy/logic/boolalg.py | 0 | a boolean argument can only be used in eq and ne; all other relationals expect real expressions. |
| HIGH | sympy/logic/boolalg.py | 0 | a boolean argument can only be used in eq and ne; all other relationals expect real expressions. |
| HIGH | sympy/core/basic.py | 0 | the expr_free_symbols property is deprecated. use free_symbols to get the free symbols of an expression. |
| HIGH | sympy/core/function.py | 0 | the expr_free_symbols property is deprecated. use free_symbols to get the free symbols of an expression. |
| HIGH | sympy/core/expr.py | 0 | the expr_free_symbols property is deprecated. use free_symbols to get the free symbols of an expression. |
| HIGH | sympy/core/expr.py | 0 | the expr_free_symbols property is deprecated. use free_symbols to get the free symbols of an expression. |
| HIGH | sympy/tensor/indexed.py | 0 | the expr_free_symbols property is deprecated. use free_symbols to get the free symbols of an expression. |
| HIGH | sympy/polys/polyclasses.py | 0 | convert ``f`` to a list representation with native coefficients. |
| HIGH | sympy/polys/polyclasses.py | 0 | convert ``f`` to a list representation with native coefficients. |
| HIGH | sympy/polys/polyclasses.py | 0 | convert ``f`` to a list representation with native coefficients. |
| HIGH | sympy/polys/polyclasses.py | 0 | convert ``f`` to a list representation with native coefficients. |
| HIGH | sympy/polys/polyclasses.py | 0 | returns all non-zero terms from ``f`` in lex order. |
| HIGH | sympy/polys/polyclasses.py | 0 | returns all non-zero terms from ``f`` in lex order. |
| HIGH | sympy/polys/polyclasses.py | 0 | returns all non-zero terms from ``f`` in lex order. |
| HIGH | sympy/polys/polyclasses.py | 0 | subtract an element of the ground domain from ``f``. |
| HIGH | sympy/polys/polyclasses.py | 0 | subtract an element of the ground domain from ``f``. |
| HIGH | sympy/polys/polyclasses.py | 0 | subtract an element of the ground domain from ``f``. |
| HIGH | sympy/polys/polyclasses.py | 0 | subtract an element of the ground domain from ``f``. |
| HIGH | sympy/polys/polyclasses.py | 0 | multiply ``f`` by a an element of the ground domain. |
| HIGH | sympy/polys/polyclasses.py | 0 | multiply ``f`` by a an element of the ground domain. |
| HIGH | sympy/polys/polyclasses.py | 0 | multiply ``f`` by a an element of the ground domain. |
| HIGH | sympy/polys/polyclasses.py | 0 | quotient of ``f`` by a an element of the ground domain. |
| HIGH | sympy/polys/polyclasses.py | 0 | quotient of ``f`` by a an element of the ground domain. |
| HIGH | sympy/polys/polyclasses.py | 0 | quotient of ``f`` by a an element of the ground domain. |
| HIGH | sympy/polys/polyclasses.py | 0 | subtract two multivariate polynomials ``f`` and ``g``. |
| HIGH | sympy/polys/polyclasses.py | 0 | subtract two multivariate polynomials ``f`` and ``g``. |
| HIGH | sympy/polys/polyclasses.py | 0 | subtract two multivariate polynomials ``f`` and ``g``. |
| HIGH | sympy/polys/polyclasses.py | 0 | multiply two multivariate polynomials ``f`` and ``g``. |
| HIGH | sympy/polys/polyclasses.py | 0 | multiply two multivariate polynomials ``f`` and ``g``. |
| HIGH | sympy/polys/polyclasses.py | 0 | multiply two multivariate polynomials ``f`` and ``g``. |
| HIGH | sympy/polys/polyclasses.py | 0 | polynomial exact pseudo-quotient of ``f`` and ``g``. |
| HIGH | sympy/polys/polyclasses.py | 0 | polynomial exact pseudo-quotient of ``f`` and ``g``. |
| HIGH | sympy/polys/polyclasses.py | 0 | polynomial exact pseudo-quotient of ``f`` and ``g``. |
| HIGH | sympy/polys/polyclasses.py | 0 | polynomial division with remainder of ``f`` and ``g``. |
| HIGH | sympy/polys/polyclasses.py | 0 | polynomial division with remainder of ``f`` and ``g``. |
| HIGH | sympy/polys/polyclasses.py | 0 | polynomial division with remainder of ``f`` and ``g``. |
| HIGH | sympy/polys/polyclasses.py | 0 | computes polynomial exact quotient of ``f`` and ``g``. |
| HIGH | sympy/polys/polyclasses.py | 0 | computes polynomial exact quotient of ``f`` and ``g``. |
| HIGH | sympy/polys/polyclasses.py | 0 | computes polynomial exact quotient of ``f`` and ``g``. |
| HIGH | sympy/polys/polyclasses.py | 0 | computes the ``m``-th order indefinite integral of ``f`` in ``x_j``. |
| HIGH | sympy/polys/polyclasses.py | 0 | computes the ``m``-th order indefinite integral of ``f`` in ``x_j``. |
| HIGH | sympy/polys/polyclasses.py | 0 | computes the ``m``-th order indefinite integral of ``f`` in ``x_j``. |
| HIGH | sympy/polys/polyclasses.py | 0 | computes subresultant prs sequence of ``f`` and ``g``. |
| HIGH | sympy/polys/polyclasses.py | 0 | computes subresultant prs sequence of ``f`` and ``g``. |
| HIGH | sympy/polys/polyclasses.py | 0 | computes subresultant prs sequence of ``f`` and ``g``. |
| HIGH | sympy/polys/polyclasses.py | 0 | returns gcd of ``f`` and ``g`` and their cofactors. |
| HIGH | sympy/polys/polyclasses.py | 0 | returns gcd of ``f`` and ``g`` and their cofactors. |
| HIGH | sympy/polys/polyclasses.py | 0 | returns gcd of ``f`` and ``g`` and their cofactors. |
| HIGH | sympy/polys/polyclasses.py | 0 | cancel common factors in a rational function ``f/g``. |
| HIGH | sympy/polys/polyclasses.py | 0 | cancel common factors in a rational function ``f/g``. |
| HIGH | sympy/polys/polyclasses.py | 0 | cancel common factors in a rational function ``f/g``. |
| HIGH | sympy/polys/polyclasses.py | 0 | cancel common factors in a rational function ``f/g``. |
| HIGH | sympy/polys/polyclasses.py | 0 | cancel common factors in a rational function ``f/g``. |
| HIGH | sympy/polys/polyclasses.py | 0 | computes functional composition of ``f`` and ``g``. |
| 261 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | sympy/core/relational.py | 393 | left, right = [i.equals(j, |
| HIGH | sympy/core/relational.py | 400 | lr, rl = [i.equals(j, failing_expression=failing_expression) |
| HIGH | sympy/core/relational.py | 417 | left = a.lhs.equals(b.lhs, |
| HIGH | sympy/core/relational.py | 421 | right = a.rhs.equals(b.rhs, |
| HIGH | sympy/core/relational.py | 446 | elif dif.equals(0): # XXX this is expensive |
| HIGH | sympy/core/evalf.py | 454 | if not re_im.equals(0): |
| HIGH | sympy/core/power.py | 1819 | bz = b.equals(0) |
| HIGH | sympy/core/power.py | 1829 | bz = b.equals(0) |
| HIGH | sympy/core/power.py | 1835 | return e.equals(0) |
| HIGH | sympy/core/power.py | 46 | | | | undefined, but is convenient in some contexts | |
| HIGH | sympy/core/expr.py | 737 | if b is not None and b is not S.NaN and b.equals(a) is False: |
| HIGH | sympy/core/expr.py | 741 | if b is not None and b is not S.NaN and b.equals(a) is False: |
| HIGH | sympy/core/expr.py | 746 | if b.equals(a) is False: |
| HIGH | sympy/core/expr.py | 373 | ok = self.equals(i) |
| HIGH | sympy/core/expr.py | 813 | fac_zero = [fac.equals(0) for fac in factors] |
| HIGH | sympy/core/expr.py | 3909 | if i.equals(0): |
| HIGH | sympy/core/expr.py | 3982 | if x.equals(0): |
| HIGH | sympy/core/tests/test_assumptions.py | 1053 | assert e.equals(0) is True |
| HIGH | sympy/core/tests/test_expr.py | 1938 | assert meter.equals(0) is False |
| HIGH | sympy/core/tests/test_expr.py | 1942 | assert eq.equals(0) |
| HIGH | sympy/core/tests/test_expr.py | 1951 | assert diff.equals(0) is None # should be False, but previously this was False due to wrong intermediate result |
| HIGH | sympy/core/tests/test_expr.py | 1961 | assert eq.equals(0) |
| HIGH | sympy/core/tests/test_expr.py | 1986 | assert z.equals(0) |
| HIGH | sympy/core/tests/test_expr.py | 2229 | assert f1.equals(f2) is None |
| HIGH | sympy/core/tests/test_expr.py | 2297 | assert x.equals(y) is False |
| HIGH | sympy/core/tests/test_sympify.py | 557 | assert all(set(i.values()) == {null} for i in ( |
| HIGH | sympy/polys/rootoftools.py | 749 | elif poly.length() == 2 and poly.TC(): |
| HIGH | sympy/polys/polyroots.py | 1018 | if f.length() == 2 and n > 2: |
| HIGH | sympy/polys/polyroots.py | 1085 | if f.length() == 2: |
| HIGH | sympy/polys/polyroots.py | 1148 | elif f.length() == 2: |
| HIGH | sympy/polys/matrices/tests/test_nullspace.py | 118 | def _divide_last(null): |
| HIGH | sympy/polys/matrices/tests/test_nullspace.py | 137 | def _check_primitive(null, null_ans): |
| HIGH | sympy/polys/matrices/tests/test_nullspace.py | 139 | null = _to_DM(null, null_ans) |
| HIGH | sympy/polys/matrices/tests/test_nullspace.py | 144 | def _check_divided(null, null_ans): |
| HIGH | sympy/polys/matrices/tests/test_nullspace.py | 146 | null = _to_DM(null, null_ans) |
| HIGH | sympy/printing/tests/test_c.py | 200 | assert ccode(x & y) == "x && y" |
| HIGH | sympy/printing/tests/test_c.py | 201 | assert ccode(x | y) == "x || y" |
| HIGH | sympy/printing/tests/test_c.py | 203 | assert ccode(x & y & z) == "x && y && z" |
| HIGH | sympy/printing/tests/test_c.py | 204 | assert ccode(x | y | z) == "x || y || z" |
| HIGH | sympy/printing/tests/test_c.py | 205 | assert ccode((x & y) | z) == "z || x && y" |
| HIGH | sympy/printing/tests/test_c.py | 205 | assert ccode((x & y) | z) == "z || x && y" |
| HIGH | sympy/printing/tests/test_c.py | 206 | assert ccode((x | y) & z) == "z && (x || y)" |
| HIGH | sympy/printing/tests/test_c.py | 208 | assert ccode(x ^ y) == '(x || y) && (!x || !y)' |
| HIGH | sympy/printing/tests/test_c.py | 209 | assert ccode((x ^ y) ^ z) == '(x || y || z) && (x || !y || !z) && (y || !x || !z) && (z || !x || !y)' |
| HIGH | sympy/printing/tests/test_c.py | 211 | assert ccode(Equivalent(x, z ^ y, Implies(z, x))) == '(x || (y || !z) && (z || !y)) && (z && !x || (y || z) && (!y | |
| HIGH | sympy/printing/tests/test_glsl.py | 105 | assert glsl_code(x & y) == "x && y" |
| HIGH | sympy/printing/tests/test_glsl.py | 106 | assert glsl_code(x | y) == "x || y" |
| HIGH | sympy/printing/tests/test_glsl.py | 108 | assert glsl_code(x & y & z) == "x && y && z" |
| HIGH | sympy/printing/tests/test_glsl.py | 109 | assert glsl_code(x | y | z) == "x || y || z" |
| HIGH | sympy/printing/tests/test_glsl.py | 110 | assert glsl_code((x & y) | z) == "z || x && y" |
| HIGH | sympy/printing/tests/test_glsl.py | 110 | assert glsl_code((x & y) | z) == "z || x && y" |
| HIGH | sympy/printing/tests/test_glsl.py | 111 | assert glsl_code((x | y) & z) == "z && (x || y)" |
| HIGH | sympy/printing/tests/test_julia.py | 143 | assert julia_code(x & y) == "x && y" |
| HIGH | sympy/printing/tests/test_julia.py | 144 | assert julia_code(x | y) == "x || y" |
| HIGH | sympy/printing/tests/test_julia.py | 146 | assert julia_code(x & y & z) == "x && y && z" |
| HIGH | sympy/printing/tests/test_julia.py | 147 | assert julia_code(x | y | z) == "x || y || z" |
| HIGH | sympy/printing/tests/test_julia.py | 148 | assert julia_code((x & y) | z) == "z || x && y" |
| HIGH | sympy/printing/tests/test_julia.py | 148 | assert julia_code((x & y) | z) == "z || x && y" |
| HIGH | sympy/printing/tests/test_julia.py | 149 | assert julia_code((x | y) & z) == "z && (x || y)" |
| HIGH | sympy/printing/tests/test_rust.py | 123 | assert rust_code(k & m) == "k && m" |
| 214 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | isympy.py | 175 | |
| LOW | sympy/series/sequences.py | 304 | |
| LOW | sympy/series/sequences.py | 1119 | |
| LOW | sympy/series/sequences.py | 1229 | |
| LOW | sympy/series/limits.py | 70 | |
| LOW | sympy/series/limits.py | 198 | |
| LOW | sympy/series/limits.py | 265 | |
| LOW | sympy/series/order.py | 132 | |
| LOW | sympy/series/order.py | 376 | |
| LOW | sympy/series/order.py | 462 | |
| LOW | sympy/series/formal.py | 31 | |
| LOW | sympy/series/formal.py | 418 | |
| LOW | sympy/series/formal.py | 789 | |
| LOW | sympy/series/formal.py | 1059 | |
| LOW | sympy/series/formal.py | 1109 | |
| LOW | sympy/series/gruntz.py | 249 | |
| LOW | sympy/series/gruntz.py | 368 | |
| LOW | sympy/series/gruntz.py | 428 | |
| LOW | sympy/series/gruntz.py | 541 | |
| LOW | sympy/series/gruntz.py | 662 | |
| LOW | sympy/series/limitseq.py | 68 | |
| LOW | sympy/series/limitseq.py | 162 | |
| LOW | sympy/series/fourier.py | 515 | |
| LOW | sympy/core/facts.py | 76 | |
| LOW | sympy/core/facts.py | 136 | |
| LOW | sympy/core/facts.py | 327 | |
| LOW | sympy/core/add.py | 198 | |
| LOW | sympy/core/add.py | 463 | |
| LOW | sympy/core/add.py | 646 | |
| LOW | sympy/core/add.py | 659 | |
| LOW | sympy/core/add.py | 687 | |
| LOW | sympy/core/add.py | 748 | |
| LOW | sympy/core/add.py | 764 | |
| LOW | sympy/core/add.py | 816 | |
| LOW | sympy/core/add.py | 831 | |
| LOW | sympy/core/add.py | 846 | |
| LOW | sympy/core/add.py | 1005 | |
| LOW | sympy/core/add.py | 1169 | |
| LOW | sympy/core/exprtools.py | 33 | |
| LOW | sympy/core/exprtools.py | 982 | |
| LOW | sympy/core/exprtools.py | 1272 | |
| LOW | sympy/core/exprtools.py | 1396 | |
| LOW | sympy/core/exprtools.py | 291 | |
| LOW | sympy/core/exprtools.py | 488 | |
| LOW | sympy/core/exprtools.py | 558 | |
| LOW | sympy/core/exprtools.py | 720 | |
| LOW | sympy/core/traversal.py | 37 | |
| LOW | sympy/core/sorting.py | 11 | |
| LOW | sympy/core/sorting.py | 203 | |
| LOW | sympy/core/symbol.py | 689 | |
| LOW | sympy/core/symbol.py | 902 | |
| LOW | sympy/core/symbol.py | 965 | |
| LOW | sympy/core/numbers.py | 75 | |
| LOW | sympy/core/numbers.py | 4346 | |
| LOW | sympy/core/numbers.py | 352 | |
| LOW | sympy/core/numbers.py | 487 | |
| LOW | sympy/core/numbers.py | 498 | |
| LOW | sympy/core/numbers.py | 509 | |
| LOW | sympy/core/numbers.py | 812 | |
| LOW | sympy/core/numbers.py | 951 | |
| 1450 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | sympy/core/power.py | 286 | # =================================================== |
| MEDIUM | sympy/core/function.py | 1446 | # ------------------------------------------------------------- |
| MEDIUM | sympy/ntheory/tests/test_primetest.py | 174 | #------------- |
| MEDIUM | sympy/solvers/solvers.py | 1683 | # ----------------------- |
| MEDIUM | sympy/solvers/diophantine/diophantine.py | 1651 | # -------------------------- |
| MEDIUM | sympy/testing/runtests.py | 851 | # -------------------------------------------------------------------- |
| MEDIUM | sympy/sets/fancysets.py | 841 | #--------------------- |
| MEDIUM | sympy/sets/fancysets.py | 844 | # -------------------- |
| MEDIUM | sympy/sets/fancysets.py | 847 | #--------------------- |
| MEDIUM | sympy/sets/fancysets.py | 850 | # -------------------- |
| MEDIUM | sympy/sets/fancysets.py | 859 | #--------------------- |
| MEDIUM | sympy/sets/fancysets.py | 862 | # -------------------- |
| MEDIUM | sympy/sets/handlers/intersection.py | 168 | # ------------------- |
| MEDIUM | sympy/combinatorics/polyhedron.py | 834 | # ----------------------------------------------------------------------- |
| MEDIUM | sympy/combinatorics/polyhedron.py | 839 | # ----------------------------------------------------------------------- |
| MEDIUM | sympy/combinatorics/fp_groups.py | 395 | #============================================================================== |
| MEDIUM | sympy/combinatorics/fp_groups.py | 397 | #============================================================================== |
| MEDIUM | sympy/combinatorics/fp_groups.py | 956 | #======================================================================== |
| MEDIUM | sympy/combinatorics/fp_groups.py | 958 | #======================================================================== |
| MEDIUM | sympy/functions/special/polynomials.py | 41 | #---------------------------------------------------------------------------- |
| MEDIUM | sympy/functions/special/polynomials.py | 439 | #---------------------------------------------------------------------------- |
| MEDIUM | sympy/functions/special/polynomials.py | 1002 | #---------------------------------------------------------------------------- |
| MEDIUM | sympy/functions/special/polynomials.py | 1206 | #---------------------------------------------------------------------------- |
| MEDIUM | sympy/functions/special/polynomials.py | 286 | #---------------------------------------------------------------------------- |
| MEDIUM | sympy/functions/special/polynomials.py | 769 | #---------------------------------------------------------------------------- |
| MEDIUM | sympy/functions/elementary/piecewise.py | 402 | # ----------------------------------------------------------------------- |
| MEDIUM | sympy/functions/elementary/piecewise.py | 546 | # ----------------------------------------------------------------- |
| MEDIUM | sympy/physics/secondquant.py | 2856 | # ============================ |
| MEDIUM | sympy/physics/quantum/qft.py | 40 | #----------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/qft.py | 42 | #----------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/transforms.py | 32 | #----------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/transforms.py | 34 | #----------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/transforms.py | 177 | #----------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/transforms.py | 179 | #----------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/transforms.py | 275 | #----------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/transforms.py | 277 | #----------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/kind.py | 76 | #----------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/kind.py | 78 | #----------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/qubit.py | 48 | #----------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/qubit.py | 50 | #----------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/qubit.py | 56 | #------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/qubit.py | 58 | #------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/qubit.py | 85 | #------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/qubit.py | 87 | #------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/qubit.py | 103 | #------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/qubit.py | 105 | #------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/qubit.py | 113 | #------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/qubit.py | 115 | #------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/qubit.py | 435 | #----------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/qubit.py | 437 | #----------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/qubit.py | 535 | #----------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/qubit.py | 537 | #----------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/cg.py | 34 | #----------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/cg.py | 36 | #----------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/spin.py | 74 | #----------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/spin.py | 76 | #----------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/spin.py | 917 | #----------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/spin.py | 919 | #----------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/spin.py | 1794 | #----------------------------------------------------------------------------- |
| MEDIUM | sympy/physics/quantum/spin.py | 1796 | #----------------------------------------------------------------------------- |
| 221 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | sympy/__init__.py | 260 | # This module is slow to import: |
| MEDIUM | sympy/polys/rings.py | 293 | # Create a new ring instance. |
| MEDIUM | sympy/polys/domains/mpelements.py | 2 | # This module is deprecated and should not be used any more. The actual |
| MEDIUM | sympy/polys/domains/algebraicfield.py | 646 | # Create a function to do the conversion efficiently: |
| MEDIUM | sympy/polys/matrices/linsolve.py | 4 | # This module defines the _linsolve function which is the internal workhorse |
| MEDIUM | sympy/polys/matrices/domainmatrix.py | 3082 | # Define a new polynomial f with f[i] = -(-1)^n*p[i] for i=0..n-1. Then |
| MEDIUM | sympy/concrete/summations.py | 644 | # The following code can grows like 2**n where n is the |
| MEDIUM | sympy/ntheory/generate.py | 226 | # Create the list such that block[x] iff (a + 2x + 1) is prime. |
| MEDIUM | sympy/printing/rcode.py | 212 | # This method is called only for inline if constructs |
| MEDIUM | sympy/printing/llvmjitcode.py | 233 | # Create a wrapped double: PyObject* PyFloat_FromDouble(double v) |
| MEDIUM | sympy/printing/llvmjitcode.py | 241 | # Create a tuple: PyObject* PyTuple_Pack(Py_ssize_t n, ...) |
| MEDIUM | sympy/printing/tests/test_tensorflow.py | 76 | # Creating a custom inverse test. |
| MEDIUM | sympy/logic/boolalg.py | 3199 | # Create a list of possible replacements |
| MEDIUM | sympy/logic/boolalg.py | 3265 | # Create a list of possible replacements |
| MEDIUM | sympy/logic/algorithms/dpll2.py | 132 | # Create the base level |
| MEDIUM | sympy/solvers/ode/nonhomogeneous.py | 86 | # Create a dict root: multiplicity or charroots |
| MEDIUM | sympy/solvers/ode/nonhomogeneous.py | 205 | # Create a dict root: multiplicity or charroots |
| MEDIUM | sympy/codegen/abstract_nodes.py | 1 | """This module provides containers for python objects that are valid |
| MEDIUM | sympy/codegen/ast.py | 706 | # Create a graph where the nodes are assignments and there is a directed edge |
| MEDIUM | sympy/codegen/tests/test_applications.py | 1 | # This file contains tests that exercise multiple AST nodes |
| MEDIUM | sympy/utilities/lambdify.py | 929 | # Create the function definition code and execute it |
| MEDIUM | sympy/utilities/pkgdata.py | 1 | # This module is deprecated and will be removed. |
| MEDIUM | sympy/utilities/tests/test_codegen_julia.py | 48 | "# This file is part of 'project'\n" |
| MEDIUM | sympy/utilities/tests/test_codegen_julia.py | 289 | "# This file is part of 'project'\n" |
| MEDIUM | sympy/integrals/laplace.py | 804 | # The following code checks all remaining poles. If t1 is a pole at |
| MEDIUM | sympy/integrals/rationaltools.py | 1 | """This module implements tools for integrating rational functions. """ |
| MEDIUM | sympy/integrals/tests/test_integrals.py | 2149 | # Define the symbols |
| MEDIUM | sympy/integrals/tests/test_integrals.py | 2153 | # Define the integral expression |
| MEDIUM | sympy/integrals/tests/test_integrals.py | 2170 | # Define the symbol and the integral expression |
| MEDIUM | sympy/plotting/experimental_lambdify.py | 407 | # Create the final ordered tuples of dictionaries |
| MEDIUM | sympy/plotting/pygletplot/plot_mode.py | 79 | # Create the object |
| MEDIUM | sympy/plotting/backends/matplotlibbackend/matplotlib.py | 123 | # Create the collections |
| MEDIUM | sympy/combinatorics/rewritingsystem.py | 45 | # Create a finite state machine as an instance of the StateMachine object |
| MEDIUM | sympy/functions/special/hyper.py | 33 | # This method is only needed because hyper._eval_as_leading_term falls back |
| MEDIUM | sympy/functions/special/polynomials.py | 431 | # This function is just kept for backwards compatibility |
| MEDIUM | sympy/functions/special/polynomials.py | 994 | # This function is just kept for backwards compatibility |
| MEDIUM | sympy/functions/special/polynomials.py | 1101 | # This function is just kept for backwards compatibility |
| MEDIUM | sympy/functions/special/polynomials.py | 1198 | # This function is just kept for backwards compatibility |
| MEDIUM | sympy/functions/special/polynomials.py | 204 | # This function is just kept for backwards compatibility |
| MEDIUM | sympy/functions/special/polynomials.py | 557 | # This function is just kept for backwards compatibility |
| MEDIUM | sympy/functions/special/polynomials.py | 683 | # This function is just kept for backwards compatibility |
| MEDIUM | sympy/functions/special/polynomials.py | 885 | # This function is just kept for backwards compatibility |
| MEDIUM | sympy/functions/special/polynomials.py | 1316 | # This function is just kept for backwards compatibility |
| MEDIUM | sympy/functions/special/polynomials.py | 1442 | # This function is just kept for backwards compatibility |
| MEDIUM | sympy/tensor/array/expressions/array_expressions.py | 543 | # Create an index, target-position-key array: |
| MEDIUM | sympy/tensor/array/expressions/array_expressions.py | 1795 | # Create a collector for the new diagonal indices: |
| MEDIUM | sympy/geometry/curve.py | 340 | """This function is used to rotate a curve along given point ``pt`` at given angle(in radian). |
| MEDIUM | sympy/physics/mechanics/system.py | 1508 | # Create a list of all of the expressions in the equations of motion |
| MEDIUM | sympy/physics/mechanics/system.py | 1526 | # Create a list of all of the expressions in the equations of motion |
| MEDIUM | sympy/physics/mechanics/wrapping_geometry.py | 646 | """This method is implemented as required by WrappingGeometryBase, use WrappingCone.apex instead.""" |
| MEDIUM | sympy/physics/mechanics/lagrange.py | 160 | # Creating the qs, qdots and qdoubledots |
| MEDIUM | sympy/physics/mechanics/lagrange.py | 200 | # Creating the multipliers |
| MEDIUM | sympy/physics/mechanics/tests/test_lagrange.py | 45 | # Creating the disc 'D'; we create the point that represents the mass |
| MEDIUM | sympy/physics/mechanics/tests/test_system.py | 8 | # This class is going to be tested using a simple pendulum set up in x and y |
| MEDIUM | sympy/physics/mechanics/tests/test_kane.py | 271 | # Defining the constants and knowns of the system |
| MEDIUM | sympy/physics/control/lti.py | 853 | >>> #Create a Transfer Function with more than one variable |
| MEDIUM | sympy/physics/control/lti.py | 907 | >>> #Create a Transfer Function with variable poles and zeros |
| MEDIUM | sympy/physics/quantum/kind.py | 42 | # Create an instance as many situations need this. |
| MEDIUM | sympy/physics/quantum/kind.py | 56 | # Create an instance as many situations need this. |
| MEDIUM | sympy/physics/quantum/kind.py | 72 | # Create an instance as many situations need this. |
| 20 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | asv.conf.actions.json | 21 | // https://github.com/sympy/sympy/issues/26239 |
| LOW | asv.conf.actions.json | 41 | // The tool to use to create environments. May be "conda", |
| LOW | asv.conf.actions.json | 81 | |
| LOW | sympy/core/backend.py | 81 | # Expected behaviour of a SymPy mutable/immutable matrix .simplify() method: |
| LOW | sympy/core/containers.py | 121 | # XXX: Basic defines count() as something different, so we can't |
| LOW | sympy/core/cache.py | 101 | # always call function itself and compare it with cached version |
| LOW | sympy/core/mul.py | 501 | # in c_powers |
| LOW | sympy/core/mul.py | 1301 | if any(a.is_zero is not False for a in self.args): |
| LOW | sympy/core/mul.py | 1321 | # would be indicated by None. |
| LOW | sympy/core/intfunc.py | 261 | # a' = A*a + B*b, b' = C*a + D*b |
| LOW | sympy/core/intfunc.py | 281 | # x'%y" = x' - q*y" < x" - q*y' = x"%y', |
| LOW | sympy/core/power.py | 1461 | return Expr.matches(self, expr, repl_dict) |
| LOW | sympy/core/function.py | 561 | try: |
| LOW | sympy/core/function.py | 801 | args = [a.as_leading_term(x, logx=logx) for a in self.args] |
| LOW | sympy/core/assumptions.py | 581 | # though that independent code e.g. called indirectly by the handler or |
| LOW | sympy/core/assumptions.py | 601 | # single-threaded context but in multithreaded code it is possible that |
| LOW | sympy/core/assumptions.py | 681 | # in case someone has been using the ManagedProperties class in downstream |
| LOW | sympy/core/expr.py | 841 | # to be zero -- we try to prove it via minimal_polynomial. |
| LOW | sympy/core/expr.py | 3921 | precs = [f._prec for f in x.atoms(Float)] |
| LOW | sympy/core/expr.py | 3941 | # The default precision is 15 digits and if we ask |
| LOW | sympy/core/expr.py | 3961 | # and rescaling that gives |
| LOW | sympy/core/tests/test_singleton.py | 41 | # performance benefit of being able to use 'is' (this only matters in very |
| LOW | sympy/core/tests/test_relational.py | 981 | # at a lower and higher precision bracket the value of pi |
| LOW | sympy/core/tests/test_expr.py | 2061 | assert a.round(25) == Float('3.000000000000000000000000000', '') |
| LOW | sympy/polys/euclidtools.py | 1521 | |
| LOW | sympy/polys/rootoftools.py | 961 | by = mp.mpf(str(interval.by)) |
| LOW | sympy/polys/puiseux.py | 1 | """ |
| LOW | sympy/polys/matrices/dense.py | 161 | # In cases like GF(p), QQ<sqrt(2)>, RR or CC though multiplication is |
| LOW | sympy/polys/matrices/dense.py | 301 | # Given an n x n matrix A and n x 1 matrix b: |
| LOW | sympy/polys/matrices/linsolve.py | 1 | # |
| LOW | sympy/polys/matrices/domainmatrix.py | 3201 | |
| LOW | sympy/polys/matrices/rref.py | 1 | # Algorithms for computing the reduced row echelon form of a matrix. |
| LOW | sympy/polys/matrices/rref.py | 281 | |
| LOW | sympy/polys/matrices/rref.py | 321 | if denom_lcm.bit_length() < 50: |
| LOW | sympy/polys/matrices/sdm.py | 1701 | # The algorithm then processes each row Ai one at a time. Previously seen |
| LOW | sympy/polys/matrices/sdm.py | 1881 | # nonzero elements. We will build the RREF matrix starting from an empty |
| LOW | sympy/polys/matrices/sdm.py | 1901 | # fully reduced rows because we can handle them more efficiently when |
| LOW | sympy/polys/matrices/sdm.py | 2181 | a = Mij |
| LOW | sympy/polys/matrices/_dfm.py | 1 | # |
| LOW | sympy/polys/matrices/_dfm.py | 21 | # |
| LOW | sympy/polys/matrices/_dfm.py | 661 | # TODO: Implement similar algorithms for DDM and SDM. |
| LOW | sympy/polys/matrices/_dfm.py | 821 | |
| LOW | sympy/polys/matrices/tests/test_xxm.py | 1 | # |
| LOW | sympy/polys/matrices/tests/test_linsolve.py | 81 | y:8519/15990 + 1784/7995*I, |
| LOW | sympy/polys/matrices/tests/test_rref.py | 521 | ( |
| LOW | sympy/concrete/summations.py | 621 | try: |
| LOW | sympy/concrete/tests/test_products.py | 21 | def test_karr_convention(): |
| LOW | sympy/concrete/tests/test_sums_products.py | 41 | from sympy.simplify.simplify import simplify |
| LOW | sympy/concrete/tests/test_sums_products.py | 61 | # the upper limit being *exclusive*. |
| LOW | sympy/ntheory/primetest.py | 781 | #if n < 38010307: |
| LOW | sympy/ntheory/generate.py | 41 | >>> sieve._list |
| LOW | sympy/ntheory/generate.py | 61 | # |
| LOW | sympy/ntheory/generate.py | 81 | # |
| LOW | sympy/ntheory/bbp_pi.py | 1 | ''' |
| LOW | sympy/ntheory/partitions_.py | 181 | """ |
| LOW | sympy/printing/codeprinter.py | 241 | # (temporary variables?) |
| LOW | sympy/printing/rcode.py | 181 | # from sympy.functions.elementary.piecewise import Piecewise |
| LOW | sympy/printing/rust.py | 21 | # + Complex_ |
| LOW | sympy/printing/rust.py | 41 | real, integer, bool_ |
| LOW | sympy/printing/rust.py | 81 | "floor": (floor, float_floor), |
| 147 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 217 | except Exception: |
| MEDIUM | setup.py | 231 | print("Error deleting %s - %s." % (e.filename, e.strerror)) |
| LOW | sympy/printing/pycode.py | 432 | except Exception: # noqa: BLE001 |
| LOW | sympy/solvers/ode/tests/test_single.py | 244 | except Exception as e: |
| LOW | sympy/testing/pytest.py | 192 | except Exception as e: # noqa: BLE001 |
| MEDIUM | sympy/testing/pytest.py | 189 | def wrapper(): |
| LOW | sympy/testing/runtests.py | 1238 | except Exception: # noqa: BLE001 |
| LOW | sympy/testing/runtests.py | 1283 | except Exception: |
| LOW | sympy/testing/runtests.py | 1308 | except Exception: # noqa: BLE001 |
| MEDIUM | sympy/plotting/series.py | 54 | def wrapper_func(func, *args): |
| MEDIUM | sympy/plotting/series.py | 1573 | def _adaptive_sampling(self): |
| MEDIUM | sympy/plotting/series.py | 1659 | def _adaptive_sampling(self): |
| LOW | sympy/plotting/series.py | 89 | except Exception as err: # noqa: BLE001 |
| LOW | sympy/plotting/series.py | 1370 | except Exception as err: # noqa: BLE001 |
| LOW | sympy/plotting/series.py | 1582 | except Exception as err: # noqa: BLE001 |
| LOW | sympy/plotting/series.py | 1670 | except Exception as err: # noqa: BLE001 |
| LOW | sympy/plotting/pygletplot/plot_mode.py | 230 | except Exception as e: |
| LOW | sympy/plotting/pygletplot/color_scheme.py | 120 | except Exception: |
| LOW | sympy/plotting/pygletplot/color_scheme.py | 136 | except Exception as ex: |
| LOW | sympy/plotting/pygletplot/color_scheme.py | 222 | except Exception: |
| LOW | sympy/plotting/pygletplot/color_scheme.py | 228 | except Exception: |
| MEDIUM | sympy/plotting/pygletplot/color_scheme.py | 225 | def __call__(self, x, y, z, u, v): |
| LOW | sympy/plotting/pygletplot/plot_mode_base.py | 114 | except Exception: |
| LOW | sympy/plotting/pygletplot/plot_mode_base.py | 347 | except Exception as e: |
| MEDIUM | sympy/plotting/pygletplot/plot_mode_base.py | 336 | def _set_color(self, v): |
| LOW | sympy/plotting/pygletplot/managed_window.py | 47 | except Exception as e: |
| LOW | sympy/plotting/pygletplot/managed_window.py | 66 | except Exception as e: |
| LOW | sympy/interactive/session.py | 487 | except Exception: # noqa: BLE001 |
| LOW | sympy/interactive/printing.py | 94 | except Exception as e: |
| LOW | sympy/interactive/printing.py | 107 | except Exception as e: |
| LOW | sympy/physics/mechanics/tests/test_kane.py | 456 | except Exception as e: |
| LOW | sympy/parsing/sympy_parser.py | 1089 | except Exception as e: # noqa: BLE001 |
| LOW | sympy/parsing/latex/_parse_latex_antlr.py | 20 | except Exception: |
| MEDIUM | sympy/parsing/autolev/_listener_autolev_antlr.py | 1598 | def exitOutputs2(self, ctx): |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 337 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 343 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 353 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 1364 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 1370 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 1374 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 1392 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 249 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 569 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 597 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 618 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 623 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 666 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 915 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 976 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 982 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 1036 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 1179 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 1288 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 1290 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 1470 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 1475 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 1581 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 1587 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 1606 | except Exception: |
| LOW | sympy/parsing/autolev/_listener_autolev_antlr.py | 1667 | except Exception: |
| 14 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | sympy/core/relational.py | 366 | # Check if first value has negative sign |
| LOW | sympy/core/sympify.py | 414 | #Check if there exists a converter for any of the types in the mro |
| LOW | sympy/polys/rootconditions.py | 329 | # Check if -1 is a root, since the transformation is not defined in this case |
| LOW | sympy/polys/polyroots.py | 568 | # Check if f20 has linear factors over domain Z |
| LOW | sympy/ntheory/generate.py | 514 | # Check if n is within the sieve range |
| LOW | sympy/ntheory/factor_.py | 1496 | # Check if it exists in the cache |
| LOW | sympy/logic/algorithms/dpll2.py | 202 | # Check if unit prop says the theory is unsat right off the bat |
| LOW | sympy/logic/algorithms/dpll2.py | 274 | # Check if we've made the theory unsat |
| LOW | sympy/logic/algorithms/dpll2.py | 413 | # Check if no sentinel update exists |
| LOW | sympy/solvers/solvers.py | 2226 | # Check if there are any non-zero solutions at all |
| LOW | sympy/solvers/solveset.py | 2858 | # Check if 'symbols' is a set and raise an error if it is |
| LOW | sympy/solvers/diophantine/diophantine.py | 580 | # Check if the coefficients of y and x obtained are integers or not |
| LOW | sympy/solvers/ode/single.py | 2834 | # Check if b3 = 0 (no first derivative term) or a3 = 0 (no second derivative term) |
| LOW | sympy/solvers/ode/single.py | 2842 | # Check if c3 is of the form A*x^k where k has free symbols |
| LOW | sympy/solvers/ode/ode.py | 2535 | # Check if second frobenius series solution exists. |
| LOW | sympy/solvers/ode/riccati.py | 318 | # Check if coefficients are not symbols and floats |
| LOW | sympy/solvers/ode/riccati.py | 365 | # Check if degree of numerator is same as denominator |
| LOW | sympy/solvers/ode/riccati.py | 722 | # Check if there are any constants |
| LOW | sympy/testing/runtests.py | 1108 | # Read the file, convert it to a test, and run it. |
| LOW | sympy/plotting/series.py | 2578 | # Check if any point in between is valid |
| LOW | sympy/combinatorics/rewritingsystem.py | 400 | # Check if the transition to any new state in possible. |
| LOW | sympy/functions/special/bsplines.py | 65 | # Check if arg2 condition smaller than arg1, |
| LOW | sympy/functions/elementary/integers.py | 604 | # Check if other <= 0 |
| LOW | sympy/functions/elementary/integers.py | 607 | # Check if other >= 1 |
| LOW | sympy/functions/elementary/integers.py | 616 | # Check if other < 0 |
| LOW | sympy/functions/elementary/integers.py | 620 | # Check if other >= 1 |
| LOW | sympy/functions/elementary/integers.py | 628 | # Check if other < 0 |
| LOW | sympy/functions/elementary/integers.py | 631 | # Check if other >= 1 |
| LOW | sympy/functions/elementary/integers.py | 640 | # Check if other <= 0 |
| LOW | sympy/functions/elementary/integers.py | 643 | # Check if other >= 1 |
| LOW | sympy/functions/elementary/integers.py | 701 | # Check if other < 0 |
| LOW | sympy/functions/elementary/integers.py | 704 | # Check if other >= 1 |
| LOW | sympy/tensor/tensor.py | 2230 | # Check if variance of indices needs to be fixed: |
| LOW | sympy/tensor/array/ndim_array.py | 184 | # Check if any index is symbolic: |
| LOW | sympy/tensor/array/expressions/from_array_to_matrix.py | 815 | # Check if expression is a trace: |
| LOW | sympy/tensor/array/expressions/from_indexed_to_array.py | 171 | # Check if there are KroneckerDelta objects: |
| LOW | sympy/tensor/array/expressions/from_indexed_to_array.py | 230 | # Check if all indices are compatible. Otherwise expand the dimensions: |
| LOW | sympy/tensor/array/expressions/array_expressions.py | 270 | # Check if there are nested ArraySum objects: |
| LOW | sympy/tensor/array/expressions/array_expressions.py | 290 | # Check if there are nested permutation and lift them up: |
| LOW | sympy/tensor/tests/test_tensor.py | 1039 | #Check if contract_metric gets into an infinite loop when given a TensMul whose coeff is an Add |
| LOW | sympy/tensor/tests/test_tensor.py | 1132 | #Check if TensAdd.contract_delta can handle the case when the TensAdd has non-TensExpr args. |
| LOW | sympy/physics/mechanics/system.py | 1046 | # Check if all joint coordinates and speeds are present |
| LOW | sympy/physics/mechanics/tests/test_linearize.py | 331 | # Check if passing a function to linear_solver works |
| LOW | sympy/physics/mechanics/tests/test_actuator.py | 747 | # Check if DuffingSpring correctly initializes its attributes |
| LOW | sympy/physics/mechanics/tests/test_actuator.py | 812 | # Check if certain properties of DuffingSpring object are immutable after initialization |
| LOW | sympy/physics/mechanics/tests/test_actuator.py | 827 | # Check if the actual string representation of DuffingSpring instance matches the expected string for each provided |
| LOW | sympy/physics/mechanics/tests/test_actuator.py | 855 | # Check if the absolute value of the difference is below a threshold |
| LOW | sympy/physics/continuum_mechanics/beam.py | 3062 | # Check if any of the evaluated reaction exists in another direction |
| LOW | sympy/physics/continuum_mechanics/tests/test_column.py | 299 | c2.apply_support(10) # Check if order of applying supports matters |
| LOW | sympy/physics/vector/frame.py | 72 | # Check if the other object is a CoordinateSym of the same frame and |
| LOW | sympy/physics/vector/frame.py | 556 | # Check if the dcm wrt that frame has already been calculated |
| LOW | sympy/physics/control/lti.py | 2612 | # Check if the system is a StateSpace |
| LOW | sympy/physics/control/tests/test_lti.py | 3290 | # Check if the system is SISO or MIMO. |
| LOW | sympy/physics/control/tests/test_lti.py | 4256 | # Check if the system is SISO or MIMO. |
| LOW | sympy/physics/quantum/density.py | 48 | # Check if arg is a tuple |
| LOW | sympy/physics/quantum/identitysearch.py | 91 | # Check if it's diagonal |
| LOW | sympy/physics/quantum/identitysearch.py | 94 | # Check if the rows indices and columns indices are the same |
| LOW | sympy/parsing/mathematica.py | 684 | # Check if the regular expression has already been compiled: |
| LOW | sympy/vector/vector.py | 193 | # Check if the other is a del operator |
| LOW | sympy/categories/diagram_drawing.py | 2143 | # Check if there's space to the left. |
| 4 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | sympy/core/add.py | 1154 | # so we just use the same sort as is used in Add.flatten. When the |
| LOW | sympy/core/operations.py | 410 | # here, we have a number so we just call to _evalf with prec; |
| LOW | sympy/core/expr.py | 511 | # Probably this method should just return self.evalf(2).is_Number. |
| LOW | sympy/core/expr.py | 3721 | # now, we just use a special case to make multinomial run before mul, |
| LOW | sympy/polys/rings.py | 2687 | # Can just use self.flint_poly.to_dict() in case of python-flint |
| LOW | sympy/polys/matrices/_dfm.py | 572 | # time of writng just use Bareiss for all matrices and domains. |
| LOW | sympy/polys/matrices/tests/test_xxm.py | 854 | # XXX: Change the signature to just return the nullspace. Possibly |
| MEDIUM | sympy/concrete/summations.py | 1649 | # robust than the current implementation of ``residue`` which uses a series |
| MEDIUM | sympy/printing/pretty/pretty_symbology.py | 59 | """See if unicode output is available and leverage it if possible""" |
| MEDIUM | sympy/solvers/solvers.py | 1483 | # Poly is generally robust enough to convert anything to |
| LOW | sympy/solvers/solvers.py | 2264 | # If there is a non-trivial solution, just set the free variables to |
| LOW | sympy/solvers/ode/nonhomogeneous.py | 197 | # Can't just call roots because it doesn't return rootof for unsolveable |
| LOW | sympy/solvers/ode/tests/test_ode.py | 94 | # Maybe this should just use one of the solutions instead of raising... |
| MEDIUM | sympy/utilities/tests/test_misc.py | 140 | # expected; Q.prime is more nuanced in its response for |
| MEDIUM | sympy/testing/runtests.py | 1964 | # in conjunction with the ELLIPSIS flag. |
| MEDIUM | sympy/integrals/intpoly.py | 976 | # TODO : This part is quite hacky. Should be made more robust with |
| LOW | sympy/assumptions/tests/test_sathandlers.py | 18 | # The predicate doesn't matter here, so just pass |
| LOW | sympy/plotting/intervalmath/interval_arithmetic.py | 15 | # Q: Why use numpy? Why not simply use mpmath's interval arithmetic? |
| MEDIUM | sympy/combinatorics/free_groups.py | 171 | """Return a tuple of arguments that must be passed to __new__ in order to support pickling this object.""" |
| LOW | sympy/physics/hep/gamma_matrices.py | 452 | # no contractions in `expression`, just return it. |
| MEDIUM | sympy/physics/mechanics/tests/test_kane3.py | 187 | # model to the reference eigen values. Look at the aforementioned paper for |
| LOW | sympy/physics/mechanics/tests/test_kane.py | 506 | # Note that we just use the explicit kinematics for the linear velocities |
| MEDIUM | sympy/physics/vector/tests/test_functions.py | 344 | #The use of time_derivative for calculations pertaining to scalar |
| LOW | sympy/physics/quantum/spin.py | 1074 | # we could just use this unless there are cases when this is not true |
| LOW | sympy/physics/quantum/represent.py | 241 | # vectors are taken. In these cases, we simply return a scalar. |
| LOW | sympy/physics/quantum/gate.py | 224 | # If the controls are not met, just return |
| LOW | sympy/physics/quantum/qapply.py | 145 | if not nc_part: # If we only have a commuting part, just return it. |
| LOW | sympy/physics/quantum/operatorset.py | 261 | # If this fails, just return the classes |
| LOW | sympy/physics/quantum/state.py | 156 | # If height is 1, just return brackets |
| LOW | sympy/parsing/sympy_parser.py | 1239 | # keywords=[]: If ommited, keywords would have the default value of None, it will just return an Attribu |
| LOW | sympy/simplify/trigsimp.py | 265 | # We just add the extragens to gens and analyse them as before |
| MEDIUM | sympy/simplify/hyperexpand.py | 2121 | """ Try to apply ``shifter`` in order to bring some element in ``f`` |
| MEDIUM | sympy/matrices/eigen.py | 307 | # the multiplicity correct. This is not robust enough in general |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | sympy/matrices/expressions/tests/test_derivatives.py | 56 | |
| MEDIUM | sympy/matrices/expressions/tests/test_derivatives.py | 57 | |
| MEDIUM | sympy/matrices/expressions/tests/test_derivatives.py | 58 | |
| MEDIUM | sympy/matrices/expressions/tests/test_derivatives.py | 60 | |
| MEDIUM | sympy/matrices/expressions/tests/test_derivatives.py | 61 | |
| MEDIUM | sympy/matrices/expressions/tests/test_derivatives.py | 62 | |
| MEDIUM | sympy/matrices/expressions/tests/test_derivatives.py | 64 | |
| MEDIUM | doc/ext/docscrape_sphinx.py | 34 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | sympy/core/mul.py | 28 | # "there are still non-commutative objects -- don't forget to process them" |
| LOW | sympy/core/mul.py | 28 | # "there are still non-commutative objects -- don't forget to process them" |
| LOW | sympy/core/mul.py | 365 | # append non-commutative marker, so we don't forget to |
| LOW | sympy/core/mul.py | 365 | # append non-commutative marker, so we don't forget to |
| LOW | sympy/core/basic.py | 1503 | non-Basic iterable. Don't forget to unpack |
| LOW | sympy/solvers/tests/test_inequalities.py | 472 | # make sure to include conditions under which solution is valid |
| MEDIUM | sympy/integrals/integrals.py | 1236 | For demonstration purposes, this interval will only be split into 2 |
| LOW | sympy/interactive/printing.py | 140 | # If you're adding another type, make sure you add it to printable_types |
| LOW | sympy/categories/diagram_drawing.py | 697 | # Don't forget to assure the proper ordering of the vertices |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | sympy/polys/densetools.py | 1545 | # Step 0: h = x / f mod x**(n-1) |
| LOW | sympy/ntheory/primetest.py | 739 | # Step 2: deterministic Miller-Rabin testing for numbers < 2^64. See: |
| LOW | sympy/ntheory/primetest.py | 796 | # Step 3: BPSW. |
| LOW | sympy/solvers/ode/systems.py | 1338 | To check if the equations are constant coefficient, we need to check if all the terms in |
| LOW | sympy/solvers/ode/systems.py | 1341 | To check if the equations are homogeneous or not, we need to check if b is a zero matrix |
| LOW | sympy/solvers/ode/riccati.py | 802 | # Step 1 : Convert to Normal Form |
| LOW | sympy/solvers/ode/riccati.py | 812 | # Step 3 : a(x) is 0 |
| LOW | sympy/solvers/ode/riccati.py | 816 | # Step 4 : a(x) is a non-zero constant |
| LOW | sympy/solvers/ode/riccati.py | 820 | # Step 5 : Find poles and valuation at infinity |
| LOW | sympy/solvers/ode/riccati.py | 837 | # Step 7 : Iterate over all possible combinations and return solutions |
| LOW | sympy/solvers/ode/riccati.py | 856 | # Step 10 : Check if a valid solution exists. If yes, also check |
| LOW | sympy/solvers/ode/riccati.py | 860 | # Step 11 : Find polynomial solutions of degree m for the auxiliary equation |
| LOW | sympy/solvers/ode/riccati.py | 863 | # Step 12 : If valid polynomial solution exists, append solution. |
| LOW | sympy/solvers/ode/riccati.py | 885 | # Step 15 : Inverse transform the solutions of the equation in normal form |
| LOW | sympy/simplify/hyperexpand.py | 965 | self._poly variable. This variable stores a polynomial. By convention |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | .github/PULL_REQUEST_TEMPLATE.md | 41 | like it was generated by AI then the PR will be closed. --> |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | sympy/core/tests/test_eval.py | 92 | def test_function(): |
| LOW | sympy/parsing/tests/test_c_parser.py | 940 | def test_function(): |
| LOW | sympy/parsing/tests/test_fortran_parser.py | 279 | def test_function(): |