Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
fix doctest inside it documentation ; wrap some long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Nov 19, 2021
1 parent d3ec3aa commit 9e48365
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/doc/it/tutorial/tour_algebra.rst
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ la notazione :math:`x=x_{1}`, :math:`y=x_{2}`:

sage: de1 = maxima("2*diff(x(t),t, 2) + 6*x(t) - 2*y(t)")
sage: lde1 = de1.laplace("t","s"); lde1
2*((-%at('diff(x(t),t,1),t=0))+s^2*'laplace(x(t),t,s)-x(0)*s)-2*'laplace(y(t),t,s)+6*'laplace(x(t),t,s)
2*((-%at('diff(x(t),t,1),t = 0))+s^2*'laplace(x(t),t,s)-x(0)*s) -2*'laplace(y(t),t,s)+6*'laplace(x(t),t,s)

Questo è di difficile lettura, ma dice che

Expand All @@ -199,7 +199,7 @@ trasformata di Laplace della seconda equazione:

sage: de2 = maxima("diff(y(t),t, 2) + 2*y(t) - 2*x(t)")
sage: lde2 = de2.laplace("t","s"); lde2
(-%at('diff(y(t),t,1),t=0))+s^2*'laplace(y(t),t,s)+2*'laplace(y(t),t,s)-2*'laplace(x(t),t,s)-y(0)*s
(-%at('diff(y(t),t,1),t = 0))+s^2*'laplace(y(t),t,s) +2*'laplace(y(t),t,s)-2*'laplace(x(t),t,s) -y(0)*s

che significa

Expand Down
11 changes: 8 additions & 3 deletions src/sage/symbolic/assumptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@
Here is the list of acceptable features::
sage: ", ".join(map(str, maxima("features")._sage_()))
'integer, noninteger, even, odd, rational, irrational, real, imaginary, complex, analytic, increasing, decreasing, oddfun, evenfun, posfun, constant, commutative, lassociative, rassociative, symmetric, antisymmetric, integervalued'
'integer, noninteger, even, odd, rational, irrational, real, imaginary,
complex, analytic, increasing, decreasing, oddfun, evenfun, posfun,
constant, commutative, lassociative, rassociative, symmetric,
antisymmetric, integervalued'
Set positive domain using a relation::
Expand Down Expand Up @@ -149,8 +152,10 @@ def __init__(self, var, assumption):
Here is the list of acceptable features::
sage: ", ".join(map(str, maxima("features")._sage_()))
'integer, noninteger, even, odd, rational, irrational, real, imaginary, complex, analytic, increasing, decreasing, oddfun, evenfun, posfun, constant, commutative, lassociative, rassociative, symmetric, antisymmetric, integervalued'
'integer, noninteger, even, odd, rational, irrational, real,
imaginary, complex, analytic, increasing, decreasing, oddfun,
evenfun, posfun, constant, commutative, lassociative, rassociative,
symmetric, antisymmetric, integervalued'
"""
self._var = var
self._assumption = assumption
Expand Down

0 comments on commit 9e48365

Please sign in to comment.