On Oct 30, 2008, at 08:11 , kcrisman wrote:
>
>
>
>> Coming in late, but if this is literally what your example is, I
>> think
>> the problem is the "f(x)=x^3". Can you do that?
>>
>> If I try this
>>
>> def foo(x):
>> f(x) = x^3
>> return f(x)
>>
>> on 3.2.alpha0, without any doctstring, it blows up with
>
>
> Thanks for your thoughts. Interesting, because I don't have any
> problems with that! In fact, I think your problem there is that you
> have x as both the input and the variable in your definition. E.g.,
> your example blows up for me too, but I have no problems with the
> following:
[snip]
> It sounds like there are several interesting things developing out of
> this thread!
Yup. I was a bit too focused on the quote mark issues :-}
Removing the quotes, as well as the reuse of formal variables :-},
from the picture makes things a bit clearer.
It does look like there's a confusion arising in the parser when too
many quotes intrude...FWIW, if I use two 's in the doc string, things
work correctly (or, at least, as expected) :-}
Justin
--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds
--------
Men are from Earth.
Women are from Earth.
Deal with it.
--------
--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---