Skip to content

Commit 6ff7f14

Browse files
author
Matthias Koeppe
committed
./sage -fixdoctests --only-tags src/sage/ext/fast_callable.pyx
1 parent 44f3ec5 commit 6ff7f14

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/sage/ext/fast_callable.pyx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ def _builder_and_stream(vars, domain):
493493
sage: _builder_and_stream(["x", "y"], ZZ)
494494
(<class 'sage.ext.interpreters.wrapper_el.Wrapper_el'>,
495495
<sage.ext.fast_callable.InstructionStream object at 0x...>)
496-
sage: _builder_and_stream(["x", "y"], RR) # optional - sage.rings.real_mpfr
496+
sage: _builder_and_stream(["x", "y"], RR) # needs sage.rings.real_mpfr
497497
(<class 'sage.ext.interpreters.wrapper_rr.Wrapper_rr'>,
498498
<sage.ext.fast_callable.InstructionStream object at 0x...>)
499499
@@ -503,7 +503,7 @@ def _builder_and_stream(vars, domain):
503503
interpreter::
504504
505505
sage: domain = RDF
506-
sage: from sage.structure.element import Element as domain # optional - sage.modules
506+
sage: from sage.structure.element import Element as domain # needs sage.modules
507507
sage: _builder_and_stream(["x", "y"], domain)
508508
(<class 'sage.ext.interpreters.wrapper_el.Wrapper_el'>,
509509
<sage.ext.fast_callable.InstructionStream object at 0x...>)
@@ -1622,7 +1622,7 @@ class IntegerPowerFunction():
16221622
sage: cube = IntegerPowerFunction(3)
16231623
sage: cube
16241624
(^3)
1625-
sage: cube(AA(7)^(1/3)) # optional - sage.rings.number_field
1625+
sage: cube(AA(7)^(1/3)) # needs sage.rings.number_field
16261626
7.000000000000000?
16271627
sage: cube.exponent
16281628
3
@@ -1820,18 +1820,18 @@ cpdef generate_code(Expression expr, InstructionStream stream):
18201820
25
18211821
sage: fc.op_list()
18221822
[('load_arg', 0), ('load_arg', 1), ('py_call', <function my_norm at 0x...>, 2), 'return']
1823-
sage: fc = fast_callable(expr) # optional - sage.symbolic
1824-
sage: fc(3.0r) # optional - sage.symbolic
1823+
sage: fc = fast_callable(expr) # needs sage.symbolic
1824+
sage: fc(3.0r) # needs sage.symbolic
18251825
4.0*pi + 12.0
1826-
sage: fc = fast_callable(x+3, domain=ZZ) # optional - sage.symbolic
1827-
sage: fc(4) # optional - sage.symbolic
1826+
sage: fc = fast_callable(x+3, domain=ZZ) # needs sage.symbolic
1827+
sage: fc(4) # needs sage.symbolic
18281828
7
1829-
sage: fc = fast_callable(x/3, domain=ZZ) # optional - sage.symbolic
1830-
sage: fc(4) # optional - sage.symbolic
1829+
sage: fc = fast_callable(x/3, domain=ZZ) # needs sage.symbolic
1830+
sage: fc(4) # needs sage.symbolic
18311831
Traceback (most recent call last):
18321832
...
18331833
TypeError: no conversion of this rational to integer
1834-
sage: fc(6) # optional - sage.symbolic
1834+
sage: fc(6) # needs sage.symbolic
18351835
2
18361836
sage: fc = fast_callable(etb.call(sin, x), domain=ZZ)
18371837
sage: fc(0)

0 commit comments

Comments
 (0)