Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 34

Questions on writing non-trivial programs in Mathematica. Do not use this tag for questions on plotting/graphics or for questions on doing mathematics with Mathematica, where the focus is more on the math than the program.

6 votes
Accepted

Why the function cannot achieve the expected result?

Overall, I think your main confusion stems from mixing up different the programming paradigms and syntax in Mathematica. The way Functional and Rule & Patterns based programming works is different. … ; and Programming Paradigms via Mathematica (A First Course). …
Simon's user avatar
  • 10.2k
21 votes
Accepted

Importing Zip files

The documentation for the MIME type ZIP does not seem to say much about what you want to do, but luckily the first thing I tried worked! First, I saved your zip file onto my desktop. Then, I extract …
Simon's user avatar
  • 10.2k
45 votes
Accepted

Are there suitable versioning systems for Mathematica notebooks?

First, if you want to have a team working on Mathematica code, then you really should do it properly and use Wolfram Workbench. As pointed out by Leonid, notebooks are not the right tool for software …
Simon's user avatar
  • 10.2k
20 votes
Accepted

Sum over n variables

You can write a few helper functions to help you. The following can probably be streamlined... vars[s_String, n_Integer?Positive] := Table[Symbol[s <> ToString[i]], {i, 1, n}] vars[sym_Symbol, num_] …
Simon's user avatar
  • 10.2k
95 votes
Accepted

Is there an open source implementation of Mathematica-the-language?

On the implementation of a rule-based programming system and some of its applications by Mircea Marin and Temur Kutsia. …
Simon's user avatar
  • 10.2k
17 votes

Struct equivalent in Mathematica?

So the naive way to set up a data structure like struct is, as the OP suggested, to simply used DownValues and/or SubValues. In the below, I use SubValues. Copying the Wikipedia C language struct exa …
Simon's user avatar
  • 10.2k
46 votes
4 answers
10k views

How to change the default ColorData used in Mathematica's Plot?

This question leads on from the recent question What are the standard colors for plots in Mathematica? There it was determined that the default color palette used by Plot is equivalent to ColorData[1] …
Simon's user avatar
  • 10.2k