On 5/28/08, ahmet alper parker <aaparker at gmail.com> wrote:
> Sometimes maxima asks questions about your variables whether they are
> greater than zero or etc. Then, it answers your question as your data. Is
> there a way to make maxima give all the results for different values and
> combinations of variables at the same time? If yes how? If no, would not it
> be a good feature to implement?
I think it's a great idea, and in fact I have written an add-on package
share/contrib/noninteractive which intercepts asksign questions and
turns them into conditional expressions. However noninteractive
sometimes fails badly. The major technical problem is that an
exception is thrown for each asksign, however, that can leave
some stuff in an un-cleaned-up state (notably stuff in the assume
database). I have thought about a way to resolve that and I have
an idea but I haven't put it into practice yet.
Aside from that, there are various improvements that could be helpful.
Be that as it may, you might give it a try. It is included in Maxima 5.15.0.
load (noninteractive);
integrate (x^k, x);
=> if equal(k+1,0) then log(x) else x^(k+1)/(k+1)
See the comments in noninteractive.mac for other examples.
HTH
Robert Dodier