How to make "Is x zero or nonzero?" in my function



On Mon, 11 Jun 2012, Evgeniy Maevskiy wrote:

> In my Maxima-function I have to ask the user
> 
> Is x zero or nonzero?
> Is x positive or negative?
> 
> Something like in the computation of integrate(t^x,t)

 Function: asksign (<expr>)
     First attempts to determine whether the specified expression is
     positive, negative, or zero.  If it cannot, it asks the user the
     necessary questions to complete its deduction.  The user's answer
     is recorded in the data base for the duration of the current
     computation.  The return value of `asksign' is one of `pos',
     `neg', or `zero'.

Btw, it is a good idea to create a new thread for a new topic instead 
of replying and changing the subject.

-- 
Regards,
ASK