On 11/30/2012 10:12 PM, Jason Grout wrote:
>
> Is there something better? I tried to get piecewise to work, but I
> couldn't plot, integrate, etc., the function.
>
I've collected a lot of code over the years for working with piecewise
functions, but most of it was written before I knew anythin
>
>
> Is there something better? I tried to get piecewise to work, but I
> couldn't plot, integrate, etc., the function.
>
> f=piecewise([((1,2), x^2), ((2,3), sin(x))])
> plot(f, (x,0,3)) # error, but plot(f) works...
> integrate(f, (x,1,3)) # error, but integrate(f) works
> diff(f,x) # err
On Fri, Nov 30, 2012 at 10:12 PM, Jason Grout
wrote:
> A friend just asked me about piecewise functions in Sage (how to construct,
> plot, differentiate, integrate, etc., them). I came up with two answers for
> plotting:
>
> * use python functions:
>
> def f(t):
> return t^2*(0<=t<=1) + (t-1)
A friend just asked me about piecewise functions in Sage (how to
construct, plot, differentiate, integrate, etc., them). I came up with
two answers for plotting:
* use python functions:
def f(t):
return t^2*(0<=t<=1) + (t-1)*(1Is there something better? I tried to get piecewise to work,
It is Ubuntu server.
Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-33-generic-pae i686)
Kwankyu
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To post to this group, send email to sage-support@googlegroups.com.
To unsubscribe from this group, send ema
On Friday, November 30, 2012 1:21:13 PM UTC-5, KnS wrote:
>
> This is trac #13780 now. Thanks Philipp for reporting here. (I'll submit a
> patch now; but, I am ccing to the sage-devel to ask if issues that are so
> trivial to fix but still can be considered major, deserve a separate
> ticket).
This is trac #13780 now. Thanks Philipp for reporting here. (I'll submit a
patch now; but, I am ccing to the sage-devel to ask if issues that are so
trivial to fix but still can be considered major, deserve a separate
ticket).
Thank you,
~KnS
On Wed, Nov 28, 2012 at 11:54 PM, Philipp Kerling wr
Hi,
I just wanted to make you aware of a typo in the documentation of free modules
[1]. The description of the function "echelon_coordinate_vector" of
sage.modules.free_module.FreeModule_submodule_with_basis_pid says: "Write v in
terms of the user basis for self." while it should correctly read
["Followup-To:" header set to gmane.comp.mathematics.sage.notebook.]
On 2012-11-30, Dima Pasechnik wrote:
> --=_Part_464_11607180.1354257615111
> Content-Type: text/plain; charset=ISO-8859-1
>
> this is now
> https://github.com/sagemath/sagenb/issues/117
>
> On Friday, 30 November 2012 12:25:4