Reputation
349
Next privilege 500 Rep.
Access review queues
Badges
1 11
Impact
~2k people reached

  • 0 posts edited
  • 0 helpful flags
  • 19 votes cast
15m
comment how to map a function on a variable list
By the way, /@ works as intended: First the right hand side is evaluated and then the function is applied to this (new) List. Changes to list have thus no effect on the result. See Trace[f/@list] for details.
22m
comment how to map a function on a variable list
I would be curious to know, what you are actually trying to do. It seems to me that your question is ill-posed.
23m
comment how to map a function on a variable list
What do you modify list for?
1d
comment Update: Calculate Tensor products and traces with Mathematica
If the arguments of tp are not in the right form you could use the rule exp/.tp[a_,b_]:>tp[Expand@a,Expand@b] to expand the arguments. Then the linearity in the definition of tp would apply.
1d
comment Update: Calculate Tensor products and traces with Mathematica
The simplification rules above would either be contained in the definitions I suggested or could be added using UpValues. Also, keep in mind that "simplification" is subjective and context dependent.
1d
answered Update: Calculate Tensor products and traces with Mathematica
2d
comment Combinations of multiple matching patterns
Yes, thats what I meant. Very nice implementation, the colored disks, too.
Feb
6
comment Insufficient size of Graphics
I use Win 10 with MMA 10.3.1. Also, I use a 4K display and because of that a magnification of 2 (because of the low quality user interface of MMA this sometimes breaks things).
Feb
5
comment Combinations of multiple matching patterns
Say, you want f[x] to return x^2 for condition 1, Sin[x] for condition 2, RandomReal[] for condition 3, etc. (But, basically the wording of the question seems off to me: its not about pattern matching but String generation.)
Feb
5
comment Insufficient size of Graphics
Both options increase the maximal automatic Graphics size from 360 to 432 but the problem persists.
Feb
4
asked Insufficient size of Graphics
Feb
4
comment Rasterize and Graphics, size difference
I just noticed that this solution only works if the expressions whose width is measured happen to be small enough to fit in the standard size of Graphics. The width of very large boxes is always measured as 360.
Feb
4
answered What's the easiest way to remove overall factors from polynomials?
Feb
4
comment Combinations of multiple matching patterns
But it only works if you look for a String output that is a sequence of substrings. How would you adapt your solution if one were to call subfunctions f1[x], ..., f8[x] depending on the condition?
Feb
4
comment Combinations of multiple matching patterns
But this answer is specific to this particular String output, no?
Feb
3
answered Combinations of multiple matching patterns
Feb
2
awarded  Self-Learner
Feb
2
answered Import vs ReadList CSV file with Currency Values
Feb
2
accepted Rasterize and Graphics, size difference
Feb
2
comment Rasterize and Graphics, size difference
That does the trick, thanks.