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.

0
votes
2answers
44 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
30 views
6
votes
1answer
57 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
42 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
44 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
111 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
67 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
21 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
25 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
51 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
1answer
65 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
53 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
103 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
56 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
129 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
76 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
46 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
71 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
29 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
230 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
82 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
64 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
112 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
32 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 ${...
0
votes
1answer
94 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
99 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 ...
0
votes
0answers
21 views

Outputting a concatenation of a string and a variable within a loop [duplicate]

In this question, it was mentioned that one can output the concatenation of a string and a variable by using StringForm[]: ...
5
votes
4answers
77 views

Non vector graphics display in a notebook

When I generate multiple scatter plots with a large number of points and display them as output, the notebook becomes very sluggish (I assume that this is because each plot has a huge number of points ...
5
votes
1answer
683 views

What is the meaning after a number with a ` symbol? [duplicate]

Sometimes, when copy pasting some output obtained in Mathematica I obtained a weird comma after a number and then more numbers. Imagine, and output for a computation is ...
4
votes
1answer
56 views

Strange behavior of Print, Do, and merged output cells

The command Do[Print[i], {i, 1, 3}] does what you expect: creates 3 output lines of 1, 2 and ...
0
votes
1answer
110 views

Dynamically updating the output of a loop

Consider the following simple loop: n=0; Do[n++;Print[n],{10}] Mathematica writes: 1 2 3 ... I want mathematica to ...
1
vote
2answers
104 views

Rounding numbers to certain numbers of significant figures

I have code which outputs numbers, for example,(0.2945847, 0.8647834, 1.6*10^-6) and similar. I would like to take these numbers and round them to 4 significant figures, but I can't find a way to do ...
1
vote
0answers
57 views

How to write a power using `WriteString` function

I have a solution of an equation: aa = N[Rationalize[g6[[3, 2]], 0], 16] (* Out: 2.691607147352649*10^-6 *) I want to save this result in a file using ...
0
votes
0answers
80 views

Save output of Mathematica batch job to file

bsub "math -script input.m > output.out" runs the Mathematica command in input.m as a batch job and should print the output ...
2
votes
1answer
43 views

Space between elements using `Write`

I have the code: ...
1
vote
2answers
41 views

Storing one of two outputs of For loop

I have a set of data: ...
2
votes
0answers
90 views

Is it possible to get the original number from DecimalForm?

I'm trying to implement an efficient TSV exporter based on the code from this answer. It works sufficiently quickly but the problem is that OutputForm shows about 6 ...
1
vote
0answers
99 views

Fortranform output in double precision

I want to take the output in fortran form but written in double precision notation. For example, exp=1 + 8*as^2*Log[2*x] which gives ...
-1
votes
1answer
32 views

Trying to animate an m x n matrix one row at a time [closed]

I would like to use ArrayPlot[list, Mesh->True] if possible and I essentially want it to show 1 row at a time and animate the changes it goes through.
2
votes
1answer
44 views

Echoing commands when running packages in batch mode

I run Mathematica packages in batch mode. I need a log file showing input commands and displaying their output. I tried these commands ...
4
votes
3answers
118 views

How can I set the style of one Output cell so it doesn't change after re-evaluating its Input cell?

I have created a notebook for my classes which is full of inputs that need to be evaluated by my students. All these inputs produce standard outputs, which are fine as they are. But there is one of ...
0
votes
1answer
87 views

Saving data in flat files using Mathematica

I am trying to solve a system $dx/dt =f (x, t)$ using the RK4 in Fortran 90 that works for any 2D Hamiltonian systems. I would like to generate using Mathematica a Fortran file .f90 that contains the ...
1
vote
0answers
35 views

How to analyse huge output from Reduce systematically?

I have a constrained optimization problem, looking for Nash equilibria. I use the KKT conditions programmed using Reduce to solve it. For the general case I get a very large output, with more than 100 ...
1
vote
2answers
108 views

Try to find the number of points near the black color ؟

Given this RGB image I want to find the number of points that are, or almost, black ؟
0
votes
1answer
62 views

How do I use Module to convert a calculation into a function? [closed]

I have some code that performs a calculation. I want to make a function out of it so I wont have to cut and paste to calculations with different values of a, ...
3
votes
1answer
46 views

Recover result after “Set” error

I have a function someFunction[] that takes a long time to evaluate. I would like to run ...
1
vote
1answer
37 views

Setting the style of the output in a text file

My problem is related to FormatType of the Output of Print[]. Look at this example code <...
2
votes
2answers
45 views

Paste Print output in a text file [duplicate]

I have a For[...] cycle which calls a function. When the function is at work, it prints some text-string through the command Print[...]. Since I iterate the action of the function for 1000 times, the ...
0
votes
0answers
93 views

Problem with Gamma Package

I wanted to install the Gamma package. The package seems to have installed correctly. However, I am not seeing any symbolic output. The outputs should be like these. But I am getting these. Any idea ...