How to embed a Wolfram Mathematica demonstration in your webpage in 3 easy steps

This is a test post + a tutotial on embedding your Mathematica demos in your web-page ! Convert the interactive document into a CDF (Computable Document Format). You can get a number of them in the Wolfram demonstration projects. Upload the document to your server Insert the following snippet of code, to point to the […]

Mathematica – specifying 3D vertex coordinates for a 3D graph

This is specific to Mathematica 8.*, where Graphs are atomic expressions There was no simple way to assign the 3D vertex-coordinates to the vertices of a graph. Whereas a 2D graph’s vertex-coordinates can be initialized as follows : [text] vertices = {1, 2, 3}; coords = {{0, 0}, {1, 0}, {2, 0}}; connectivity = {1 […]