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.

learn more… | top users | synonyms

0
votes
0answers
43 views

Suddenly all outputs begins with a newline… What to do? [on hold]

I am almost sure nobody has yet asked this question, which is strange, because it concerns a tiny but annoying glitch. Now and then, out of the blue, all output cells are starting with a newline. I ...
0
votes
1answer
54 views

NumberForm pesky warning from Manipulate

I'm using the NumberForm command inside a Manipulate environment, and in some special cases Mathematica gives a pesky and mostly useless warning message : NumberForm::sigz: In addition to the ...
1
vote
1answer
29 views

NonlinearStateSpaceModel/OutputResponse gives doubled outputs

I want to simulate a pendulum or rather the controlled system. But NonlinearStateSpaceModel or the OutputResponse gives weird ...
1
vote
2answers
48 views

styles and print and output

I know I can use styles to change how the result of Print looks. But I have a case where I use Print to display some ...
0
votes
1answer
26 views

Trouble interpreting output quantities

I'm trying to use Mathematica to get a numerical answer for a physics problem. I define a function $V$ as the sum of three quantities divided by vector norms: ...
3
votes
1answer
362 views

Wrong result of simple math calculation. Is it possibly a bug of the program? [closed]

I encounter the following issue accidentally (shown in the screenshot) which is very odd to me. The output[4] and [5] is obviously wrong. But with the input value of 991.91, it turns out to be right ...
1
vote
1answer
53 views

How to export a list of numerical data to a file in the terminal?

I have a very simple program that export a list to a data file in table form. ...
3
votes
1answer
57 views

Annotating output without changing the value [duplicate]

I like to annotate output, using something like the following: ...
1
vote
1answer
40 views

defining output Solve

I'm just starting with Mathematica and I was having a small question: How can you "define" the outcome of a "Solve" in Mathematica? Here is an example from mathematica: ...
1
vote
0answers
38 views

Reduce excess Log[] [closed]

