On Jun 24, 2014, at 8:11 AM, Dan Drake ddr...@math.wisc.edu wrote:
Hi,
If I start Sage within emacs with M-x run-sage, and then try to get a
docstring with plot? (or any other function), then emacs locks up and
I have to kill it and start it again.
Here's my setup:
Sage 6.3.beta4, sage-mode
I would like to print/show all the possible solutions of a system of
equations, more specifically:
sage:x,y,z = var('x,y,z')
sage:eqn =
solve([(0.5*(1/(sqrt(x^4+y^4-2*x^3*y-2*x*y^3+3*x^2*y^2-5*x^2-5*y^2+6*x*y+9)))*(4*x^3-6*x^2*y-2*y^3+6*x*y^2-10*x+6*y))==0,
I have same difficulty, even for one simple equation... :-)
2
R.x,y=QQ[]
3
f1(x) = x^6 + x^5 + x^4 + x^3 + x^2 + x + 1
4
eqn = solve([f1 == 0],x)
5
print(eqn)
6
[
0 == x^6 + x^5 + x^4 + x^3 + x^2 + x + 1
]
while removing x^6:
R.x,y=QQ[]
3
f1(x) = x^5 + x^4 + x^3 + x^2 + x + 1
4
I have same difficulty of not finding roots, even for one simple
equation... :-)
R.x,y=QQ[]
f1(x) = x^6 + x^5 + x^4 + x^3 + x^2 + x + 1
eqn = solve([f1 == 0],x)
print(eqn)
[
0 == x^6 + x^5 + x^4 + x^3 + x^2 + x + 1
]
while removing x^6:
R.x,y=QQ[]
f1(x) = x^5 + x^4 + x^3 + x^2 + x + 1
Is there a way to only add the odd integers of a sum in Sage?
Chris
--
You received this message because you are subscribed to the Google Groups
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sage-support+unsubscr...@googlegroups.com.
To
Is there a way to only add the odd integers of a sum in Sage?
Do you mean something like this?
sage: L = [1,2,3,4,5,6,7,8,9,10]
sage: L[1::2]
[2, 4, 6, 8, 10]
sage: L[0::2]
[1, 3, 5, 7, 9]
sage: sum(L[1::2])
30
I didn't know about this cool feature of slice notation until looking it up
-
Sage Version 6.2, Release Date: 2014-05-06 on Mac OS X 10.9.3 with
ImageMagick installed using Homebrew
When I first tried 'animate()' in the notebook, I got an error saying
ImageMagick was needed. Evaluating 'os.environ[PATH]' showed that the
notebook environment PATH didn't include