Skip to content

Commit 9f5a6e0

Browse files
committed
Fix doctests for elementwise function printing
1 parent a233fbe commit 9f5a6e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sympy/matrices/expressions/applyfunc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ class ElementwiseApplyFunction(MatrixExpr):
1717
>>> from sympy import exp
1818
>>> X = MatrixSymbol("X", 3, 3)
1919
>>> X.applyfunc(exp)
20-
exp(X...)
20+
exp.(X)
2121
2222
Otherwise using the class constructor:
2323
2424
>>> from sympy import eye
2525
>>> expr = ElementwiseApplyFunction(exp, eye(3))
2626
>>> expr
27-
exp(Matrix([
27+
exp.(Matrix([
2828
[1, 0, 0],
2929
[0, 1, 0],
30-
[0, 0, 1]])...)
30+
[0, 0, 1]]))
3131
>>> expr.doit()
3232
Matrix([
3333
[E, 1, 1],

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy