We want to make sure that the right thing is done with the output from the RNGs, so we manually supply as an additional argument to a given function some particular choice for all the variables inside the function that come from RNGs. The reason that we use certain precomputed values is that doing the test with some randomly generated set of values as an additional argument is essentially going to have to repeat the calculations in the function itself (which we want to test) - whereas for concrete values we know the answer right away. Does that make sense?
23 юни 2012, събота, 18:29:23 UTC+3, Joachim Durchholz написа: > > Am 23.06.2012 16:53, schrieb Aleksandar Makelov: > > OK, I implemented the use of precomputed values instead of random > numbers > > for testing randomized algorithms (among other things) in this pull > > request: https://github.com/sympy/sympy/pull/1377 > > I haven't found that aspect (which may be because I didn't look too > closely). > > What's the purpose of using precomputed values? > -- You received this message because you are subscribed to the Google Groups "sympy" group. To view this discussion on the web visit https://groups.google.com/d/msg/sympy/-/Ehcy26AR7ywJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
