Skip to content

Commit 561d611

Browse files
committed
fix suggested details
1 parent 0b52ef2 commit 561d611

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

src/sage/calculus/functional.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,21 @@ def simplify(f, algorithm="maxima", **kwds):
3232
r"""
3333
Simplify the expression `f`.
3434
35-
See the documentation of the :meth:`simplify` method of symbolic
35+
See the documentation of the
36+
:meth:`~sage.symbolic.expression.Expression.simplify` method of symbolic
3637
expressions for details on options.
3738
38-
EXAMPLES: We simplify the expression `i + x - x`.
39+
EXAMPLES:
3940
40-
::
41+
We simplify the expression `i + x - x`::
4142
4243
sage: f = I + x - x; simplify(f)
4344
I
4445
4546
In fact, printing `f` yields the same thing - i.e., the
4647
simplified form.
4748
48-
Some simplifications are algorithm-specific :
49-
50-
::
49+
Some simplifications are algorithm-specific::
5150
5251
sage: x, t = var("x, t")
5352
sage: ex = 1/2*I*x + 1/2*I*sqrt(x^2 - 1) + 1/2/(I*x + I*sqrt(x^2 - 1))

src/sage/symbolic/expression.pyx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10623,20 +10623,20 @@ cdef class Expression(Expression_abc):
1062310623
1062410624
INPUT:
1062510625
10626-
- ``algorithm`` - one of :
10626+
- ``algorithm`` -- one of :
1062710627
10628-
- ``maxima`` : currently, sends the expression to
10629-
``maxima`` and converts it back to Sage.
10628+
- ``maxima`` : (default) sends the expression to
10629+
``maxima`` and converts it back to Sage
1063010630
1063110631
- ``sympy`` : converts the expression to ``sympy``,
1063210632
simplifies it (passing any optional keyword(s)), and
10633-
converts the result to Sage.
10633+
converts the result to Sage
1063410634
1063510635
- ``giac`` : converts the expression to ``giac``,
10636-
simplifies it, and converts the result to Sage.
10636+
simplifies it, and converts the result to Sage
1063710637
1063810638
- ``fricas`` : converts the expression to ``fricas``,
10639-
simplifies it, and converts the result to Sage.
10639+
simplifies it, and converts the result to Sage
1064010640
1064110641
.. SEEALSO::
1064210642
@@ -10684,13 +10684,13 @@ cdef class Expression(Expression_abc):
1068410684
sage: expr.simplify(algorithm='sympy')
1068510685
1/5*sqrt(5) - 1/5
1068610686
"""
10687-
if algorithm == "maxima" :
10687+
if algorithm == "maxima":
1068810688
return self._parent(self._maxima_())
10689-
if algorithm == "sympy" :
10689+
if algorithm == "sympy":
1069010690
return self._sympy_().simplify(**kwds)._sage_()
10691-
if algorithm == "giac" :
10691+
if algorithm == "giac":
1069210692
return self._giac_().simplify()._sage_()
10693-
if algorithm == "fricas" :
10693+
if algorithm == "fricas":
1069410694
return self._fricas_().simplify()._sage_()
1069510695
raise ValueError(f"algorithm {algorithm} unknown to simplify")
1069610696

0 commit comments

Comments
 (0)