Skip to content

Commit 16a6651

Browse files
author
Release Manager
committed
gh-35686: fixing a lot of pycostyle warnings in calculus folder <!-- Please provide a concise, informative and self-explanatory title. --> <!-- Don't put issue numbers in the title. Put it in the Description below. --> <!-- For example, instead of "Fixes #12345", use "Add a new method to multiply two integers" --> ### 📚 Description This is fixing a lot of pycodestyle warnings in the `calculus` folder, in particular in `desolvers.py`. <!-- Describe your changes here in detail. --> <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes #12345". --> <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. It should be `[x]` not `[x ]`. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - #12345: short description why this is a dependency - #34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: #35686 Reported by: Frédéric Chapoton Reviewer(s): Matthias Köppe
2 parents a8c3d77 + af62ec2 commit 16a6651

File tree

7 files changed

+182
-211
lines changed

7 files changed

+182
-211
lines changed

src/sage/calculus/all.py

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11

22
from .calculus import maxima as maxima_calculus
33
from .calculus import (laplace, inverse_laplace,
4-
limit, lim)
4+
limit, lim)
55

66
from .integration import numerical_integral, monte_carlo_integral
77
integral_numerical = numerical_integral
88

99
from .interpolation import spline, Spline
1010

1111
from .functional import (diff, derivative,
12-
expand,
13-
taylor, simplify)
12+
expand,
13+
taylor, simplify)
1414

15-
from .functions import (wronskian,jacobian)
15+
from .functions import (wronskian, jacobian)
1616

1717
from .ode import ode_solver, ode_system
1818

1919
from .desolvers import (desolve, desolve_laplace, desolve_system,
20-
eulers_method, eulers_method_2x2,
21-
eulers_method_2x2_plot, desolve_rk4, desolve_system_rk4,
22-
desolve_odeint, desolve_mintides, desolve_tides_mpfr)
20+
eulers_method, eulers_method_2x2,
21+
eulers_method_2x2_plot, desolve_rk4, desolve_system_rk4,
22+
desolve_odeint, desolve_mintides, desolve_tides_mpfr)
2323

2424
from .var import (var, function, clear_vars)
2525

2626
from .transforms.all import *
2727

2828
# We lazy_import the following modules since they import numpy which slows down sage startup
2929
from sage.misc.lazy_import import lazy_import
30-
lazy_import("sage.calculus.riemann",["Riemann_Map"])
31-
lazy_import("sage.calculus.interpolators",["polygon_spline","complex_cubic_spline"])
30+
lazy_import("sage.calculus.riemann", ["Riemann_Map"])
31+
lazy_import("sage.calculus.interpolators", ["polygon_spline", "complex_cubic_spline"])
3232

3333
from sage.modules.free_module_element import vector
3434
from sage.matrix.constructor import matrix
@@ -77,21 +77,21 @@ def symbolic_expression(x):
7777
7878
If ``x`` is a list or tuple, create a vector of symbolic expressions::
7979
80-
sage: v=symbolic_expression([x,1]); v
80+
sage: v = symbolic_expression([x,1]); v
8181
(x, 1)
8282
sage: v.base_ring()
8383
Symbolic Ring
84-
sage: v=symbolic_expression((x,1)); v
84+
sage: v = symbolic_expression((x,1)); v
8585
(x, 1)
8686
sage: v.base_ring()
8787
Symbolic Ring
88-
sage: v=symbolic_expression((3,1)); v
88+
sage: v = symbolic_expression((3,1)); v
8989
(3, 1)
9090
sage: v.base_ring()
9191
Symbolic Ring
9292
sage: E = EllipticCurve('15a'); E
9393
Elliptic Curve defined by y^2 + x*y + y = x^3 + x^2 - 10*x - 10 over Rational Field
94-
sage: v=symbolic_expression([E,E]); v
94+
sage: v = symbolic_expression([E,E]); v
9595
(x*y + y^2 + y == x^3 + x^2 - 10*x - 10, x*y + y^2 + y == x^3 + x^2 - 10*x - 10)
9696
sage: v.base_ring()
9797
Symbolic Ring
@@ -229,4 +229,5 @@ def symbolic_expression(x):
229229
return SR(result).function(*vars)
230230
return SR(x)
231231

232+
232233
from . import desolvers

src/sage/calculus/calculus.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2115,6 +2115,7 @@ def dummy_pochhammer(*args):
21152115
from sage.functions.gamma import gamma
21162116
return gamma(x + y) / gamma(x)
21172117

2118+
21182119
#######################################################
21192120
#
21202121
# Helper functions for printing latex expression

0 commit comments

Comments
 (0)