Questions tagged [wolfram-mathematica]

Wolfram Mathematica is a computer algebra system and programming language from Wolfram Research. Mathematica has its own Stack Exchange site at https://mathematica.stackexchange.com/ and that site is the preferred place to ask questions about it.

Wolfram Mathematica is a computer algebra system and programming language from Wolfram Research. The programming language is a term-rewriting functional programming language strongly influenced by . Not to be confused with mathematics ().

Mathematica has its own Stack Exchange site. That is the preferred site for asking questions on this topic.

Tips for asking Mathematica questions

  • Include self-contained source code or a link to a notebook that illustrates the issue
  • Include relevant image, for a graphics related question

A chat room for the tag is available here. It is intended for discussion of some meta-related problems and perhaps some social activity.

Free Mathematica Programming Book


Don't forget to check out our little Tool Bag and add your favorite tricks there.

4457 questions
1571
votes
5 answers

How do I find Waldo with Mathematica?

This was bugging me over the weekend: What is a good way to solve those Where's Waldo? ['Wally' outside of North America] puzzles, using Mathematica (image-processing and other functionality)? Here is what I have so far, a function which reduces…
Arnoud Buzing
  • 15,383
  • 3
  • 20
  • 50
238
votes
1 answer

Minimizing NExpectation for a custom distribution in Mathematica

This relates to an earlier question from back in June: Calculating expectation for a custom distribution in Mathematica I have a custom mixed distribution defined using a second custom distribution following along the lines discussed by @Sasha in a…
Jagra
  • 3,149
  • 1
  • 18
  • 19
159
votes
26 answers

What is in your Mathematica tool bag?

We all know that Mathematica is great, but it also often lacks critical functionality. What kind of external packages / tools / resources do you use with Mathematica? I'll edit (and invite anyone else to do so too) this main post to include…
Timo
  • 4,246
  • 6
  • 29
  • 42
84
votes
5 answers

Mathematica: what is symbolic programming?

I am a big fan of Stephen Wolfram, but he is definitely one not shy of tooting his own horn. In many references, he extols Mathematica as a different symbolic programming paradigm. I am not a Mathematica user. My questions are: what is this…
83
votes
9 answers

Remove White Background from an Image and Make It Transparent

We're trying to do the following in Mathematica - RMagick remove white background from image and make it transparent. But with actual photos it ends up looking lousy (like having a halo around the image). Here's what we've tried so…
dreeves
  • 26,430
  • 45
  • 154
  • 229
78
votes
7 answers

Version control of Mathematica notebooks

Mathematica notebooks are, of course, plaintext files -- it seems reasonable to expect that they should play nice with a version-control system (git in my case, although I doubt the specific system matters). But the fact is that any .nb file is…
Etaoin
  • 8,444
  • 2
  • 28
  • 44
59
votes
3 answers

Integrating notebooks to Mathematica's documentation center

If you have been using Mathematica for a while you probably have grown attached to the documentation center. There is always something new that you find in those pages. Let it be options for a function or just some examples that at some point did…
jmlopez
  • 4,853
  • 4
  • 40
  • 74
57
votes
2 answers

Can prettify.js be extended to support Mathematica?

The mathematica.SE is currently in private beta and will open to the public in a few days. Stack Overflow and related sites use prettify.js, however Mathematica is not a supported language. It would be pretty awesome to have a custom highlighting…
anon
53
votes
3 answers

Upload images to Imgur from Mathematica

Here's a challenge to all mathematica tag followers. Let's make it a lot more convenient to insert images into SO post from Mathematica by creating an imgur uploader. How can we create a function imgur[g_] that will rasterize its argument (making…
Szabolcs
  • 24,728
  • 9
  • 85
  • 174
46
votes
4 answers

Mathematica Module versus With or Block - Guideline, rule of thumb for usage?

Leonid wrote in chapter iv of his book : "... Module, Block and With. These constructs are explained in detail in Mathematica Book and Mathematica Help, so I will say just a few words about them here. ..." From what I have read ( been able to find )…
nilo de roock
  • 4,077
  • 4
  • 34
  • 62
42
votes
1 answer

Mathematica 8.0 interaction with a web server JSP using HTTP POST and XML

I have been tasked with using Mathematica to interact with a third party's web server via JSP using HTTP POST and XML. Example of what I need to send:
mmorris
  • 4,006
  • 3
  • 27
  • 29
42
votes
0 answers

Mathematica evaluates expression once, then returns the expression unevaluated

Mathematica 8.0.1 on Mac OS X 10.7.2 does this: Quit the kernel and execute MathieuS[MathieuCharacteristicA[ 1, -(1/4)], -0.25`, 15.707963267948966`] MathieuS[MathieuCharacteristicA[ 1, -(1/4)], -0.25`, 15.707963267948966`] (* 5.10119…
acl
  • 6,490
  • 1
  • 27
  • 33
41
votes
4 answers

Using Mathematica to build presentations and documents

I use Mma mainly to solve relatively small problems. I want to start using it also to prepare my presentations and documents, but I am having troubles to learn how to do it from the embedded help, and I guess some good resources may be available…
Dr. belisarius
  • 60,527
  • 15
  • 115
  • 190
40
votes
2 answers

Tree data structure in Mathematica

I have used mathematica mostly as a mathematics workbench and for writing relatively small ad-hoc programs. I am however designing a system which I intend to program in Mathematica. I need to store data in a tree, and search and traverse the tree.…
nilo de roock
  • 4,077
  • 4
  • 34
  • 62
37
votes
6 answers

Simple programming techniques / tricks in Mathematica for making graphics for the math book?

I tried to use it. And it's really nice for some Plots, but when its about making for example a triangle I found it quite complicated. I figured out how to draw a triangle but how to add that angle marks, those curved lines? And since I'm beginner…
balboa
  • 951
  • 8
  • 20
1
2 3
99 100