On Nov 8, 9:58 am, Michael Orlitzky <mich...@orlitzky.com> wrote:
> On 11/08/11 09:53, kcrisman wrote:
>
>
>
> > Note that this goes away if you instead define
>
> > sage: f0(x) = 4.0*(x-0.5)^2
>
> > (I mean after restarting Sage; the deprecation warning only will show
> > up once in any case.)
>
> I've got this in a standalone python file, not running through the sage
> prompt. Attempting,
>
>   f0(x) = ...
>
> will yell at me for trying to evaluate f0, which is undefined at that point.

Ah, that is luckily easy to fix!  Just name your file

piecewise_test.sage

and all will be forgiven.  Python files are not preparsed, but .sage
files are.   You can even do

sage: attach /path/to/piecewise_test.sage

and it should work great.

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to