web interface proof of concept



yes it dies if input is required back from the user. Under
a normal maxima session it replies with
     2
Is  a  - 4  positive or negative?

Unfortunately batch mode does not exit but waits for input
from the user. Hence 'processing' never ends. I also
noticed such behavior from a similar sequence:

integrate(x^n,x);

To get around the problem right now you have to use the
assume command. For you instance

assume (a^2 - 4 > 0);
1/(x^3+a*x^2+x);
integrate(%,x);

or in the other case (one-liners work):

assume (n > -1); integrate(x^n,x);

Right now if two people are in a session it should be fine.
As long as the processing is not occurring at the same time
it should be ok. All the command history is right now kept
on the client side. Upon submission maxima recomputes the
entire session and spits out tex to a file and then uses
tex2im to create the png which is then loaded by client. As
long as one client loads their image before another client
rewrites an image it should be ok. For lower amounts
traffic I doubt this will become a very big problem.

I'll look into the telnet idea. Thanks for the advice.

Otho

--- Richard Fateman  wrote:

> cute.
> didn't work for long for me..
> 1/(x^3+a*x^2+x);
> integrate(%,x);
>   left it in "processing".
> I quit.
> 
> What happens if 2 people connect at the same time?
> 2 full processes?
> 
> There is a telnet connection to run maxima at
> telnet://maxima.franz.com that might be of interest
> to get maxima processing itself off your computer.
> 
> 
> RJF
> 
> 
> 
> Ken Johnson wrote:
> 
> >So I started using maxima less than a year ago and I
> have
> >loved it. I needed a versatile way of using it at home,
> >work and school, so I learned some super basics of php
> and
> >javascript and put together the following: (recommended
> in
> >firefox or konqueror, I think internet explorer and
> opera
> >work but not to sure and don't use safari or it will
> crash
> >your browser). 
> > 
> >http://www.et.byu.edu/~koj/maxima.html 
> > 
> >and a screenshot at  
> >http://www.public.asu.edu/~kojohnso/icons/maxima_ss2.png
> 
> > 
> >If you refresh the page you restart. It uses a script
> >tex2im to convert the math into images. So it doesn't
> >require mathml for nice math, yet it is also fast. It
> isn't
> >perfect and more to serve as a proof of concept. I
> wanted
> >to know how much interest there is for such an interface
> >and if there is I would continue to develop it with help
> or
> >advice. 
> > 
> >It has a lot of potential. It works enough for me,
> though I
> >have incorporated some limitations (like no system
> commands
> >etc). Future major features would include other output
> like
> >the standard 2d ascii text or other forms of output,
> >loading and restoring sessions, plotting and other
> things.
> >
> >Since I had started writing this webpage I saw some
> sites
> >(via the mail list) that offer a web interface though
> >usually through an 'integrate' or 'derivative' box and
> one
> >that does a general interface here that also looks
> >interesting. 
> > 
> >http://icm.mcs.kent.edu/research/demo.html 
> > 
> >Let me know what you think. 
> > 
> >OthO Johnson
> >
> >
> >		
> >____________________________________________________
> >Start your day with Yahoo! - make it your home page 
> >http://www.yahoo.com/r/hs 
> > 
> >
> >_______________________________________________
> >Maxima mailing list
> >Maxima@www.math.utexas.edu
> >http://www.math.utexas.edu/mailman/listinfo/maxima
> >  
> >
> 
> 



		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs