New answers tagged

4 votes

Why is Alignment not honored in the first two headline columns?

Why is the third column's headline wrapped although it would fit into the column? Because you didn't set the width to be wide enough. From what I read in the documentation, it seems that for cells, ...
user avatar
  • 5,399
1 vote

How to apply the style of one set of data to another set of data?

Not entirely sure if this works for you, but this is how I'm interpreting your question... First thing to know is that BarChart can plot multiple sets of data simultaneously, and it might be easier to ...
user avatar
  • 5,399
3 votes
Accepted

How to set number of digits automatically in NumberForm?

NumberForm[tab = Table[i, {i, 0., 0.005, 0.001}], {2, -Min[RealDigits[DeleteCases[tab, 0.0]][[All, -1]]] + 1}] {0.000, 0.001, 0.002, 0.003, 0.004, 0.005}
user avatar
  • 29.4k
0 votes

How to set number of digits automatically in NumberForm?

You could parameterize the whole expression: With[ {digits = 3}, Table[NumberForm[N[i], {digits, digits}], {i, 0, 5 10^-digits, 10^-digits}]]
user avatar
  • 5,399
6 votes

How to generate a list of random numbers with conditional statements

SeedRandom[1]; rlist = RandomReal[{1, 20}, 10]; {16.5304, 3.11697, 16.001, 4.56826, 5.58586, 2.24904, 11.3027, 5.39194, 8.52412, 14.309} Using ...
user avatar
  • 16.2k
5 votes

How to generate a list of random numbers with conditional statements

One way "to generate a list of numbers with certain conditions" is to create an ImplicitRegion based on your constraints, and then use ...
user avatar
  • 29.3k
5 votes
Accepted

Applying Style to Around objects

It seems to be an oversight that an explicit font color is specified in the style sheet. For example: CurrentValue[{StyleDefinitions, "AroundTiny"}] {...
user avatar
  • 124k
5 votes
Accepted

How can I preserve parentheses enclosing a dot product in a HoldForm[]?

Putting my comment into an answer You can use PrecedenceForm to get what you want: ...
user avatar
  • 23.9k
7 votes
Accepted

How can I remove the outermost pair of brackets enclosing a Piecewise function when it occurs in an equation?

If you don't mind modifying some internal symbols, you can do: BoxForm`$PiecewiseSyntaxForm = SyntaxForm -> DirectedEdge; Then, the parentheses should be gone.
user avatar
  • 124k

Top 50 recent answers are included