Hi Johanna,
The issue you are observing has to do with the fact that these computations are numerical, not analytical. They are done in finite floating point precision. If you run your file with the option -s, you will see a line that says "Machine epsilon is 1.192093e-07", which is a way to characterize the round-off error in these computations. In your simulation, the program first computes the propagator for one rotor cycle, uses this propagator to compute the propagator for the whole evolution time, applies the latter to the density matrix to propagate it, and then computes the signal with this propagated density matrix. This computation is performed for each crystallite and the results are summed up with the weights specified by the powder averaging set.
Now, 0.9999999 (in the floating point world) is different from 1 by exactly 1.192093e-07, which is actually very good for this kind of computation.
In your last example, the evolution time is 1 s, and so the rotor cycle propagator is raised to the 10000th power to get the propagator for the whole evolution time. Therefore, if the matrix elements of the propagator have even a single round-off error (1.192093e-07), it may grow by a factor of 10000 during this computation. Actually, if you run your simulation with the option -ve, the program will report you its estimates of these errors. Powder averaging improves these errors quite a bit because they are randomly distributed. So the final error observed in that computation (4e-4) looks quite reasonable.
Overall, one should realize that in the last example, you are asking the program to integrate the motion with a time-dependent (periodic) Hamiltonian to a time that is 10,000-fold of the period. This is quite a fit to perform in the single-precision floating point arithmetic used by the program. Also, note that if you were measuring the FID for 1 s and then plotting a spectrum, that would be a completely different computation, and this kind of errors would not be seen in the results.
Hope this helps.
Best regards,
Mikhail
> --
>
>