Re: [sage-support] Re: Using lrs in Sage

2013-09-12 Thread Vincent Knight
Thanks Dima, That's helpful if only to know that I'm not missing something and there would be more work to do. I'll maybe try to do that at some point! Vince On 10 September 2013 09:55, Dima Pasechnik dimp...@gmail.com wrote: On 2013-09-10, Vince vincent.kni...@gmail.com wrote: I've seen

[sage-support] Latex in interact?

2013-09-12 Thread Jotace
Hi all, I'm trying to do an interact to illustrate the curvature of a curve given by y=f(x). Here is the code, but at the end I cannot properly show the function k(x). What's wrong? What should I do? var('x') f(x)=x^4-2*x^2 @interact def _(f=input_box(x^4-2*x^2, width=15,

[sage-support] Re: Latex in interact?

2013-09-12 Thread Jason Grout
On 9/12/13 9:14 AM, Jotace wrote: html('La fonction de courbure est', latex(k)) The html function just takes a single string, not multiple strings, so you could do something like html('La fonction de courbure est $%s$'%latex(k)) (the %s is replaced with the result of latex(k).

[sage-support] Notebook input rules

2013-09-12 Thread jorges
Hi The home page of the help in the notebook (e.g. http://localhost:8080/help) has some info about using the sage notebook. In the section Useful Tips / Input Rules states that one can paste text directly from the examples and sage would be wise enough to evaluate only the lines starting with

Re: [sage-support] sagetex and beamer

2013-09-12 Thread William Stein
For what it is worth, this works: \documentclass{beamer} \usepackage{sagetex} \begin{document} \begin{sagesilent} G = r\begin{frame} Hello World \end{frame} \end{sagesilent} \sagestr{G} \end{document} You might be able to put all the contents of the sagesilent

[sage-support] sagetex and beamer

2013-09-12 Thread David Roe
I'm trying to write some sagetex code that generates row reduction examples for matrices and I ran into a compatibility problem that seems to be different from the ones described in section 4.1 of the Sagetex manual. Here's a minimal example: \documentclass{beamer} \usepackage{sagetex}

Re: [sage-support] sagetex and beamer

2013-09-12 Thread Dan Drake
Hi David, On Thu, 12 Sep 2013 at 11:51AM -0600, David Roe wrote: I'm trying to write some sagetex code that generates row reduction examples for matrices and I ran into a compatibility problem that seems to be different from the ones described in section 4.1 of the Sagetex manual. Here's a

Re: [sage-support] sagetex and beamer

2013-09-12 Thread William Stein
On Thu, Sep 12, 2013 at 2:20 PM, Dan Drake ddr...@math.wisc.edu wrote: Hi David, On Thu, 12 Sep 2013 at 11:51AM -0600, David Roe wrote: I'm trying to write some sagetex code that generates row reduction examples for matrices and I ran into a compatibility problem that seems to be different

Re: [sage-support] Re: Latex in interact?

2013-09-12 Thread William Stein
On Thu, Sep 12, 2013 at 5:24 PM, P Purkayastha ppu...@gmail.com wrote: On 09/12/2013 10:14 PM, Jotace wrote: Hi all, I'm trying to do an interact to illustrate the curvature of a curve given by y=f(x). Here is the code, but at the end I cannot properly show the function k(x). What's wrong?

[sage-support] Re: Latex in interact?

2013-09-12 Thread P Purkayastha
On 09/12/2013 10:14 PM, Jotace wrote: Hi all, I'm trying to do an interact to illustrate the curvature of a curve given by y=f(x). Here is the code, but at the end I cannot properly show the function k(x). What's wrong? What should I do? var('x') f(x)=x^4-2*x^2 @interact def

Re: [sage-support] Latex in interact?

2013-09-12 Thread Tom Boothby
You can't just put that second argument into html -- the following works for me: var('x') f(x)=x^4-2*x^2 @interact def _(f=input_box(x^4-2*x^2, width=15, label=$f(x)=$),a=input_box(-2, width=5, label=$a=$),b=input_box(2, width=5, label=$b=$)): Cf=plot(f,x,-2,2,color='blue', thickness=3)