Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to generate normal noise for a function

sage: func(x) = x^2

sage: func_noise = func + normalvariate(0,1); func_noise

x |--> x^2 - 0.4436993396832335

How can one force the normalvariate to generate the number only on function evaluation?

How to generate normal noise for a function

sage: func(x) = x^2

x^2 sage: func_noise = func + normalvariate(0,1); func_noise

func_noise x |--> x^2 - 0.44369933968323350.4436993396832335

How can one force the normalvariate to generate the number only on function evaluation?