Re: Function calling syntax (was Re: [sage-devel] integration algorithms)

2017-02-27 Thread Michael Orlitzky
On 02/27/2017 09:25 PM, Nils Bruin wrote: > > But only after you've declared f to be a function. If you want to do it in > one line, you'd have to spell out: > > f(x) = function('f')(x) > > ... > > f=function('f')(x).function(x) Well that's no fun. > which would probably not fill you with j

Re: Function calling syntax (was Re: [sage-devel] integration algorithms)

2017-02-27 Thread Nils Bruin
On Monday, February 27, 2017 at 5:56:44 PM UTC-8, Michael Orlitzky wrote: > > But it fills my heart with > joy that I can fix things by doing > > sage: f(x) = f(x) > sage: f > x |--> f(x) > > But only after you've declared f to be a function. If you want to do it in one line, you'd ha

Re: Function calling syntax (was Re: [sage-devel] integration algorithms)

2017-02-27 Thread Michael Orlitzky
On 02/27/2017 06:18 PM, Nils Bruin wrote: > > Michael Orlitzky wrote: >> >> I tried the thing that makes more semantic sense, >> >> sage: f = function('f',x) >> >> ... > > Ah, OK. And this made more semantic sense to you because you wanted f to be > a function called 'f' in the variable x? O

Function calling syntax (was Re: [sage-devel] integration algorithms)

2017-02-27 Thread Nils Bruin
(split from original thread because this is a separate topic) On Monday, February 27, 2017 at 5:38:17 AM UTC-8, Michael Orlitzky wrote: > > I tried the thing that makes more semantic sense, > > sage: f = function('f',x) > > and it told me to > > DeprecationWarning... Use function('f')(x) in

Re: [sage-devel] integration algorithms

2017-02-27 Thread Michael Orlitzky
On 02/26/2017 04:59 PM, Nils Bruin wrote: > On Sunday, February 26, 2017 at 8:17:05 AM UTC-8, Michael Orlitzky wrote: >> >> >> sage: f = function('f')(x) > > > Please consider to stop using such assignments. It propagates a confusion > between the *function* f and the *expression* f(x). The di

Re: [sage-devel] integration algorithms

2017-02-26 Thread Nils Bruin
On Sunday, February 26, 2017 at 8:17:05 AM UTC-8, Michael Orlitzky wrote: > > > sage: f = function('f')(x) Please consider to stop using such assignments. It propagates a confusion between the *function* f and the *expression* f(x). The distinction is significant in sage and generally brushed

Re: [sage-devel] integration algorithms

2017-02-26 Thread Ralf Stephan
On Sunday, February 26, 2017 at 5:17:05 PM UTC+1, Michael Orlitzky wrote: > > It might not be easy to tell whether or not you got a real result back > from e.g. Maxima. The following "works", > > sage: f = function('f')(x) > sage: integrate(f,x) > integrate(f(x), x) It's easy to recogn

Re: [sage-devel] integration algorithms

2017-02-26 Thread Michael Orlitzky
On 02/26/2017 01:52 AM, Ralf Stephan wrote: > Users of integrate() usually don't care which "algorithm" is used, > just that the thing is solved. At the moment the default behaviour > is calling Maxima only, and you have to know/read that you can > try other algorithms too. Many beginners don't kno

[sage-devel] integration algorithms

2017-02-25 Thread Ralf Stephan
Users of integrate() usually don't care which "algorithm" is used, just that the thing is solved. At the moment the default behaviour is calling Maxima only, and you have to know/read that you can try other algorithms too. Many beginners don't know about this. I propose to make the default "try al