Plot a stereographic hypercube in a Mac's Grapher.app?

  • Thread starter Thread starter sbmarantz
  • Start date Start date
  • Tags Tags
    Plot Stereographic
Click For Summary
SUMMARY

This discussion focuses on plotting a stereographic hypercube, specifically a tesseract, using Grapher.app on macOS. The user, David, seeks elegant equations and expressions to create a rotatable projection of a tesseract, referencing various resources including Mathematica, MATLAB, and Python code. The conversation highlights the need for accessible tools and how to improvise when specific code is unavailable. Key resources shared include links to hypercube information and example codes that can be adapted for use in Grapher.app.

PREREQUISITES
  • Familiarity with Grapher.app on macOS
  • Basic understanding of hypercubes and tesseracts
  • Knowledge of mathematical equations for 3D and 4D projections
  • Experience with programming languages such as Mathematica, MATLAB, or Python
NEXT STEPS
  • Research how to implement Mathematica code in Grapher.app
  • Explore MATLAB code for 4D cube animations and adapt it for Grapher.app
  • Learn about stereographic projection techniques for hypercubes
  • Investigate Python libraries for visualizing tesseracts and how to translate that to Grapher.app
USEFUL FOR

This discussion is beneficial for mathematicians, educators, and developers interested in visualizing complex geometric shapes, particularly those using macOS and Grapher.app for mathematical modeling and presentations.

sbmarantz
Messages
2
Reaction score
2
Hello everyone, first post here.

I don't need to do this in Grapher.app (the default graphing calculator on every Mac), but it is an elegant humble little app, and I have seen the hypercube projected using it here.

I really would love to get the equations and expressions in my own file on my own computer. I'm a novice in all this, though I learn fast, so thanks in advance.

If there is some magically amazing (free) that will do this nicely on a Mac, please let me know.

The screenshot below pretty much shows what I ma trying to achieve. The equations there are more elegant than the other messes I have seen in some example viewer apps. The guy who posted that video has the full equations sadly not visible. I want to be able to get a nice projection of a tesseract that I can rotate and change variables on. It seems like something that there would be basic how-tos everywhere, but that one video I linked to above is the best thing I have found. This is a tool that is accessible to so many people, I'd love to be able to share and explore this.

My working Grapher.app file is here, just for reference.

Any advice on how to get this going?

The image is what I'm trying to create, but cannot do so far.

Thanks so much,

David
hypercube.png
 

Attachments

  • hypercube.png
    hypercube.png
    58.8 KB · Views: 1,186
Physics news on Phys.org
Here's some info on hypercubes:

https://en.wikipedia.org/wiki/Hypercube_graph

http://mathworld.wolfram.com/HypercubeGraph.html

and here's some mathematica code that you could port to Grapher.app

https://mathematica.stackexchange.c...o-create-this-four-dimensional-cube-animation

and here's a similar one done in MATLAB:

https://gist.github.com/krazkidd/b8bf11892e243e98c096

and here's a similar one done in Python:

https://www.nodebox.net/code/index.php/shared_2007-05-31-00-23-43

You might also extract the equations used in the Youtube video if you can see them clear enough.

Hope this helps, I searched around at www.PacificT.com but couldn't find the tesseract code shown in the video. Sometimes the code just isn't there for what you want and so you need to improvise.
 
  • Like
Likes sbmarantz
Hello jedishrfu,

Thanks so much for these links to resources. I'll check this out and post back if I can figure it out. This is a big help.

– David

jedishrfu said:
Here's some info on hypercubes:

https://en.wikipedia.org/wiki/Hypercube_graph

http://mathworld.wolfram.com/HypercubeGraph.html

and here's some mathematica code that you could port to Grapher.app

https://mathematica.stackexchange.c...o-create-this-four-dimensional-cube-animation

and here's a similar one done in MATLAB:

https://gist.github.com/krazkidd/b8bf11892e243e98c096

and here's a similar one done in Python:

https://www.nodebox.net/code/index.php/shared_2007-05-31-00-23-43

You might also extract the equations used in the Youtube video if you can see them clear enough.

Hope this helps, I searched around at www.PacificT.com but couldn't find the tesseract code shown in the video. Sometimes the code just isn't there for what you want and so you need to improvise.
 
  • Like
Likes berkeman

Similar threads

  • · Replies 104 ·
4
Replies
104
Views
7K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K