Hello,
using Sage 6.2 there is this behaviour:
sage: SR(2).power(3,hold=True)
2^3
sage: 3*SR(2).power(3,hold=True)
3*8
or
sage: SR(2*x).power(3,hold=True)
(2*x)^3
sage: 4 * SR(2*x).power(3,hold=True)
4*(8*x^3)
which I don't know if it is expected.
Because we want some expressions no to be c
>
> as expected, this really is a bug in latex():
>
> sage: latex(120/factorial(5,hold=True))
> \frac{120}{120}
> sage: str(120/factorial(5,hold=True))
> '120/factorial(5)'
>
>
I agree, please feel free to cc: me on such a ticket. Though it may need
digging into Pynac :(
--
You received
On 2015-01-20 17:27, Dan Drake wrote:
On Fri, 16 Jan 2015 at 09:57AM -0800, Pedro Cruz wrote:
An unexpected behaviour in latex() command (both 5.12 and 6.4 Sage
versions):
sage: latex( 120/factorial(5,hold=True) )
\frac{120}{120}
sage: latex( factorial(5,hold=True) )
5!
We need to "hold" t
On Fri, 16 Jan 2015 at 09:57AM -0800, Pedro Cruz wrote:
> An unexpected behaviour in latex() command (both 5.12 and 6.4 Sage
> versions):
>
> sage: latex( 120/factorial(5,hold=True) )
> \frac{120}{120}
> sage: latex( factorial(5,hold=True) )
> 5!
>
> We need to "hold" the expression for prop
An unexpected behaviour in latex() command (both 5.12 and 6.4 Sage
versions):
sage: latex( 120/factorial(5,hold=True) )
\frac{120}{120}
sage: latex( factorial(5,hold=True) )
5!
We need to "hold" the expression for proper latex transcription.
Is there any other way to avoid latex() to comput