Wolfram Research

Function Repository Resource:

Magic3D

Source Notebook

Generate a magic cube

Contributed by: Aster Gal

ResourceFunction["Magic3D"][n]

generates a magic cube of rank n.

Details and Options

This function has been deprecated and replaced by ResourceFunction["MagicCube"].
The value for n must be an integer greater than 2.

Examples

Basic Examples

Generate a magic cube of rank 3:

In[1]:=
ResourceFunction["Magic3D"][3]
Out[1]=

Applications

Visualize a magic cube of rank 9:

In[2]:=
Image3D[Rescale[ResourceFunction["Magic3D"][9]]]
Out[2]=

Resource History

License Information