[sage-support] Re: Computational geometry in the plane: in Sage?

2014-04-24 Thread Dominique Laurain
I need same packages that Ed asked for. Nowadays I do geometry coding myself basic functions in SAGE worksheets (to do intersection of lines etc). I do this using the Rational Trigonometry philosophy :-)..see njwilderger youtube videos and book. Previously I played a little with Tex tools

Re: [sage-support] Installing Python module in Sage (Ubuntu)

2014-04-24 Thread v_2e
Hello! On Wed, 23 Apr 2014 15:40:10 -0700 William Stein wst...@gmail.com wrote: 0. Install the necessary devel libraries for Ubuntu: sudo apt-get install h5utils libhdf5-dev libhdf5-doc 1. Install PIP: sage -sh wget

Re: [sage-support] Re: Extension of a field extension

2014-04-24 Thread Irene
Ok! Thank you! Do you have some idea about the first question? *I want to add to A1 the square root of theta^3+3*theta+5.* *The problem is that when I consider the following:* gamma2=theta^3+3*theta+5 AA1.xbar=PolynomialRing(A1) AA.gamma=A1.extension(xbar^2-gamma2)

[sage-support] Re: Installing Python module in Sage (Ubuntu)

2014-04-24 Thread Simon King
Hi! On 2014-04-24, v...@ukr.net v...@ukr.net wrote: I usually install the additional python packages this way: 1. wget 'http://python_package.tar.gz' 2. tar xvf python_package.tar.gz 3. cd python_package 4. sage -python setup.py install Is this a correct method? Should work too,

[sage-support] Re: Installing Python module in Sage (Ubuntu)

2014-04-24 Thread leif
v...@ukr.net wrote: I usually install the additional python packages this way: 1. wget 'http://python_package.tar.gz' 2. tar xvf python_package.tar.gz 3. cd python_package 4. sage -python setup.py install Is this a correct method? Steps 2 to 4 *used to be* equivalent to simply doing

[sage-support] Re: Computational geometry in the plane: in Sage?

2014-04-24 Thread Volker Braun
We do have convex hull and lines. What would be lacking for your application are discs and their intersection with polyhedra. sage: line = Polyhedron(vertices=[(0,-1)], lines=[(1,1)]) sage: (triangle line).vertices() (A vertex at (8/5, 3/5), A vertex at (3/2, 1/2)) On Thursday, April 24, 2014

[sage-support] Re: wrong or nonexistent results for various infinite sums

2014-04-24 Thread kcrisman
which, to me, is a very useful answer. But other sums are simply wrong. k = var('k') sum(x^(2*k)/factorial(2*k),k,0,oo) I'm working with Maxima 5.33.0. I get simplify_sum ('sum(x^(2*k)/factorial(2*k),k,0,inf)); = sqrt(%pi)*bessel_i(-1/2,x)*sqrt(x)/sqrt(2) which seems

[sage-support] How to define a homomorphism between two algebras

2014-04-24 Thread Irene
I have defined two extensions A1 and A2 over a finite field Fp2 with generator b, A1.theta=Fp2.extension(Ep) A2.z=Fp2.extension(Q) being Ep and Q polynomials. Now I want to define a homomorphism between those algebras. I have already computed alpha, that is the element in A2 where theta is

Re: [sage-support] Re: Computational geometry in the plane: in Sage?

2014-04-24 Thread Ed Scheinerman
Glad to see this has gained some traction. Here is an illustration of the immediate issue for which this would have been helpful. I wanted to produce an illustration explaining lines in the hyperbolic plane using the Poincare disk model. It's the arc of a circle whose end points are on a given

[sage-support] Re: How to define a homomorphism between two algebras

2014-04-24 Thread Peter Bruin
Can you post a complete example? The following (simple) example works for me (at least in 6.2.beta8): sage: F=GF(5).extension(2) sage: A1.y=F.extension(x^2+3) sage: A2.z=F.extension(x^2+3) sage: A1.hom([z],A2) Ring morphism: From: Univariate Quotient Polynomial Ring in y over Finite Field in

Re: [sage-support] Re: Computational geometry in the plane: in Sage?

2014-04-24 Thread Peter Bruin
A certain amount of work on adding functionality for hyperbolic geometry to Sage has been done in recent years, see here: http://trac.sagemath.org/ticket/9439 There seem to be several different implementations by different authors; I am not sure about the status of all this work and how much