Ask Your Question

torrho's profile - activity

2021-03-15 16:36:59 +0200 received badge  Notable Question (source)
2020-06-07 04:45:08 +0200 received badge  Popular Question (source)
2017-01-26 11:47:53 +0200 received badge  Notable Question (source)
2017-01-26 11:47:53 +0200 received badge  Popular Question (source)
2014-01-03 23:00:17 +0200 received badge  Supporter (source)
2013-06-19 18:37:49 +0200 commented answer How does one use the qhull optional package?

I have no idea why I didn't think of that. I was going nuts over this. Thanks!

2013-06-19 18:37:14 +0200 received badge  Scholar (source)
2013-06-19 18:37:14 +0200 marked best answer How does one use the qhull optional package?

First, you can install it by typing:

$ sage -i qhull

Then, i do not think that there in an interface with qhull inside Sage. So, you have to use it from a shell, as if you installed it on your OS:

$ sage -sh

To get help and examples, just type:

(sage-sh) user@machine:~$ qhull

And then, you can try one of the examples:

(sage-sh) user@machine:~$ rbox y 1000 W0 | qhull

Convex hull of 1004 points in 3-d:

  Number of vertices: 4
  Number of facets: 4

Statistics for: rbox y 1000 W0 | qhull

  Number of points processed: 4
  Number of hyperplanes created: 5
  Number of distance tests for qhull: 11001
  CPU seconds to compute hull (after input):  0

To get informations about rbox, just type:

(sage-sh) user@machine:~$ rbox

EDIT : qhull is shipped with scipy (and also with matplotlib from version 1.4), so you could benefit from their Cython interface to use qhull features within Sage (Delaunay triangulation, Voronoi tesselation, convex hull), see this page.

2013-06-19 10:50:53 +0200 commented answer PySDE: How to import this Python package?

@Rolandb Do you have ArcSDE's C API library?

2013-06-18 21:31:37 +0200 answered a question PySDE: How to import this Python package?

have you tried the following:

1) 2) f

  1. download the pysde-master.zip from github
  2. in command line change directory to the download folder

    cd /path/to/download/folder

  3. in command line unzip the file

    unzip pysde-master.zip

  4. in command line run the following

    /path/to/sage/folder/sage/local/bin/python pysde-master/python/setup.py install

hopefully this helps!

2013-06-18 21:22:00 +0200 asked a question How does one use the qhull optional package?

Has anyone used the qhull optional package? I'm not so sure on how to use it. Is there a tutorial on this?

2013-05-09 10:14:16 +0200 received badge  Student (source)
2013-05-02 13:20:32 +0200 asked a question Create curved edges in a graph

Hello,

It seems that I am only able to create rectilinear graphs in sage. e.g. $K_{13}$ in two concentric circles:

g = graphs.CompleteGraph(13)
_circle_embedding(g,[0,1,2,3,4,5,6],center=(0,0),radius=6,shift=0)
_circle_embedding(g,[7,8,9,10,11,12],center=(0,0),radius=12,shift=0)
g.show()

I'd like to add an image of what this code produces, but I don't have enough karma.

I want my edges to have curves; something like this Paley Graph.

Any ideas on how to do this?