Skip to content

Commit 7c029f3

Browse files
committed
trac 17447: further doctest adjustments
1 parent 7956412 commit 7c029f3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/doc/ja/tutorial/tour_algebra.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Sageを使って常微分方程式を研究することもできる. :math:`x'
164164
::
165165

166166
sage: t = var('t') # 変数 t を定義
167-
sage: x = function('x',t) # x を t の関数とする
167+
sage: x = function('x')(t) # x を t の関数とする
168168
sage: DE = diff(x, t) + x - 1
169169
sage: desolve(DE, [x,t])
170170
(_C + e^t)*e^(-t)

src/doc/pt/tutorial/tour_algebra.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ ordinárias. Para resolver a equação :math:`x'+x-1=0`:
151151
::
152152

153153
sage: t = var('t') # define a variable t
154-
sage: x = function('x',t) # define x to be a function of that variable
154+
sage: x = function('x')(t) # define x to be a function of that variable
155155
sage: DE = diff(x, t) + x - 1
156156
sage: desolve(DE, [x,t])
157157
(_C + e^t)*e^(-t)

src/sage/symbolic/expression.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5645,7 +5645,7 @@ cdef class Expression(CommutativeRingElement):
56455645
56465646
We can find coefficients of symbolic functions, :trac:`12255`::
56475647
5648-
sage: g = function('g', var('t'))
5648+
sage: g = function('g')(var('t'))
56495649
sage: f = 3*g + g**2 + t
56505650
sage: f.coefficients(g)
56515651
[[t, 0], [3, 1], [1, 2]]

src/sage/tests/french_book/calculus_doctest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
Sage example in ./calculus.tex, line 122::
4747
4848
sage: y = var('y'); u = sin(x) + x*cos(y)
49-
sage: v = u.function(x)(y); v
49+
sage: v = u.function(x,y); v
5050
(x, y) |--> x*cos(y) + sin(x)
5151
sage: w(x, y) = u; w
5252
(x, y) |--> x*cos(y) + sin(x)

0 commit comments

Comments
 (0)