On Mon, 02 Apr 2012 at 12:32PM -0500, Jason Grout wrote:
> For example, we could have truly dynamic graphs all in
> the browser client.  Imagine doing:
> 
> var('a')
> plot(sin(a*x), (x,0,1))
> 
> and having a javascript graph pop up with a slider for a.  Or
> 
> var('a')
> @interact
> def _(a=(0,1)):
>     interactive_plot(sin(a*x), (x,0,1))
> 
> and having the interact slider directly control a javascript plot of
> sin(ax).  We could do that if we can translate sin(a*x) into a
> javascript function, then send that javascript function to the
> browser.

I was just looking at Flot [1] yesterday, and we could definitely do
something like that. We could also look at what GeoGebra is doing with
their HTML5 export stuff, which can (I think) already do something like
your sin(a*x) example.

Dan


References:
[1]  https://code.google.com/p/flot/

--
---  Dan Drake
-----  http://mathsci.kaist.ac.kr/~drake
-------

Attachment: signature.asc
Description: Digital signature

Reply via email to