Romain:
The best way to get an answer is to send your questions to sage-support,
ccd here.
I don't know the answer to your question off the top of my head, but can
you tell me what the "last modified" date is on the piecewise.py module
you're looking at?
David J

On Mon, Nov 5, 2018, 11:47 AM Romain Li <romainzhiy...@gmail.com wrote:

> Dear Volker and David,
>
> I'm a student working on a Sage project creating a class of Convex
> functions. I found out about piecewise.py file and it seems really helpful
> for my project. Since this is my first sage project and I am not that
> strong in programming, I hope maybe you could answer my question!
>
> When I created a simple piecewise function, say my_abs = piecewise([((-1,
> 0), -x), ([0, 1], x)], var=x). It seems the EvaluationMethods object got
> constructed first, and then PiecewiseFunction object got constructed. But I
> do not see in the program how when I call piecewise(...), EvaluationMethods
> object need to be created. Could you please elaborate on that?
>
> Also I do not see in the program how PiecewiseFunction object is related
> to EvaluationMethods object, other than the fact that PiecewiseFunction can
> be passed as a parameter into the EvaluationMethod object. Could you please
> point out the connection in the program?
>
> I noticed in the last line that piecewise = PiecewiseFunction().
>
> Looking forward to hearing from you!
>
> Best Regards,
> Romain
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to