Linked Questions

3 votes
2 answers
1k views

Stopping Mathematica from reordering expressions [duplicate]

I want Mathemtica to stop manipulating my polynomials! I mean, I want the output of Print[3 x + 5 + x^2] to be just $3x+5+x^2$, not $5+3x+x^2$ as Mathematica ...
Behzad's user avatar
  • 575
3 votes
1 answer
130 views

Elimination of "1" in HoldComplete [duplicate]

HoldComplete[2 3 3] will return HoldComplete[2 3 3]. HoldComplete[b a] will return ...
Wjx's user avatar
  • 9,588
602 votes
19 answers
156k views

Where can I find examples of good Mathematica programming practice?

I consider myself a pretty good Mathematica programmer, but I'm always looking out for ways to either improve my way of doing things in Mathematica, or to see if there's something nifty that I haven't ...
44 votes
6 answers
4k views

Mathematica Destructuring

Context I'm writing a function that look something like: ...
user avatar
32 votes
2 answers
3k views

What are some advanced uses for Block?

I read the answers to this question (What are the use cases for different scoping constructs?) and this one (Condition, Block, Module - which way is the most memory and computationally efficient?). ...
VF1's user avatar
  • 4,722
10 votes
4 answers
1k views

HoldForm does not Hold Form for fractions sometimes

I'm facing a strange behavior of HoldForm. I need to display 1/2*3/4 in LaTeX like this : $$ \frac{1}{2} \times \frac{3}{4} $$ ...
Crypto's user avatar
  • 372
7 votes
5 answers
475 views

How to display operations on list elements

When applying some arithmetic operation on two lists, I'd like to display the actual operations between the elements of each list. For example, {1, 1} + {1, -1} ...
seismatica's user avatar
  • 5,101
6 votes
5 answers
4k views

Replace symbols with values without evaluation

If I have assigned values to a, b and c: a=7; b=5; c=6; ...
Tyilo's user avatar
  • 1,545
11 votes
2 answers
2k views

Displaying index as subscript on output: e.g. C[i] -> C_i with Notation[...] or Interpretation[..]?

You have all convinced me not to type in formulas with subscripts. However, in order to be able to match the subscripts in my whiteboard math, I figure a 2nd best solution is to want to display ...
jlperla's user avatar
  • 967
7 votes
3 answers
238 views

Why does TraditionalForm[Inactivate[x y]] show x * y ? instead of x y?

Given that both x and y are expressions, in my case x is ...
John McGee's user avatar
  • 2,538
7 votes
2 answers
390 views

HoldForm[Operator ##] on some list

Recently in response to this question Mr.Wizard suggested an unusual way to summing numbers. This doesn't seem to be documented. ...
Pankaj Sejwal's user avatar
3 votes
1 answer
162 views

Apply functions to a BlankNullSequence

I'd need to apply all functions in a list to a BlankNullSequence (___) But when I tried ...
Giancarlo's user avatar
  • 712
6 votes
1 answer
129 views

Hold[Dataset[__]] not holding

Bug introduced in 10.0 and fixed in 11.0.0 With Hold[Dataset[Random[]]] instead of an expected Hold[Dataset[Random[]]] ...
Ronald Monson's user avatar
7 votes
1 answer
120 views

Why doesn't defined MakeBoxes display what is constructed in RHS?

Inspired by the @ybeltukov 's answer to this question, if I have the following polynomial poly = a^2 + (a^2 + b^2 - c^2)*x + b^2*x^2; var = x; this generates ...
QuantumDot's user avatar
  • 19.7k