Questions tagged [output]

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.

295 questions
Filter by
Sorted by
Tagged with
37 views

Output of Reduce processed by ToRules - how to preserve sublist structure?

I have some output from reduce as follows: ...
79 views

How to put the evaluated result in a text cell?

If I use the function Print, the result is not in a text cell. So I wonder If there's a function that I can use to put behind the function ...
44 views

Extracting coefficients in a table [closed]

How can I extract the coefficients in tab1 and have them written in a table? In the case above, the coefficients are the numbers multiplying ...
74 views

Parallel Cellprint Not Rendered

I'd like to parallelly construct cells (possibly dynamically updating ones) and output render them on the front-end. However, I found this is not working. For example, ...
20 views

Is it possible to insert a fixed-size Input Cell in a DockedCell toolbar that directs output if any to a specified Cell in same Notebook?

Ive been coding Mathematica for over a year but this language can do so much more than any other language hence beginners really do need a much longer gestation period. That is why this rarest of ...
73 views

Meaning of Out

After some long computations, I obtain %//ExpandAll Out I want to know the meaning of Out. Does this mean my expression %...
55 views

...
55 views

Can I save data as a three-column matrix?

I need to store values of a function of x and y defined as f[x_, y_] := Sin[Pi*x/3]*Sin[Pi*y/3] at the following points ...
37 views

I have an external package that uses the following function internally to print messages, PrintOutput[x__] := WriteString[$Output, x]; I want to block all the ... 0answers 62 views How can I change the way Mathematica orders exponents? How can I change the ascending order that Mathematica has of ordering the exponents, to a descending one. For example, get ... 1answer 66 views Make a Greek letter with a subscript appear in an Input message I've got a variable that has two names on it. It is defined as follows: par={b, Subscript[λ, 0]} I would like to ask the user to enter a value of the second ... 0answers 42 views Equation issue: Solve gives an empty output I need c1,c2....c9 values. Why is Solve returning an empty list? How i can fix it? Thanks for any advice. ... 0answers 58 views Storing python output to variables in Wolfram Would like to use the external language input in python to save variables I can potentially use in Mathematica. Any chance there is a way to do this? I do understand there might be a solution with ... 1answer 33 views No output showing up for example functions [closed] I am total beginner to Mathematica. I am following some examples from here However, if I run some function, for example, MiniMaxApproimation, then I get no output. ... 0answers 41 views Print a string in TraditionalForm I'd like to print all in TraditionalForm "f(z)=(z+1)/(z-1)" where f is a function defined in the usual way. What I obtain in Output for f(z) and (z+1)/(z-1) is not the TraditionalForm. What ... 1answer 83 views How to change the form of fraction One of my output result is (2 Sqrt[2/5])/3 Is there any method to let it become Sqrt[8/45] Thank you very much! 0answers 35 views Inactivate Prints inside function? If one has a piece of code with some prints, he can inactivate them using inactivate, like Inactivate[Print["test"];,Print]; (*returns nothing*) Hower, I ... 0answers 48 views Replacing the print display in a for loop I am running a For loop as follows: table = {}; For[n = 0, n < 10, n++, {table = Append[table, n], Print[table]}] I was wondering if there was a convenient way ... 0answers 41 views Producing a single$Aborted

Using @Kuba's faboulous answer here (stop notebook evaluation when Assert fails), I produce the following code to stop execution if I am evaluating a long initialization cell while the notebook ...
57 views

Can I change how certain expressions are displayed/printed upon evaluation?

I'm writing some operations for Young tableaus and I would like the evaluation of an expression of type young[a_] to be printed the same as ...
38 views

How to get a smoother color blending on a 3D sphere showing the spherical harmonics?

Here's a manipulate code to show the spherical harmonics mapped on an unit sphere: ...
33 views

.nb file containing large data is not saved correctly [duplicate]

I created a large list of real numbers and saved it to Tes.nb Tes = Sort[RandomReal[{-7., 7.}, 1000000]] But I noticed the size of Tes.nb file was merely 10 KB. ...
56 views

44 views

Define the output of PadeApproximant as a function

