Re: [sage-support] latex and hold parameter

2015-01-23 Thread Pedro Cruz
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

Re: [sage-support] latex and hold parameter

2015-01-20 Thread kcrisman
> > 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

Re: [sage-support] latex and hold parameter

2015-01-20 Thread Jeroen Demeyer
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

Re: [sage-support] latex and hold parameter

2015-01-20 Thread Dan Drake
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

[sage-support] latex and hold parameter

2015-01-16 Thread Pedro Cruz
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