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.
3
votes
0answers
29 views
Triggering actions when a variable is set
Some built-in variables trigger actions when their values are changed:
...
0
votes
0answers
36 views
How can I import sound from within a Manipulate expression?
I want to import sound from a file, record, and import sound.
...
0
votes
0answers
15 views
Conflict among Permutations and Graph utilities once Combinatorica is loaded [duplicate]
I have tried to figure out and solve the problem of compatibility of Permutations and Graph utilities of Mathematica once the Combinatorica Package is loaded, but I failed :(.
Could anyone explain me ...
0
votes
2answers
46 views
characteristic polynomial based on differential equation
I have this differential equation:
$$\ddot{x}-\frac{1}{6} \dot{x} - \frac{1}{6}x = e^t$$
When I DSolve it looks like this:
...
1
vote
3answers
86 views
Minimize user defined function
I have a user defined function h[i_,j_] and I would like to find its minimum value over all integers $1 \leq i \leq 100$ and $1 \leq j \leq 100$ and $j \leq i$. I would just like Mathematica to try ...
13
votes
2answers
236 views
Fastest way to measure Hamming distance of integers
I am looking for a fast and robust way to calculate the Hamming distance of integers. The Hamming distance of two integers is the number of matching bits in their binary representations. I expect that ...
2
votes
2answers
77 views
9
votes
3answers
139 views
Custom functions by delegating options in a specific way and using core functions
I'd like to create a custom function that does essentially the same as a core function of mathematica but uses different default settings.
Example: I want a Plot function that uses Mathematica's core ...
5
votes
3answers
97 views
Unencoding encoded URLs in a function
Is there a built-in function for decoding encoded URLs in Mathematica?
I would like to convert an encoded URL, for example
...
11
votes
3answers
204 views
Accessing list elements by name
First, a bit of a long introduction to my problem:
I only have a few weeks of Mathematica experience. I am creating a mathematica application that calculates some material properties of steel based ...
-2
votes
0answers
37 views
How to perform multivariable compound error propagation? [duplicate]
I have a functional which is a function of multiple variables. These variables are also functions of some other variables, and so on. How can I propagate the errors, if every variable has some ...
2
votes
1answer
73 views
Combining two notebooks
I have a notebook which contain all the variables and defined functions. I want to do two tasks. As an example, I want to find the density and energy which have equations in terms of above mentioned ...
4
votes
0answers
53 views
Is there a way to check whether two notebooks share the same variables?
When I code in Mathematica, I often re-use code from old notebooks which fulfilled a specific purpose; for example, one testing for soft matches in strings, or one that identifies outliers on a graph ...
27
votes
9answers
6k views
Generating a Sierpinski carpet
I am trying to draw a Sierpinski_carpet. I have code that works, but I think there is a more elegant way to do than my way. Maybe I couls use Tuples or ...
5
votes
1answer
166 views
NestList and Euler's method
I am new to mathematica and so just experimenting with various programming constructs. Recently have been looking at NestList and how I could use this to implement ...