Re: [sage-support] Re: Installing the optional python3 package seems to break Sage

2016-08-10 Thread Jori Mäntysalo
On Wed, 10 Aug 2016, William Stein wrote: I was really surprised when I started Sage that people would often try to **install all optional packages**, then report anything that went wrong.I bet people still try to do this... Isn't it supposed to work... And on the servers I would like to h

Re: [sage-support] Lambda functions vs. defining functions

2016-08-10 Thread William Stein
On Wednesday, August 10, 2016, Todd Zimmerman wrote: > I assumed that SageMath converts the functions into symbolic expressions. > If I enter the following it will work: > > > f=lambda x: x*sin(x) > diff(f(x),x) > f is a python function f(x) is a symbolic expression - the result of calling f wi

Re: [sage-support] Re: Lambda functions vs. defining functions

2016-08-10 Thread Todd Zimmerman
I assumed that SageMath converts the functions into symbolic expressions. If I enter the following it will work: f=lambda x: x*sin(x) diff(f(x),x) def g(x): return x*sin(x) diff(g(x),x) On Wednesday, August 10, 2016 at 4:01:09 PM UTC-5, Harald Schilly wrote: > > On Wed, Aug 10, 2016 at

Re: [sage-support] Re: Lambda functions vs. defining functions

2016-08-10 Thread Harald Schilly
On Wed, Aug 10, 2016 at 10:46 PM, Todd Zimmerman wrote: > You can integrate and differentiate both types of functions in SageMath as > well as use them for solving differential equations. So, can you copy/paste us an example? It does work, if that small python-function is evaluated and returns a

Re: [sage-support] Lambda functions vs. defining functions

2016-08-10 Thread William Stein
On Wednesday, August 10, 2016, Todd Zimmerman wrote: > I'm aware of the difference between the two approaches in vanilla Python, > I was just trying to figure out if SageMath treats the two differently. > > No it doesn't. > > You can integrate and differentiate both types of functions in Sage

[sage-support] Re: Lambda functions vs. defining functions

2016-08-10 Thread Todd Zimmerman
I'm aware of the difference between the two approaches in vanilla Python, I was just trying to figure out if SageMath treats the two differently. You can integrate and differentiate both types of functions in SageMath as well as use them for solving differential equations. -Todd On Wednesda

Re: [sage-support] Lambda functions vs. defining functions

2016-08-10 Thread William Stein
On Wed, Aug 10, 2016 at 7:36 AM, Todd Zimmerman wrote: > Is there any significant difference in SageMath between defining a function > using lambda vs. defining it using 'def ...:'? Both situations result in > functions that can be differentiated, integrated, etc so I'm not sure if > there is any

[sage-support] Re: Lambda functions vs. defining functions

2016-08-10 Thread Harald Schilly
On Wednesday, August 10, 2016 at 8:37:18 PM UTC+2, Todd Zimmerman wrote: > > Is there any significant difference in SageMath between defining a > function using lambda vs. defining it using 'def ...:'? > > This is actually a pure Python question, and the answer is yes. Technically: def f1(x):

[sage-support] Lambda functions vs. defining functions

2016-08-10 Thread Todd Zimmerman
Is there any significant difference in SageMath between defining a function using lambda vs. defining it using 'def ...:'? Both situations result in functions that can be differentiated, integrated, etc so I'm not sure if there is any functional difference between the two methods in SageMath.

Re: [sage-support] Re: Installing the optional python3 package seems to break Sage

2016-08-10 Thread William Stein
I was really surprised when I started Sage that people would often try to **install all optional packages**, then report anything that went wrong.I bet people still try to do this... On Wed, Aug 10, 2016 at 7:09 AM, Dima Pasechnik wrote: > > > On Wednesday, August 10, 2016 at 9:34:59 AM UTC+1

[sage-support] Re: Installing the optional python3 package seems to break Sage

2016-08-10 Thread Dima Pasechnik
On Wednesday, August 10, 2016 at 9:34:59 AM UTC+1, Dima Pasechnik wrote: > > > > On Wednesday, August 10, 2016 at 9:22:46 AM UTC+1, Dima Pasechnik wrote: >> >> >> >> On Wednesday, August 10, 2016 at 9:13:14 AM UTC+1, The Geeko wrote: >>> >>> I just encountered this problem sage -i py3 ( to in

[sage-support] Re: Installing the optional python3 package seems to break Sage

2016-08-10 Thread leif
Dima Pasechnik wrote: > On Wednesday, August 10, 2016 at 10:39:44 AM UTC+1, leif wrote: > > Dima Pasechnik wrote: > > this is now https://trac.sagemath.org/ticket/21199 > > > Is it at all supposed to be used that way? (I don't think so. I

[sage-support] Re: Installing the optional python3 package seems to break Sage

2016-08-10 Thread Dima Pasechnik
On Wednesday, August 10, 2016 at 10:39:44 AM UTC+1, leif wrote: > > Dima Pasechnik wrote: > > this is now https://trac.sagemath.org/ticket/21199 > > Is it at all supposed to be used that way? (I don't think so. IMHO > it's an optional package to use *instead* just like GMP vs. MPIR at Sage

[sage-support] Re: Installing the optional python3 package seems to break Sage

2016-08-10 Thread leif
Dima Pasechnik wrote: > this is now https://trac.sagemath.org/ticket/21199 Is it at all supposed to be used that way? (I don't think so. IMHO it's an optional package to use *instead* just like GMP vs. MPIR at Sage *configure* time, not to be installed afterwards.) Still, as is it's presumably

[sage-support] Re: Installing the optional python3 package seems to break Sage

2016-08-10 Thread Dima Pasechnik
this is now https://trac.sagemath.org/ticket/21199 On Wednesday, August 10, 2016 at 9:34:59 AM UTC+1, Dima Pasechnik wrote: > > > > On Wednesday, August 10, 2016 at 9:22:46 AM UTC+1, Dima Pasechnik wrote: >> >> >> >> On Wednesday, August 10, 2016 at 9:13:14 AM UTC+1, The Geeko wrote: >>> >>> I jus

[sage-support] Re: Installing the optional python3 package seems to break Sage

2016-08-10 Thread Dima Pasechnik
On Wednesday, August 10, 2016 at 9:22:46 AM UTC+1, Dima Pasechnik wrote: > > > > On Wednesday, August 10, 2016 at 9:13:14 AM UTC+1, The Geeko wrote: >> >> I just encountered this problem sage -i py3 ( to install python3)... >> broke my whole system... Is there a single "undo" operation so th

[sage-support] Re: Installing the optional python3 package seems to break Sage

2016-08-10 Thread Dima Pasechnik
On Wednesday, August 10, 2016 at 9:13:14 AM UTC+1, The Geeko wrote: > > I just encountered this problem sage -i py3 ( to install python3)... > broke my whole system... Is there a single "undo" operation so that I can > return to my working copy? > do you mean sage -i python3 IMHO Sage

[sage-support] Re: Installing the optional python3 package seems to break Sage

2016-08-10 Thread The Geeko
I just encountered this problem sage -i py3 ( to install python3)... broke my whole system... Is there a single "undo" operation so that I can return to my working copy? On Wednesday, October 21, 2015 at 6:30:31 AM UTC-5, Emmanuel Charpentier wrote: > > This is probably related to Trac#1852