If you do

sage: x^a*x^b-x^c*x^d
-x^d*x^c + x^b*x^a
sage: _.simplify_full()
x^(a + b) - x^(c + d)

it will work, but apparently this simplification is not built into
Pynac, probably for good reasons?

- kcrisman

On Aug 12, 9:47 pm, vasu <tewari.v...@gmail.com> wrote:
> Hi
> Thanks for the suggestions. But there is one issue which still
> rankles. Maybe it's just me, but I would prefer
> x^a*x^b-x^c*x^d to turn up as x^(a+b)-x^(c+d)
>
> Anyway, thanks again for the help
>
> On Aug 12, 12:40 pm, kcrisman <kcris...@gmail.com> wrote:
>
>
>
> > On Aug 12, 3:24 pm, Mani Chandra <mc0...@gmail.com> wrote:
>
> > > Hi,
>
> > > In the same context, how can I get the following to work?
>
> > > A = matrix(SR, [[x, 1], [x**3, 4]])
> > > A.eigenvectors_right()
>
> > > __main__:1: UserWarning: Using generic algorithm for an inexact ring,
> > > which may result in garbage from numerical precision issues.
> > > __main__:1: UserWarning: Using generic algorithm for an inexact ring,
> > > which will probably give incorrect results due to numerical precision
> > > issues.
> > > Traceback (click to the left of this block for traceback)
> > > ...
> > > TypeError: degree() takes exactly one argument (0 given)
>
> > This got broken over a year ago, and there is a patch which has is
> > nearly ready for positive review on it.  
> > Seehttp://trac.sagemath.org/sage_trac/ticket/6934
> > for the discussion.
>
> > - kcrisman

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to