Skip to main content

Questions tagged [design-patterns]

5 votes
2 answers
202 views

I've encountered a particular problem and was wondering if anyone has any insights on how to approach it more efficiently or elegantly. To be accurate, given the list: ...
E. Chan-López's user avatar
2 votes
1 answer
113 views

Not sure if this has been asked before, please point me to the post if it has. Is there a way to treat terms like (b+c), a**(b+c)...
JvT's user avatar
  • 33
3 votes
2 answers
313 views

I want to define a function to check whether the expression is the sum of these terms a*x+b*y^n+c*Exp[k*z] (* n can be 1*) These ...
Curious Cat's user avatar
4 votes
2 answers
316 views

Let's say we want a pattern, that matches, when expression contains some terms but it can optionaly contain some other terms. For example: ...
Gal Zajc's user avatar
  • 511
1 vote
2 answers
132 views

Recently, I have run into the problem where I need to collect the the sum of any number of gradients. I have defined a function grad[] to represent the gradient, ...
AlbertLew's user avatar
  • 493
3 votes
2 answers
1k views

Could a "verbal reasoning" problem like the following be solved with Mathematica? What comes next in the series. KD XP NG VN QJ TL TM Correct answer is <...
Manu Chadha's user avatar
1 vote
2 answers
244 views

For example,I want to match a multiple partial derivative of a function $f^{(1,0,1)}[x,y,z]$ which is the same as$\frac{\partial^2{f}}{\partial{x}\partial{z}}$.The only information given is the list ...
kikyou's user avatar
  • 13
1 vote
2 answers
160 views

Recently I was surprised by unusual performance of Cases function. The code ...
Konstantin's user avatar
12 votes
1 answer
883 views

This question is solely based upon $[1]$ and therefore, the reading of $[1]$ could be interesting. How can I export the image created, by the code in the following, with high definition, beautiful, 4K ...
M.N.Raia's user avatar
  • 503
10 votes
2 answers
993 views

I would like to know: how can I construct minimalist images like this one?
M.N.Raia's user avatar
  • 503
3 votes
1 answer
628 views

Hello I would like to do the Fourier Transform of H1'[t - L2[t]/c - L2primo[t]/c] I know that its transform has to be: ...
Martina's user avatar
  • 39
0 votes
2 answers
177 views

My problem is that in the below code, every time I want to change $g$ I also have to change $f$. Let's say we have three functions: $f$, $h$, and $g$ ($h$ is not really relevant for the question, but ...
user56834's user avatar
  • 565
26 votes
4 answers
1k views

Suppose I have a function, e.g. f[x_] := x^2 It works like this: f[5] (* 25 *) I would like to permanently modify it so ...
Szabolcs's user avatar
  • 239k
31 votes
3 answers
2k views

This is a methodological question with two parts: How to use monadic programming in Mathematica? Why use monadic programming in Mathematica? In my opinion the questions are inter-related -- we cannot ...
Anton Antonov's user avatar
0 votes
0 answers
240 views

I am trying to create a Manipulate block which contains tabels, graphs and explanations. In the first row I want to add some tables and explanations, but sometimes the tabels are cut. For doing this I ...
kobibo's user avatar
  • 215

15 30 50 per page