I am trying to do pad[t_] := PadeApproximant[t Log[t], {t, 1, {2, 1}}] pad[t] // Simplify //Factor pad Plot[pad[t], {t, 0, 1}] The last two lines do not work. ...
31 views

Problems with extracting a row from a matrix

I have a 4 times 4 matrix which has very "large" entries (it takes almost ten minutes to initialize it). Supposing its name its M, I'd like Mathematica to ...
87 views

How should I export data with desired precision to output file

I want to control the number of decimal points in the output file. ...
74 views

Converting Tensor product to Matrix

I have a basic question regarding matrices and tensor product forms. Given $N > 0$, I am interested in the tensor product series $\sum_{i}^{N} X_i$, where $X_i$ is the Pauli $X$ spin operator at ...
66 views

Writing mathematical expression in a file

I am trying to write a mathematical expression as variable = expression in the output file. The current method that I am doing is through ...
56 views

How to force Mathematica to output a function using its alternate pretty form when using Apply? [closed]

By default, Bra is an undefined function. Let's say I have defined Bra, Bra[a___]:=... such ...
52 views

Ticks and labels on 3D box, with empty axis in the middle

This is certainly very basic, but rusty as I am with Mathematica, I'm still unable to figure this out. I need to show white empty axes in a 3D graphics, with labels and thicks showing on the exterior ...
102 views

...
33 views

In warning messages, can multi-storey expressions be flattened?

I receive the following output in command line: ...
95 views

Why in Mathematica and Wolfram Engine the result of this code is different?

f[x_] := Evaluate[Input["Enter a function to sum or integrate:"]] Print[f[t]] After starting, I enter x^2. Mathematica outputs $t^2$ while Wolfram Engine ...
19 views

I want to use the output of Solve and/or Reduce in next steps. But the output comes in the form of a rule [duplicate]

In a program I want to use the output of Solve and/or Reduce in next steps. But the output comes in the form of a rule, where what I want is the numerical solution. Here is an example. Say I write s=...
29 views

Remove empty TextCell[] from numerical expression

I am evaluating an expression like this: ...
56 views

Convert expression to LaTeX string

How do I convert a Mathematica expression to the equivalent TeXForm string as shown when applying TeXForm? For example: ...
74 views

write output to stream and also print it

I tried to save the Print[] output to a file using this code: ...
45 views

Creating a Matrix from Integrals

I have a table of integrals that I want to put in an nxn matrix. I tried doing it in the following way ...
49 views

Solving a Set of Differential Equations and just get the Equations Returned

Long time reader but first time asker for the Mathematica section. I'm trying to solve a set of differential equations and it just returns the equations back to me. I'm not entirely sure why, but ...
59 views

No output after memory constrained short computation using 'Solve'

I am trying to solve a system of nonlinear equations symbolically using Solve. The input runs for only ~30 seconds, then my syntax highlighting goes black, and there is no output: Does this mean my ...
40 views

Suppressing output when defining a function that opens a notebook

I have a command to open a new notebook and generate a reference table. It is basically this with 2+2 replaced by a large table command: ...
57 views

Defined function keeps the variable

I'm a beginner at Mathematica, and I have a problem finding the roots of a function for a specific variable (using Jens' findAllRoots function). Due to the nature of my problem, I need to compute ...
31 views

Clear Style to standard output expressions in the same cell

I would like to reset an expression in a Standar Output inside a Cell. For example, ...
60 views

Excel output append

I currently have the following codes: ...
79 views

How to make Mathematica only output the error name, rather than the full error message?

For example, when I use LinearSolve, an error message might be encountered: ...
67 views

How to convert an output cell in a text cell without having " " in the text?

This is part of my code: ...
36 views

Why is a simple vector list inside Row not rendering in MatrixForm when passed in as an argument to a user defined function?

I stripped down a function makeRuleRow down to its bare essentials (of irrelevant descriptions) to understand why my vector list ...
162 views

How can I prevent Mathematica from cutting sentences in the middle when printing strings?

I have a very simple but annoying problem. Consider the following example: ...