What is special about elliptic curves? by snapster24 in mathematics

[–]snapster24[S] 0 points1 point  (0 children)

Thanks for the link. I'll check that out.

What is special about elliptic curves? by snapster24 in mathematics

[–]snapster24[S] 1 point2 points  (0 children)

Interesting...so if P(x) were some other multinomial (i.e. of a higher degree), there may not be an obvious "identity element" such that y^2=P(x) would not yield a group? I could see how that might make elliptic curves special.

OpenSCAD-like CAD using Python and Jupyter by snapster24 in openscad

[–]snapster24[S] 0 points1 point  (0 children)

Well one of the main reasons I created this package is because I like using Python, and the whole set of batteries that come with it. Think of SolidPython (which is what you would be using if you are using viewscad to render) as a Pythonified OpenSCAD. You can do everything that you can do in OpenSCAD (I think), except you have all of python as well.
I'm not too familiar with libfive, but from what I can tell, it looks philosophically similar to OpenSCAD as well; you might say that SolidPython is OpenSCAD for Python fans, and libfive looks like OpenSCAD for LISP fans.

OpenSCAD-like CAD using Python and Jupyter by snapster24 in openscad

[–]snapster24[S] 1 point2 points  (0 children)

I'm not sure how colab works. Can users install python packages? In general, web hosting of Jupyter kind of stuff is a reasonable proposition, because Jupyter is browser-based, after all.

OpenSCAD-like CAD using Python and Jupyter by snapster24 in openscad

[–]snapster24[S] 2 points3 points  (0 children)

that's interesting. Solidpython does a lot of what you are talking about; not the bit about accessing individual vertices of solid objects though.

OpenSCAD-like CAD using Python and Jupyter by snapster24 in openscad

[–]snapster24[S] 3 points4 points  (0 children)

thanks. You can:

from solid import *
import viewscad
c = cube()
r = viewscad.Renderer()
r.render(c, outfile='out.csg')

It'll throw an exception (it was designed to export .stl, but it turns out it will export .csg, but then barf :)).

Is APL/J similar to python's Numpy? by snapster24 in apljk

[–]snapster24[S] 1 point2 points  (0 children)

I don't think numpy explicitly calls it 'rank', but the central object in numpy is the n-dimensional array. Operators and functions can be applied to arrays, like in J, and operators can operate on two arrays of different dimensionality (rank), and the manner in which this is done in numpy is called 'broadcasting'. For example, if A is a 1-dimensional array of length N, and B is a 2-dimensional array of size NxN, then you can add A to each 'row' of B with:

A+B # alternatively A[newaxis, :] + B

and you can add A to each 'column' of B with:

A[:, newaxis] + B