On Sep 2, 11:02 am, Robert Dodier <robert.dod...@gmail.com> wrote:
> FYI the Maxima functions conjugate, realpart/imagpart, & cabs/carg
> have been revised recently. Maybe you can try it with the most recent
> version (5.19.2). For the purposes of debugging I think it's best if
> you
> use Maxima directly instead of going through Sage.
>
> On Sep 2, 5:49 am, Golam Mortuza Hossain <gmhoss...@gmail.com> wrote:
>
> > This seems to be happening because maxima(via simplify)
> > treats variables as real whereas pynac treats as complex.
>
> FWIW in order for conjugate & friends to recognize variables as
> complex, probably it is necessary to declare them as such
> (i.e. declare(foo, complex)). I think domain:complex won't have
> the same effect. Maybe Sage is already calling declare.
Very interesting. Continuing from the above code:
sage: assume(a,'complex')
sage: x.conjugate().simplify()
-I*b + conjugate(a)
Clearly we were not calling declare. Is there any way to do this for
ANY globally defined variable, though? It seems overkill to put it in
var(), and one wouldn't want it to conflict with (say) assume
(n,'integer') or something.
What does domain: complex do, then? Is it for solve, perhaps?
But as Robert says, Maxima performs as advertised. I think that it is
once again clear that Maxima (like matplotlib) has a lot of
functionality which remains unexposed.
- kcrisman
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---