I am trying to solve a differential equation using DSolve: DSolve[y'[t] == t^10 eps^-y[t], y[t], t] And get the following output: ...
0
votes
1answer
51 views

Using Trig functions

This is a fairly simple notation problem. I am trying to compute ArcTan of the point (5,2). I have the code: ArcTan[5,2] which outputs: ...
0
votes
1answer
75 views

Meaning of << >> in Mathematica [duplicate]

I used NonlinearModelFit to fit some data and although Mathematica thinks it has got the result, the answer is enclosed in these double angular brackets. What does it mean? More importantly, I cannot ...
-1
votes
1answer
62 views

When NSolve for X, Y, only output solution for X

I have an NSolve with two equations and two unknowns (X,Y). There is a unique solution. NSolve currently gives me the solution pair (X,Y). But I only want to read out one of the variables (say X). ...
6
votes
1answer
127 views

Why is Reap result nested?

A minimal (toy) example for my question: i= 1; Reap[Do[Sow[i = (i + 1)^2], {4}]] (* {Null, {{4, 25, 676, 458329}}} *) I presume the entire result is a ...
2
votes
1answer
43 views

How to use MakeExpression in terminal?

This is in continuation to the question in Infix form of PutAppend ( >>> ) does not work with variable. I was trying to use ...
0
votes
1answer
89 views

Output with NDSolve

I use of the following differential equation: s = NDSolve[{y'[x] == y[x] Cos[x + y[x]], y[0] == 1}, y, {x, 0, 30}] Output. The solution in a plot. What is ...
2
votes
2answers
124 views

How can I check that the general solution obeys the original differential equation?

For example: I solved the following differential equation: y''[x] == (λ x^(3/4) y[x])/Sqrt[1-x] that 0<x<1 with the ...
3
votes
1answer
138 views

How to summarize an expression

Is there a similar command as str in R in Mathematica? ...
3
votes
0answers
78 views

Obtain $\TeX$ code as in `StandardForm`

This is a question very close related to Breaking up long equations in TeXForm. Last time, because @Adam doest not present a clear goal for this problem, as stated by Massimo Ortolano there's no ...
-2
votes
3answers
70 views

Two unrelated questions: 1. Output of Series[] for function, 2. Output conditional answers as if not conditional [closed]

As mentioned in the title, I have two questions. 1. I have code that looks similar to: ...
3
votes
1answer
123 views

Show Full Output button broken for all large outputs

I use Mathematica 9.0.1.0 on Mac OS X 10.10.3. As an example of my issue, we can follow along with the example from the documentation page for $OutputSizeLimit. ...
2
votes
1answer
62 views

What's the meaning of <<19>> in the result [duplicate]

Try the following: ...
0
votes
0answers
41 views

Classify: other output representation

I'm working on a classisfy problem. The code is like: CMDDrf = Classify[trainingdata, Method -> "RandomForest"] Then I want to make a prediction based on a ...
0
votes
1answer
44 views

Writing a math formula to order results in a certain way [closed]

I am not very well educated in math and I have a math puzzle that I'm trying to solve. I have the following list and each object has 3 numbers. The first 2 numbers are better when they are as high as ...
0
votes
0answers
68 views

View command-line output in GUI with formatting

Mathematica produces plain-text output when run at the Linux command line. Is there any way to open this plain text output in the Mathematica GUI so that it has all of the pretty formatting as if it ...
3
votes
0answers
38 views

Out[x] not the same as assigned expression [duplicate]

There seems to be a difference in the way Mathematica assigns a value to a variable and the way it assigns a value to the next Out object. I don't understand why this is happening. For instance, take ...
2
votes
2answers
253 views

how to remove Null's from output? [duplicate]

I'm a math enthusiast and I'm looking for examples of rare divisibilities, let's look at the following one: ...
0
votes
2answers
89 views

Function that creates a table from two lists

I have two lists shown below: list1 = {(0,0,0,0),(0,0,0,1),(0,0,1,0),...,(1,1,1,1)} list2 = {1,5,5,5,...,5} How can I construct a function that outputs a table similar to this: $$\begin{array}{c|c} ...
2
votes
5answers
231 views

Making loop based off what I can say in words

I have a list of values a: {1,4,11,14} I want to print out values that satisfy b(1+a) = 0 mod 15 where b are the values from 0 to 14. The output I am wanting is ...
11
votes
3answers
507 views

Windows command line arguments, stdin & stdout

Is it possible to utilize all three: command line arguments, stdin, and stdout all at once in script for Windows? Unix is fairly easy, but I can't get the following to work with Windows. Using the ...
0
votes
1answer
60 views

Question about output of a function

I'm pretty new to programming in Mathematica and have a question. I wrote this function to factorise large numbers. The outputs are almost as expected, but I don't understand where the null's come ...
6
votes
1answer
156 views

Can a field be used for both input and output (example: exchange rate calculator)

Suppose I want to build a simple currency converter like this one: The functionality is straightforward: enter an amount in any field box, it gets converted into other currencies whose fields are ...
0
votes
4answers
91 views

Save a result containing HoldForm to a file

This is the workflow I have. Basically, I want the outputs of the polynomials I computed are in a specific order. (It is not the same one here, this is just an example.). ...
2
votes
1answer
73 views

How to get the content size (in pixels) of the output in an output cell?

How to get the content size (in pixels, width and height) of the output in an output cell?
0
votes
2answers
69 views

NSolve gives {{ x -> #}}, How do I make x = #; I need to use the x value again later

I want to use: demand = {1.92, 2.07, 2.37, 2.72, 2.87}*10^6; NSolve[SetV == demand[[1]]/(Cpf (1 - χ)), χ] I want to make a vector of solutions ...
4
votes
1answer
73 views

How Unevaluated works Through its Attributes?

Check this example: ...
4
votes
2answers
122 views

Is there a way to accelerate buffering to the screen

I have an application that does a bunch of small computations, mostly Table management, and logic around loops. It takes seconds to execute. However, when I turn on debug (a variable I set for ...
0
votes
1answer
113 views

Save value computed in the loop and delete it

I am using For loop to calculate a value $z$ in every cycle. I would like to create a text file, save the current value $z$ in this file and afterwards delete the value from Mathematica's memory. I ...
0
votes
1answer
68 views

Output a symbol from Module or Block

I have troubles to output an entire symbol, a function in this case, from a module or a block. For instance myf = Block[{f}, f[3] = 33; f[4] = 4; f] Then I want ...
1
vote
0answers
103 views

Long running time

I gave this data as input: ...
2
votes
1answer
128 views

How to generate specific function using BSpline command/

I want to generate an approximation function that fits a curve to points. My goal is to obtain an actual formula. Is this possible with the BSpline function? Using the following code: ...
0
votes
1answer
42 views

Reducing Output length by introducing new variables [duplicate]

I have outputs like "expression/(1+3*c^2) +anotherexpression/(1+3*c^2)" and so on. Is there any way to set 1/(1+3*c^2)=A where A is a new variable so that the output reads like ...
1
vote
1answer
95 views

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

If I use a code of this type: Table[foo[i], {i, 0, 10}] Mathematica won't output anything until it is done: is it possible to know at which point of the ...
2
votes
1answer
165 views

How to update Print-out “in place”?

I want to run an exhaustive search algorithm that will take several hours to finish, so I'd like to have it execute Print statement periodically, showing the ...
3
votes
1answer
75 views

Print prints into the Messages notebook rather than into the evaluation notebook

Some time ago I noticed that the results of the evaluating the function Print[something] does not emerge in a new cell created in the notebook where the operation ...
1
vote
1answer
110 views

Output resets when after closing/reopening the file

I've been having an issue in a project I am working on for a demonstration that involves a manipulate containing buttons that influence local variables. In essence, the problem is demonstrated by this ...
3
votes
1answer
283 views

Write numbers to a file

I want create file with some text (and numbers). This is my code. ...
0
votes
1answer
326 views

How to output a bat file and execute it?

I tried to write a bat file which helped me rename files. Command to do this in that file is "ren file1 file2" which is equivalent to RenameFile[file1,file2]. ...
3
votes
2answers
170 views

Use only exponents (no radicals) in output expressions

Radical symbols ($\sqrt{\,\,\,\,}$) are the devil. Is there any way to get mathematica to never use them, and instead express everything as an exponential? i.e. I want ...