|
15 | 15 |
|
16 | 16 | EXAMPLES::
|
17 | 17 |
|
18 |
| - sage: n = var('n') |
19 |
| - sage: integrate(n^2/x,x) |
| 18 | + sage: n = var('n') # needs sage.symbolic |
| 19 | + sage: integrate(n^2/x, x) # needs sage.symbolic |
20 | 20 | n^2*log(x)
|
21 |
| - sage: ascii_art(integrate(n^2/x,x)) |
| 21 | + sage: ascii_art(integrate(n^2/x, x)) # needs sage.symbolic |
22 | 22 | 2
|
23 | 23 | n *log(x)
|
24 |
| - sage: ascii_art(integrate(n^2/(pi*x),x)) |
| 24 | + sage: ascii_art(integrate(n^2/(pi*x), x)) # needs sage.symbolic |
25 | 25 | 2
|
26 | 26 | n *log(x)
|
27 | 27 | ---------
|
|
40 | 40 | sage: from sage.repl.interpreter import get_test_shell
|
41 | 41 | sage: shell = get_test_shell()
|
42 | 42 | sage: shell.run_cell('%display ascii_art')
|
43 |
| - sage: shell.run_cell("i = var('i')") |
44 |
| - sage: shell.run_cell('sum(factorial(i)*x^i, i, 0, 10)') |
| 43 | + sage: shell.run_cell("i = var('i')") # needs sage.symbolic |
| 44 | + sage: shell.run_cell('sum(factorial(i)*x^i, i, 0, 10)') # needs sage.symbolic |
45 | 45 | 10 9 8 7 6 5 4 3
|
46 | 46 | 3628800*x + 362880*x + 40320*x + 5040*x + 720*x + 120*x + 24*x + 6*x
|
47 | 47 | <BLANKLINE>
|
48 | 48 | 2
|
49 | 49 | + 2*x + x + 1
|
50 |
| - sage: shell.run_cell('3/(7*x)') |
| 50 | + sage: shell.run_cell('3/(7*x)') # needs sage.symbolic |
51 | 51 | 3
|
52 | 52 | ---
|
53 | 53 | 7*x
|
54 |
| - sage: shell.run_cell('list(Compositions(5))') |
| 54 | + sage: shell.run_cell('list(Compositions(5))') # needs sage.combinat |
55 | 55 | [ *
|
56 | 56 | [ * ** * * *
|
57 | 57 | [ * * ** *** * ** * * ** * *
|
@@ -173,8 +173,8 @@ class AsciiArt(CharacterArt):
|
173 | 173 |
|
174 | 174 | EXAMPLES::
|
175 | 175 |
|
176 |
| - sage: i = var('i') |
177 |
| - sage: ascii_art(sum(pi^i/factorial(i)*x^i, i, 0, oo)) |
| 176 | + sage: i = var('i') # needs sage.symbolic |
| 177 | + sage: ascii_art(sum(pi^i/factorial(i)*x^i, i, 0, oo)) # needs sage.symbolic |
178 | 178 | pi*x
|
179 | 179 | e
|
180 | 180 | """
|
@@ -216,9 +216,9 @@ def ascii_art(*obj, **kwds):
|
216 | 216 |
|
217 | 217 | EXAMPLES::
|
218 | 218 |
|
219 |
| - sage: result = ascii_art(integral(exp(x+x^2)/(x+1), x)) |
| 219 | + sage: result = ascii_art(integral(exp(x+x^2)/(x+1), x)) # needs sage.symbolic |
220 | 220 | ...
|
221 |
| - sage: result |
| 221 | + sage: result # needs sage.symbolic |
222 | 222 | /
|
223 | 223 | |
|
224 | 224 | | 2
|
@@ -265,14 +265,14 @@ def ascii_art(*obj, **kwds):
|
265 | 265 |
|
266 | 266 | TESTS::
|
267 | 267 |
|
268 |
| - sage: n = var('n') |
269 |
| - sage: ascii_art(sum(binomial(2 * n, n + 1) * x^n, n, 0, oo)) |
| 268 | + sage: n = var('n') # needs sage.symbolic |
| 269 | + sage: ascii_art(sum(binomial(2 * n, n + 1) * x^n, n, 0, oo)) # needs sage.symbolic |
270 | 270 | / _________ \
|
271 | 271 | -\2*x + \/ 1 - 4*x - 1/
|
272 | 272 | -------------------------
|
273 | 273 | _________
|
274 | 274 | 2*x*\/ 1 - 4*x
|
275 |
| - sage: ascii_art(list(DyckWords(3))) |
| 275 | + sage: ascii_art(list(DyckWords(3))) # needs sage.combinat |
276 | 276 | [ /\ ]
|
277 | 277 | [ /\ /\ /\/\ / \ ]
|
278 | 278 | [ /\/\/\, /\/ \, / \/\, / \, / \ ]
|
|
0 commit comments