Well, sign(x) => pos and signum(x) => 1, but signum(sin(x)) =>
signum(sin(x)). As I say, Maxima's sign/asksign functionality (which
signum depends on) is not very powerful.
-s
On Thu, Mar 22, 2012 at 15:58, James Cloos <cloos at jhcloos.com> wrote:
> >>>>> "lm" == leon magiera <leon.magiera at wp.pl> writes:
>
> lm> I want to get the result of calculation (simplification)
>
> lm> assume( x>0, x<%pi/2 );
> lm> sign(cos(x));
>
> lm> I expect to get 1, whereas MAXIMA returns:
>
> lm> pnz
>
> I just hit that today, too. For {-1,0,1} use signum().
>
> Cf:
>
> ? sign
> vs
> ? signum
>
> -JimC
> --
> James Cloos <cloos at jhcloos.com> OpenPGP: 1024D/ED7DAEA6
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>