On 04/02/2010 07:42 PM, Simon King wrote:
Hi!
On 3 Apr., 00:30, G B<[email protected]> wrote:
That did it. I found the section in the tutorial explaining the
different interpretations of functions more fully, and while I don't
quite have my head around it, I think I understand the problem at a
basic level to be that my f(x) is a symbolic expression, but
get_random_element() is a Python function, and there's some odd
interaction under the hood.
I think that's a wrong description of what is happening. You talk
about the line
f(x)=sin(x)+T.get_random_element()
In that line, f is to be defined (in particular, at that point, f(x)
is not a symbolic expression, yet).
So, let's look at the right hand side of it. sin(x) is a symbolic
expressioon. T.get_random_element() is, in contrast to what you state,
*not* a Python function --- T.get_random_element() is a number. And of
course, when you add a number to a symbolic expression, you get a
shift and not a noise.
So basically, this sort of thing was happening:
http://xkcd.com/221/
Thanks,
Jason
--
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/sage-support
URL: http://www.sagemath.org
To unsubscribe, reply using "remove me" as the subject.