Hello,
Sympy provides it's own matrices. As mentioned before, there needs to
be more work done with sympy in Sage so that what you tried does work.
In the meantime, look at the following example:
sage: import sympy
sage: x = sympy.Symbol('x')
sage: m = sympy.Matrix([[1,x],[x,1]])
sage: m
1 x
x
The following behavior is not what I want or expect for the ordering
of terms when Sage displays a polynomial:
sage: 1-x
1 - x
sage: 1+x
x + 1
sage: 1-x^2
1 - x^2
sage: 1+x^2
x^2 + 1
sage: 1+x-x^2
-x^2 + x + 1
sage: 1+x+x^2
x^2 + x + 1
Is there some way to let Sage know that I'd prefer a consist
> > sage: var(x)
> > x
> > sage: time sum(((x+sin(i))/x+(x-sin(i))/x).rational_simplify() for i
> > in xrange(100))
> > 200
> > CPU time: 5.29 s, Wall time: 39.10 s
> > sage: time maxima('sum(ratsimp((x+sin(i))/x+(x-sin(i))/x),i,1,100)')
> > 200
> > CPU time: 0.02 s, Wall time: 0.55 s
>
> Those
Any ideas of how I can install bioconductor packages under R from a
Notebook session.
I am getting the following errors:
from rpy import *
r.source("http://www.bioconductor.org/biocLite.R";)
r.biocLite("Biobase")
Running biocinstall version 2.1.8 with R version 2.6.1
Your version of R requires
Try this in Sage:
R. = QQ[]
M=matrix(R,2,3,[1,2,3,a,b,c])
M.permanent()
N = M.substitute(a=400,b=2,c=0)
print "Happy", N.permanent()
Jaap
Permanents are here forever!
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To