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.

Filter by
Sorted by
Tagged with
1
vote
0answers
22 views

For ``Formulate'' and then Hold/Print Maths expressions?

I have written a function myPfuntest, ...
2
votes
0answers
46 views

Refer to future output

in my notebook I would like to present output that follows from some code later on in the notebook. E.g. on page 10, in the appendix, I have a code producing a graphic, which I name graphic1. On page ...
1
vote
0answers
23 views

Returning only part of a list after a function call to save memory [closed]

I need to get only V of a singular value decomposition of a matrix. In MATLAB I could write: ...
3
votes
2answers
214 views

What does $ mean in an output? [closed]

Solving a function in more than one variable, Mathematica gives me output in this way: name_variable$number instead of giving me a number. I looked for symbol: $ online, but unfortunately I ...
2
votes
1answer
52 views

How to write a formatted data into a text file?

I have a function which is written below ...
1
vote
1answer
61 views

How to format output numbers like 0.?

I have a function which is given below. If my number, n is 0. or 1. the function gives 0.E0 or 1.E0, respectively. However, I would like to form it as 0.0000E0 or 1.0000E0 like the other numbers given ...
1
vote
0answers
51 views

How can I force the output of a computation to be as compact as possible, yet complete, by using functions?

I am computing some derivatives in Wolfram Mathematica 11.3. The functions that I have to differentiate (with respect to the state variables) are the equations of motion of a rocket in the atmosphere. ...
1
vote
1answer
44 views

Formatting output for use in forums etc [duplicate]

If we take the (simple) example x = 1; y = 2; z = 3; x + y + z we get the (complete screen) result when copying into a more basic interface, such as a web forum ...
1
vote
1answer
98 views

Correct use of Reap/Sow to optimize the code

I am trying to compare two functions on the end points of an interval. For instance, $f_1(t)=t^3$ and $f_2(t)=t^4$. From my code below I check whether $f_1(t)\leq f_2(t)$ when $t=50$ on $[50, 51]$ ...
0
votes
0answers
64 views

Convert Mathematica output to Python code

I have this Mathematica (output) vector that I'd like to convert to Python: ...
3
votes
1answer
70 views

wolframscript command line output from ParallelDo kernels contains lots of gibberish

I run this code: ParallelDo[ Print["Hi"];, {i,Range[2]} ] And I get this: ...
1
vote
1answer
43 views

Formatting numbers in wolframscript command-line output

I am trying to run the following code using wolframscript on windows: a = 123.4567891011213; Print["a = ",a]; Print["a = ",AccountingForm[a,3]]; The output is: <...
0
votes
0answers
32 views

Mmma connectivity . parquet. python

Is there any way to exchange data in binary format with python ? Example. a) I have data in Mmma and want to export them to make use in python ... b) Want to use Parquet format
2
votes
3answers
82 views

How to save expression with its name

I want to save expressions as well as their names in a file. func[i_] := i; Do[func[i] >>> out.m,{i,1,3}]; The output is ...
0
votes
0answers
53 views

Exporting data from NDSolve

I have solved an ODE using NDSolve and I wish to export data to plot in Python. I have solved the ODE and have the output of interpolating functions ...
0
votes
1answer
55 views

Mathematica sometimes failing to write to file

I stumbled upon a weird behaviour where inside a For-loop, Mathematica will not output anything into a file in certain iterations. The code I have is symbolically ...
0
votes
0answers
70 views

Readable formula output on command line

I was trying to solve some differential equations. Mathematica is a little expensive to me, so I went for the free Wolfram Engine for Developers. It is said that the engine offers the full power of ...
0
votes
1answer
36 views

remove one of the column in the output of Solve command

I would like to remove one variable in the output of the "Solve" command without changing the rest. For instance, in the following code ...
0
votes
0answers
32 views

FeynRules error: “Wrong head FC”, followed by “Filter” and $Aborted while trying to output UFO file

I've been trying to create the UFO files for a particular QCD Lagrangian, LQCD := LQuarkD + LUpS + LDownS + LSU3; to no avail. The ...
5
votes
1answer
106 views

ParametricNDSolve fails when I *don't* print the results

Some updates added to end. Truly minimal exampled added at top. Minimal example: ...
0
votes
1answer
42 views

WriteLine[] not working once put into a function

I wrote a function that takes two strings, an integer, and an OutputStream, it's supposed to write to. The function is: ...
7
votes
1answer
148 views

Show timing of every output

I know I can follow Wolfram's guide and enable "ShowTiming" to show the timing of the previous command at the bottom of the window. Additionally, I can enable <...
1
vote
1answer
51 views

Can I get mapping as output from SatisfiabilityInstances?

Consider the code: SatisfiabilityInstances[Implies[a, b], {a, b}, All] (* output *) {{True, True}, {False, True}, {False, False}} I would like to obtain the ...
0
votes
2answers
48 views

Wrong limit result?

I'm trying to evaluate the following limit: Limit[(d + 1/2)*Log[d + 1/2] - (d - 1/2)*Log[d - 1/2],d->a] Normally, when a tends towards 0.5, the limit is ...
0
votes
2answers
34 views
6
votes
1answer
83 views

Can I stop a running NDSolve calculation without losing the data it obtained so far?

I would like to solve a system of ODEs numerically using NDSolve on an interval {t,t0,tf}. For the systems I currently solve, ...
1
vote
0answers
55 views

