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
17
votes
1 answer

dynamic interactivity problem

I am trying to have two panels, the left showing a graphic and two locators, the right one a zoomed-in version in the area defined by the locators. I've tried ClearAll[mndpt]; mndpt = Compile[{{c, _Complex}, {maxiter, _Integer}}, Module[{z,…
acl
  • 6,490
  • 1
  • 27
  • 33
17
votes
1 answer

List all User-defined Variables & Functions in a Notebook in Mathematica

Is there a way to list all the user-defined variables & function in a Notebook ? I would like this for the comfort it brings to a notebook overview as well as to spot potential multiple use of a variable name (thus redefining it accidental)
500
  • 6,509
  • 8
  • 46
  • 80
17
votes
3 answers

Exporting graphics for publications: how to achieve consistent line thicknesses in plot elements?

It seems that creating publication-quality graphics with mma is a black art that dates back decades. Although things have much improved in recent years, it is still hard to get consistent results when exporting to files. The way the final result…
Leo Alekseyev
  • 12,893
  • 5
  • 44
  • 44
17
votes
3 answers

Getting the Mathematica front end to obey the FontFamily option

When it comes to Chinese characters, I am unable to get the Front End of Mathematica to use the fonts of my choice. How can I get it to use the fonts I need? Here I provide two screenshots to show the problem, one from Word (top), the other from…
Szabolcs
  • 24,728
  • 9
  • 85
  • 174
17
votes
3 answers

How to install new packages for Mathematica?

What is the proper procedure way to install new packages for Mathematica? In particular, when you download any notebook from MathWorld, you are are given a link to Mathworld packages, which is are zip files with dozens of .m files Where do they go?
Yaroslav Bulatov
  • 57,332
  • 22
  • 139
  • 197
17
votes
4 answers

Struct data type in Mathematica?

After playing with Mathematica's symbolic and numerical capabilities, I find it to be a decent programming language, too. However, something making it less appealing as a general-purpose language is the lack of C-like struct data type (or the record…
felix
  • 647
  • 1
  • 6
  • 10
17
votes
5 answers

Is there HashTable structure in Wolfram Mathematica?

I want to use a Structure like HashTable. Is there similar structure in Wolfram Mathematica?
Yongwei Xing
  • 12,983
  • 24
  • 70
  • 90
16
votes
3 answers

Mathematica's TextRecognize not up to par

Please take a look at the screenshot below and see if you can tell me why this won't work. The examples in on the reference page for TextRecognize look pretty impressive, I don't think recognizing single letters like this should be a problem. I've…
C. E.
  • 10,297
  • 10
  • 53
  • 77
16
votes
4 answers

How to programmatically obtain information about font selection in Mathematica

If I evaluate e.g. SystemDialogInput["Color"] and choose a colour, lets say red, the output cell shows RGBColor[1,0,0]. To view the font panel I can evaluate FrontEndTokenExecute["FontPanel"]. If I have some text highlighted somewhere I can change…
Mike Honeychurch
  • 1,683
  • 10
  • 17
16
votes
4 answers

How can I find all possible values for an option in Mathematica?

If I have an option, for example AxesStyle, how can I find possible values for it? I know that one of the possible values is Arrowheads, but can I find others? I was looking for lists or something like that but have been unsuccessful so far. Is…
balboa
  • 951
  • 8
  • 20
16
votes
3 answers

difference of speed in making a Table

I was reading a useful post at WRI blog on improving speed of code, and I need help in understanding this one. Compare these speeds Timing[ tbl = Table[i + j, {i, 1, 1000}, {j, 1, 1000}]; ] {0.031, Null} and Timing[ a = 1000; tbl = Table[i…
Nasser
  • 12,849
  • 6
  • 52
  • 104
16
votes
6 answers

Is there an application which supports a Mathematica-style workbook but customisable?

My son demonstrated Mathematica to me a while back. Is there anything similar which works within the workbook metaphor, but which is not limited to Mathematica?
bugmagnet
  • 7,631
  • 8
  • 69
  • 131
16
votes
4 answers

How do I get the crosshair behavior of Wolfram|Alpha 2D graphics in Mathematica?

When the mouse cursor is over a 2D plot in Wolfram|Alpha, a pair of grey lines appear that help you read the coordinates off the x and y axes. For example, I have the mouse over one of the turning points in the following plot of the Airy…
Simon
  • 14,631
  • 4
  • 41
  • 101
16
votes
1 answer

Could the notebook StyleSheet change the code behaviour?

I'd like to ask if someone had such a problem before. I have version 8.01, on windows 7, 64 bit. SP1. I have been trying to find why I get Mathematica kernel crash when I added a Tooltip[] command to some code I am writing. The notebook has the…
Nasser
  • 12,849
  • 6
  • 52
  • 104
16
votes
1 answer

Efficient way to remove empty lists from lists?

What is the most efficient way to remove all empty List[] objects from all of the Lists that appear in an expression at different levels? The empty List[] should be removed only if it is an element of another List itself.
Alexey Popkov
  • 9,355
  • 4
  • 42
  • 93