The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [number-representation]

Questions about interpretation of numeric input or how Mathematica stores and manipulates numbers internally.

135 questions
Filter by
Sorted by
Tagged with
64 views

3k views

When can I assume that all decimal digits returned by Mathematica are provably correct?

How to Control the Precision and Accuracy of Numerical Results Arbitrary-Precision Numbers Mathematica works with exact numbers and with two different types of approximate numbers: machine-...
105 views

Unexpected behavior from NumberForm` of a matix [duplicate]

If I calculate the dimension of the matrix after NumberForm directly, then there will be something wrong ...
92 views

Strange numerical values [closed]

I have a table of numerical values which contains a lot of strange values. ...
175 views

Number of digits problem

Why the following code Table[ N[i, 4], {i, 1, 2, 0.5}] do not output numbers with fixed number of digits, but gives this ...
187 views

Arbitrary-Precision Arithmetic behaves unexpectedly

I want to understand how small numerical errors propagate through a computation and may drastically change the final result. To this end, I consider a toy world in which every number is limited to ...
163 views

The binary of negative integer number

I have a question about the binary of negative integer number in Mathematica. In most implementations, negative signed integers are stored in what is called two's complement. The other major way of ...
43 views

representing decimals with commas instead of dots [duplicate]

I want the decimal numbers in the axes of my graphs to be represented with commas instead of dots Is it possible? Does anyone know how to do it? I've made a few research, but I've got no answer. ...
320 views

Using FromDigits to convert number strings to numbers

I've loved mathematics for a very long time but am only now beginning my journey to learn to code. The attached image shows the two different outputs (out-5, out 6) for a simple crypto-cypher I'm ...
961 views

Mod[1.2, 0.2] is not equal to zero

Why doesn't the following expression evaluate to zero? In:=Mod[1.2, 0.2] Out=0.2 Edit: This is what I wanted to do: ...
106 views

How can I simplfy the result of Eigenvalues? [duplicate]

As we know, the eigen vectors and eigen values of a real symmetric matrix always is are real numbers. I am trying to use the Mathematica to verify this theory. Suppose I have a matrix ...
184 views

Dynamically updated AccountingForm

Bug introduced in 10.4 or earlier and persisting through 11.1.1 CASE:3918306 confirmed I freshly installed Wolfram Mathematica. I can't quite remember how to output a dynamically updated variable ...
413 views

Number format of plot legend

How can I change format of numbers for bar legends. I would like to show numbers without digits after the decimal point. ...
66 views

Can FindFormula or FindSequenceFunction be used to identify a formula for a number? [duplicate]

This is closely related to: https://math.stackexchange.com/q/2361727/10063 and is a new version of Can Mathematica propose an exact value based on an approximate one?. In Wolfram|Alpha I can input ...
82 views

Why N[vector[[j]]] or NumberForm[vector[[j]]] not working? [closed]

Why is N not giving the approximate result (removing the .)? vectorj = Table[j, {j, 0, 0.1, 0.01}] N[vectorj[], 0] (*out=0.*) or ...
85 views

Why is NumberForm not good with ListPlot? [duplicate]

Is NumberForm not good with the following use of ListPlot? Look at my example: vectorj = {Rationalize[0.3],NumberForm[1.2131, 2]}; ListPlot[vectorj] This is ...