Can I store output data in the Notebook file? Specifically output from NDSolve[ ]

I am having some outputs from NDSolve of the form {{x→InterpolatingFunction[…], y→InterpolatingFunction, … }} and the ...
0
votes
1answer
61 views

Is it possible to overwrite a button output?

For example, if I have this basic button Button["Sum", Print[2 + 2]] is it possible to overwrite the same output without creating a new one and have a single 4 ...
0
votes
0answers
42 views

How to convert {x -> 4} to simply 4? [duplicate]

I am using the Solve function to obtain two solutions for a quadratic, then I want to use those two solutions as input for something else but I can't because they are in the form of (x->number} ...
2
votes
2answers
128 views

Express HarmonicNumber as sum

If you run the following code, the fifth harmonic number is not evaluated as a sum. Table[HarmonicNumber[i,-1/2],{i,0,5}] How can I get Mathematica to output ...
4
votes
1answer
70 views

Context leak in Wolfram Script?

hello.nb SetOptions[EvaluationNotebook[], CellContext -> Notebook] Print["hello"]; a = 1; Print[a]; Print@Context[] bye.nb ...
0
votes
0answers
24 views

Console Output to file corrupted

When i run WolframScript and write the output of a *.wls to a file and then modified the program slightly, i started getting these more exotic outputs. The function used is NetTrain. Does someone ...
0
votes
1answer
39 views

Limit function and DirectedInfinity as output: Interpretation

I tried to compute the following limit: In[12]:= Limit[-A/2 x - 2 x, x -> +Infinity] Out[12]= DirectedInfinity[-2 - A/2] Does the output tell me that the ...
1
vote
1answer
64 views

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

I would like to get an output text when I select every option of popup menu, the input below print me the option but outside the cell displaying panel generated with Manipulate. I have been trying ...
1
vote
2answers
186 views

Why do I get different symbols (a) with the same FontFace (Cambria Math)?

When I create an equation in MS Office, it uses Cambria Math, and I get the following when I use variable 'a'. When I try to use Mathematica to create graphics for my files, I can try to use ...
1
vote
0answers
55 views

Mathematica symbolic question - Subexpressions?

Apologies in advance if this has been asked but I cannot find any information. I'm calculating the determinant of a large symbolic polynomial matrix. In the result are symbols such as this: as in ...
2
votes
1answer
166 views

Decimal format in Mathematica exported output

I am using ReadList to read an input file as Table format, and exporting the results. The ...
2
votes
1answer
124 views

Plot shows up as blank output line

Let me start by saying this is NOT one of a thousand duplicates of the function not showing up on the plot. Mathematica has been working fine for the last 2 years, and then all of a sudden, ...
7
votes
2answers
145 views

How can I manipulate the output of Information?

If I type Information[ProductLog] I see If I type Framed[Information[ProductLog]] I see This is expected, though not ...
2
votes
1answer
88 views

Scientific Notation for Quantities

I am using Quantities (units) in Mathematica 11.3 and would like to express the numerical portion of the output in scientific notation. The command ...
0
votes
1answer
107 views

How can i get a popup window for my results?

I dont know how to get the results into a popup window i tried a lot of things but nothing works. Can anyone help me? I want the erge and erge 1 to be in the new window. Here is my current code: <...
5
votes
1answer
78 views

Does the position of a comment in a CompoundExpression matter for the result obtained with Out (%)?

I would like to understand what happens when we include a comment at the end of a line that ends with a semicolon. For example, if you execute ...
1
vote
1answer
33 views

Obtaining non-null output from all parts of a compound expression

I've decided to post this question and self-answer, since this might be useful to others wishing to do the same thing. I was wondering how to obtain non-null output from all parts of a compound ...
3
votes
2answers
258 views

Outputting expressions in the order in which they're entered

Background For display purposes, I sometimes find it desirable to defeat Mathematica's canonical ordering of variables, and instead have it output terms in the order in which I type them. E.g., ...
1
vote
1answer
148 views

Why is part of the output “Null”? [closed]

Whenever I execute the code, portions of the output are null. How can I fix this? I am not sure the extent to which the result is invalid because I am not entirely familiar with the null output, ...
3
votes
0answers
88 views

Not getting any output from mathematica script

I am completely new, so this question may be trivial, but I can't find any answers in the Wolfram documentation. I am playing around with scripting in Mathematica, but I cannot seem to get any type ...
0
votes
1answer
184 views

Removing zero dot after solving [closed]

I've a question regarding "zero dots". Im using a lot of calculation in an application which i am building within mathematica. However when i use the output of solve for instant i will not have the ...
0
votes
1answer
34 views

PDE's numerical integration: simplify output: get rid of $[t,r]$'s and ${}^{(0,1)}$'s

When numerically integrating PDE's systems mathematica output can be chaotic and therfore time-consuming or even impossible to understand and use. A major source of confusion are the $[t,r]$'s and ${...
1
vote
2answers
159 views

Output formatting

Is it possible to format a mathematica output in a way that all the fractional numbers are written first followed by other constants or functions? Example: ...
1
vote
2answers
123 views

How can I effectively achieve remote access to Mathematica output?

I will be away from my home institution for an extended period. I plan to leave programs running on machines there. These programs periodically (every several hours) output updated results (improved ...

1 2 3 4 5