The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
35 views

Accuracy and WorkingPrecision

Observe that ...
1
vote
1answer
56 views

Wrong generalized eigenvalues of large numeric matrices

I've been working on a toy model of a variational method of a Hamiltonian H with an overlap matrix S. The point is that when H and S are small enough, Mathematica gives the correct eigenvalues (≈ ...
0
votes
0answers
21 views

why i cannot get appropriate number with my custom precision? [duplicate]

why i cannot get appropriate number with my custom precision? In[25]:= N[(1 + Exp[-30])/(1 + Exp[-29.9]), 1000] Out[25]= 1. I expect to see a few digits after ...
4
votes
1answer
91 views

Is the divergence between Round and setting an explicit precision intentional or a bug?

Introductory remark: I take it (from Mathematica's online documentation), that Precision is effectively the number of significant digits, as seen by the system. ...
3
votes
1answer
36 views

Is it possible to generate a message when precision upgrade occur?

I use Mathematica mostly for numerical simulation, so most of the time double precision (or machine precision) is enough for me. Mathematica has this nice feature of automatically upgrade to arbitrary ...
0
votes
0answers
25 views

Failed to use SetPrecision

I am calculating the below formula: $$ \text{ER2}(\alpha,\text{K},\text{q})\text{:=}1+\sum _{m=0}^{K-1} \binom{K+\alpha }{m} \sum _{r=0}^m \frac{(-1)^r \binom{m}{r}}{\left(\frac{1}{q}\right)^{\alpha ...
0
votes
1answer
69 views

Why is chop being ignored? [closed]

If I use Chop[10^-4, 10^-3] then I'd expect the output to be zero. However, this is not the case. There is of course a very easy workaround since I can define ...
3
votes
2answers
108 views

Explicit digit-count (precision) of real number

I'm trying to do something which seems like it should be simpler than it is (at least in my attempts at it). I have some code where I read in a list of numbers generated for me by a coworker. These ...
1
vote
1answer
84 views

Option: number of digits

The command NestList[Cos, 1.5, 10] produces the list: ...
4
votes
0answers
36 views

Change system options in package

I use Mathematica mostly for numerical calculations, and sometimes the performance of numerical calculations can be greatly improved if the high-precision arithmetic can be switched off by ...
0
votes
0answers
41 views

Why does Save change my data precision?

I have some data from some Mathematica program, and it appears that the precision of the data has been slightly changes when I save the data and reload it again. ...
0
votes
0answers
41 views

universal precision control in Mathematica

There are many ways to control precision in Mathematica, such as PrecisionGoal in specific build-in commmands or SetPrecision to some variables. I got two questions below, (1) If I do not set any ...
1
vote
0answers
39 views

Which operations preserve digit precision?

Imagine I had to use numbers with a 600 precision digits. Do all mathematical operations, like +,-,...
4
votes
0answers
49 views

The change of precision doesn't work in ParallelDo. Is it a bug in Parallel?

Cross-post: http://zhidao.baidu.com/question/2075301703219376588.html Input: ...
3
votes
1answer
51 views

Is it possible to change the MinPrecision in command “Compile”?

I'm using "Compile" to do some numerical calculation and I need high Precision. I was wondering if it is possible to change the Precision in command "Compile" to some $MinPrecision?
0
votes
1answer
54 views

Fourier and InverseFourier precision [duplicate]

I'm quite puzzled by Mathematica lack of precision with Fourier and InverseFourier. I tried the following code ...
3
votes
1answer
41 views

Deferent results depending on the input form of the matrix [closed]

Why is it so, N[Eigenvectors[{{1., 0.5, 4.}, {2., 1., 2.}, {0.25, 0.5, 1.}}]] returns: ...
0
votes
1answer
51 views

How to show right count of decimal number in mathematica 10

I have some random number x. It can be 222.1245646 or 3.141562652. How should I show this number to 5 decimal numbers ? I cant use this: N[x, 5] because it shows 5 ...
1
vote
2answers
70 views

ListPlot3D with small (but acceptable) precision

Consider the following minimal example: ...
1
vote
1answer
58 views

Increase Precision in Numerical Integration

I need to generate a table of Chebyshev expansion coefficients of trigonometric functions (in this case Cos[2 Pi t] to very high accuracy. Code is: ...
0
votes
0answers
31 views

How to set all the numerical values as double

Is it possible to set the accuracy of every numerical value and the result of every computation to double like in Matlab? I want Mathematica to use just 3 or 4 ...
0
votes
3answers
74 views

High-Precision NSolve

I need to calculate the intersection of two curves f1[x_] := ((Zl ρ ) Exp[-x]) f2[x_] := (α k e^2 /x^2) Where ...
2
votes
1answer
55 views

Working precision and pure functions in FindMinimum

I have this function: fun = (# - 5.0)^2.0 & Then, I want to find the minimum: ...
0
votes
1answer
82 views

How to work with decimals (e.g. 0.95) instead of fractions (95/100) and get the same result

In my code I have a function, F, that depends on several parameters, say a,b,c: F(a,b,c). I need to give a grid of values to a,b and c to obtain the value of F. My grid of values are decimal ...
0
votes
0answers
33 views

the default option of NDSolve

How should I find out what the default value of Accuracy and Precision is in the NDSolve? I have a pde that when I asked it to solve for me the equation with a special Accuracy and precision it gave ...
3
votes
2answers
120 views

Increase precision for a entire notebook

I am quite a newbie and it is taking me so much time to understand what I need to do to achieve something really simple and I still haven't found it. I run a dynamic model of a metabolic pathway in ...
2
votes
1answer
58 views

Range and decimal digits [duplicate]

When I set Plot[Sin[x], {x, -2, -1}, Frame -> True, Axes -> False, FrameTicks -> {{Automatic, Automatic}, {Range[-2, -1, 0.2], Automatic}}] I ...
0
votes
0answers
36 views

Numerical Error with Matrix operations

A is a 3x3 matrix, b is a 3x1 vector. I try to convert [A|b], a 3x4 matrix, to [I|0]. So the formula is right multiple ...
6
votes
2answers
211 views

A problem about fixed point iteration theory

Description Recently, I have been learning a couse called "Numerical Analysis". The fixed point iteration theory was introducted to solve the ...
2
votes
4answers
137 views

Precision problem with numerical solution of a differential equation

I want solve $$ 2\sqrt{|\gamma|}x = \int_{1}^{t} dy \sqrt{\frac{1+2|\gamma_2|y}{y^2(1-y)}} $$ where $0<t\leq $1. I'm using a for cycle to evaluate t, calculate the integral and the assign the $x$. ...
8
votes
2answers
184 views

Error computing sum of sum of digits

I've defined a function that computes the sum of the base-b digits of n: DigitSum[n_, b_] := Total[IntegerDigits[n, b]] Then I defined a function that computes ...
1
vote
1answer
117 views

NDSolve fails for certain choices of parameters and solve range

I'm trying to solve a pair of coupled ODEs with NDSolve. I know roughly what the solution should look like (both should give periodic functions, pi/2 out of phase, the amplitude of which damp towards ...
4
votes
2answers
58 views

numerical precision in output file

I want to write the numerical results of a computation to a file which is to be read in Fortran. The data looks like: ...
1
vote
1answer
90 views

How to suppress a warning message

If I change $MinPrecision before running ListPlot[{{1, 2}}], there will be a warning in Mathematica 10. But there is no warning ...
4
votes
3answers
161 views

Importing High Precision (22 digits) data from a file

I want to import list from a file and I am using ReadList but my data is in format like this 8.2457409790900004e+08 but it i being imported like $8.24574*10^8$. Is ...
4
votes
2answers
185 views

Why does N[Re@f] give complex result?

Consider this code: ...
5
votes
1answer
126 views

Numerical error in Mathieu functions

Consider the MathieuCharacteristicA function, which is a piecewise function according to the documentation. The discontinuity happens at integer number. ...
3
votes
0answers
91 views

Precision problem while evaluating RegionMember or Element in V10

I'll try to give you a background on where the problem occured. The problem itself is defined near the end of the post. I'm running a sort of a simulation of a particle in a box. I finally got my ...
1
vote
0answers
55 views

Precision of sliders in WebMathemtica

I have been developing a manipulate plot to put on the web. One of my parameters varies over a small interval, {{D32, 2.38*10^-3, "D32"}, 0.001227, 0.0049108}. This ...
1
vote
1answer
57 views

How to make a discretized NMinimize more precise

I am using Mathematica for physics research and I want to minimize a Hamiltonian equation with respect to two variables (I have also discretized the problem). I have a single constraint. When I plot ...
1
vote
2answers
87 views

SetPrecision — different values subtracted from unity gives same value

How are my results possible? CODE: SetPrecision[FibersFailedNew, 40] 3.612171938234261799295174910010284760488*10^-16 ...
1
vote
1answer
108 views
1
vote
1answer
66 views

Inaccuracy of Piecewise function? [duplicate]

I have the following issue and can't find a solution so far. ...
6
votes
3answers
233 views
0
votes
0answers
82 views

Meaning of backtick in conjunction with units [duplicate]

In this fragment from an equation solution the backtick is used twice: ...
2
votes
2answers
139 views

NIntegrate - WorkingPrecision

I am trying to NIntegrate this expression. It is very close to zero, and so gives all possible types of errors. More precisely, ...
0
votes
1answer
212 views

How to get more accurate orthonormal eigenvectors?

I have a matrix M with real entries in MachinePrecision. I compute its eigenvectors and construct matrix ...
1
vote
0answers
24 views

Ignore $MinPrecision when using Print

I have a function that contains a For loop and sometimes takes several hours to run. It's important that I keep a high precision, and I insert ...
0
votes
0answers
28 views

How to get precision for a small calculation? [duplicate]

For pc1 and pc2 this gives the answer to only four decimal places. How can I get better precision? ...