New in Wolfram
Mathematica
8: CUDA and OpenCL Support
◄
previous
|
next
►
Software Development
Symbolic Program Generation
Use
Mathematica
's symbolic capabilities to generate programs on the fly. Here, the equation is parsed and a program is generated that ray traces the implicit surface.
In[1]:=
X
tangle = (x^2 - 5)*x^2 + (y^2 - 5)*y^2 + (z^2 - 5)*z^2 + w; OpenCLImplicitRender3D[tangle, {x, y, z, w}, 7.5, "Precision" -> 0.01, "Shadows" -> False, ImageSize -> 512]
Play Animation
»
Stop Animation
»