Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 3066

Questions about the form and content of output returned by Mathematica for a given input or function application. This can include specific differences produced by older versions of Mathematica.

4 votes
Accepted

How to know at which point of a calculation I am while using Table

The simplest way is to put a Print expression into your Table expression. Table[Print["i = ", i]; foo[i], {i, 0, 10}] If you only want to see the what is printed while the evaluation is running and …
m_goldberg's user avatar
  • 108k
1 vote
Accepted

Confusing Preemptive Output from Reap-Sow & While Loop

Just drop the call to Print. With[{n = 3, f = N[Pi], h = 0}, Flatten[ Drop[ Reap[ d = 0; While[d < (2^n), Sow[ Extract[ Drop[First[Real …
m_goldberg's user avatar
  • 108k
1 vote

Selecting only list of function output from piecewise function output

With the definition you have given, V isn't set up to thread over lists, which is what you seem to expect it to do. You can make that work that easy enough by giving it the Listable attribute. SetAtt …
m_goldberg's user avatar
  • 108k
1 vote
Accepted

How to format output numbers like 0.?

Perhaps something like this? Clear[f] f[n_, w_Integer /; Positive[w]] := PaddedForm[N[n], {w, w}, NumberPadding -> {"", "0"}, NumberFormat -> (Row[{#1, "e", If[#3 == "", "0", #3]}] &)] Th …
m_goldberg's user avatar
  • 108k
7 votes
Accepted

Adding a label to an expression result

Presuming you only want to this special output to come from computations that bind a variable to the value of the computation, here is one way it can be done by $Pre and $Post: SetAttributes[saveSet, …
m_goldberg's user avatar
  • 108k
5 votes
Accepted

Read / Write of files which may be in use by other software

Checking that a file is in use by another application is very operating system dependent. As far as I know, Mahtematica doesn't support testing for this in user code. Reading in a file that is in use …
m_goldberg's user avatar
  • 108k
3 votes

Removing zero dot after solving

Mathematica supports two arithmetic systems, exact arithmetic and inexact arithmetic. Inexact arithmetic subdivides into machine arithmetic and arbitrary precision arithmetic. Machine arithmetic is th …
m_goldberg's user avatar
  • 108k
2 votes

Outputting a fraction on one line with an oblique division sign

Assuming you want your labels inserted into a 2D Graphic, it can be done like this: With[{n = 3}, Module[{pts, lbls}, SeedRandom@1; pts = RandomReal[1., {n, 2}]; lbls = Table[ …
m_goldberg's user avatar
  • 108k
2 votes
Accepted

Making loop based off what I can say in words

This answer is concerned about formatting the output is the style shown in the question. I start by generating the list of b values using the method given by Mr.Wizard. …
m_goldberg's user avatar
  • 108k
1 vote
Accepted

How do I interpret two apostrophes in output

You can see how it is interpreted by Mathematica by inactivating the Sin function: Inactivate[Sin''[x]] However, you probably shouldn't be seeing things like sin'' and cos'' in your output. …
m_goldberg's user avatar
  • 108k
2 votes

Plot shows up as blank output line

This is not really an answer, but more a query about how accurately the code appearing in the question represents the functions given in the homework assignment. Are you sure the definitions you give …
m_goldberg's user avatar
  • 108k
1 vote
Accepted

Menu object in a notebook that will print text in a new cell

Framed[ Manipulate[ InputField[Style[txt, "SR", 14, "Output"], FieldSize -> Small], Pane[Style["Chose a word", "SB", 12], ImageMargins -> {{45, 45}, {0, 5}}], {{values, StringSplit["the quick …
m_goldberg's user avatar
  • 108k
2 votes

How to convert input expression to FullForm String

Or maybe this way? SetAttributes[fullFormString, HoldAll]; fullFormString[expr_] := StringReplace[ ToString[FullForm[Unevaluated[expr]], OutputForm], "Unevaluated[" ~~ Longest[u__] ~~ "]" …
m_goldberg's user avatar
  • 108k