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)
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 _(f=input_box(x^4
On Thu, Sep 12, 2013 at 5:24 PM, P Purkayastha 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? W
On Thu, Sep 12, 2013 at 2:20 PM, Dan Drake 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 from the ones
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
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}
\begin{doc
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 sages
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
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). See
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, label="$f(x)=$"),a=
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 wrote:
> On 2013-09-10, Vince wrote:
> > I've seen that lrs can be installed as an optional
11 matches
Mail list logo