Tag Info

New answers tagged

0

Chop[] is the key here (thanks to MikeLimaOscar and Nasser). And using Abs was obviously wrong, since I'm dealing with a function with positive and negative values. Here's the correct code: x = Table[Sin[n], {n, 16}]; X = Chop[Fourier[x]]; x1 = Chop[InverseFourier[X]] x - x1


3

Please first take a look at http://reference.wolfram.com/language/tutorial/ExactAndApproximateResults.html Eigenvalues uses entirely different methods when working with exact or inexact quantities. mat = {{1, 1/2, 4}, {2, 1, 2}, {1/4, 1/2, 1}}; First notice that the eigenvalues are the same and returned in the same order in the two cases: ...



Top 50 recent answers are included