2016-10-09 06:55:31 -0500 | received badge | ● Famous Question (source) |

2015-07-10 16:18:10 -0500 | received badge | ● Notable Question (source) |

2014-06-09 04:02:29 -0500 | received badge | ● Popular Question (source) |

2013-11-07 13:34:00 -0500 | received badge | ● Student (source) |

2013-09-16 03:00:37 -0500 | answered a question | Defining a periodic function. Thank-you for the quick answer. frac() gives a function which is periodic on positive reals. I just adapted your solution to get it periodic on \RR. I would have liked to be able to define a symbolic function though. Is it doable? I was also trying to get a function whose plot is correct (without asking it to be pointwise) as it is the case for Piecewise(). Below are some of the things (not chronologically ordred though) I had tried (just for completness as I guess they are just full of beginer's classical mistakes). which does not evaluate returns ValueError: cannot convert float NaN to integer. returns ValueError: Value not defined outside of domain. also returns ValueError: Value not defined outside of domain. I also tried to redefine unit_step: problem integral(echelon_unite(x),x,-10,3) returns 13 numerical integral returns a coherent result. Other tentative with incoherent result (still with integrate and not numerical_integral) My guess is I was using integrate on inappropriate objects. I would still like to know how to define corresponding symbolic function (if it is possible). Thanks again, best regards. |

2013-09-14 23:57:16 -0500 | asked a question | Defining a periodic function. Hi, I am a new sage user. I'd like to define simple periodic maps over \R which plot and integrate correctly (eg. a square signal (which of course is discontinuous but which I would still like to be able to plot in a way that makes it clear that the function is not multivalued at discontinuity points)). I tried different approaches none of which gave satisfactory results. Any hint on how to do that nicely (or what would be the obstacles)? Thank you |

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.