Linked Questions

602 votes
19 answers

Where can I find examples of good Mathematica programming practice?

I consider myself a pretty good Mathematica programmer, but I'm always looking out for ways to either improve my way of doing things in Mathematica, or to see if there's something nifty that I haven't ...
156 votes
9 answers

General strategies to write big code in Mathematica?

I think after six months of exposure to Mathematica and the Wolfram Language I am fairly OK with writing short codes and snippets. However, what are some general strategies to use in order to write ...
Ali Hashmi's user avatar
  • 8,950
42 votes
9 answers

How to create animated snowfall?

Well, the title is self-explanatory. What sorts of snowfall can we generate using Mathematica? There are two options I suggest to consider: 1) Continuous GIF animations with smallest possible number ...
faleichik's user avatar
  • 12.6k
39 votes
4 answers

How to create strong types?

In a program I'm writing, I create a list of lists, that looks something like this: {{100, {1,2,3,4,5}}, {105, {2,4,6,8}}, {42, {42,39,56}}} I then pass this ...
shanusmagnus's user avatar
  • 1,159
40 votes
3 answers

Antialiasing in 3D

Is it possible? Is it platform specific? Does it rely on the graphics hardware? Why does the antialiasing slider under Preferences > Appearance > Graphics do nothing? I remember seeing some post-...
István Zachar's user avatar
37 votes
2 answers

Playing with Matrix falling code in Mathematica

I was trying to create a Matrix falling code image with Mathematica. Here is my code: ...
Murta's user avatar
  • 26.2k
32 votes
2 answers

Creating a simulation of our Solar System

As the title says, my objective is to create a simulation of the motion of the planets in our Solar System using Mathematica. All the theoretical background regarding the equations of motion of ...
Vaggelis_Z's user avatar
  • 8,620
15 votes
2 answers

How can I create a fountain effect?

Inspired by this (please use Chrome or Firefox), I tried to simulate it, but I couldn't do it. I'm not familiar with Dynamic. Here is my simple code: ...
matrix42's user avatar
  • 6,946
12 votes
5 answers

Randomly assigning color to Graphics3D objects?

I have a set of Graphics3D primitives (here, spheres) which I would like to assign either: One of a subset of colors, e.g. {Green, Red} A random color over some RGB interval Writing something like: ...
Roger Harris's user avatar
  • 1,497
7 votes
1 answer

Create a "perspective animation"

Inspired by How can this confetti code be improved to include shadows and gravity? I would like to create my new experiment/stimuli using Mathematica. The idea is to study how people move their eyes ...
500's user avatar
  • 5,529
1 vote
1 answer

How can I simulate a pot lid rotating around an axis that is quickly rotating?

How can I simulate the rotation of a pot lid about an axis that is quickly rotating as in the following image? I'm particular interested in the motion of the red dot. Here is my attempt: ...
xslittlegrass's user avatar
8 votes
1 answer

How to start simulating physical problems?

I'm quite new to Mathematica, I have version 9. I need to use it to simulate some physical problems. I know the equations (like Maxwell's equations and Newton's laws and so on), but I have no real ...
Foo Bar's user avatar
  • 335
4 votes
1 answer

Manipulating a Graphics3D output with a large number of geometric primitives

I'm attempting to view and rotate a Graphics3D object with a very large set of geometric primitives ($\approx 10^6$ objects such as spheres or lines), and everything is functioning very slowly. Are ...
Roger Harris's user avatar
  • 1,497
3 votes
0 answers

Graphics3D: How to arrange ViewPoint etc to get Star Wars opening scene battleship overflight?

I'd like to see if I can get a Graphics3D animation of something akin to the opening scene of Star Wars where a battle ship flies in overhead (2:17 into this clip). ...
Craig Carter's user avatar
  • 4,250