[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-06 Thread Robert Bradshaw
On Nov 3, 2008, at 8:05 AM, Robert Dodier wrote: > William Stein wrote: > >> Incidentally, if we did allow automatic creation of symbolic >> variables, and default calling of symbolic expressions, then >> doing something like this would happen >> all the time and confuse the crap out of people: >

[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-03 Thread David Kohel
Hi John, To give a bit more weight to the counterargument against the alphabetti solution: > I agree, and I did not really mean my alphabetti suggestion to be > taken too seriously. In some version, there was an invasive declaration of single character symbols to be symbolic elements. This ca

[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-03 Thread William Stein
On Mon, Nov 3, 2008 at 8:05 AM, Robert Dodier <[EMAIL PROTECTED]> wrote: > > William Stein wrote: > >> Incidentally, if we did allow automatic creation of symbolic >> variables, and default calling of symbolic expressions, then >> doing something like this would happen >> all the time and confuse

[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-03 Thread Robert Dodier
William Stein wrote: > Incidentally, if we did allow automatic creation of symbolic > variables, and default calling of symbolic expressions, then > doing something like this would happen > all the time and confuse the crap out of people: > > sage: function_name_with_slight_typo(10) > 10 Well, t

[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-02 Thread [EMAIL PROTECTED]
On Nov 2, 4:23 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > sage: f(x,y,z,theta) = x+y-z/theta    # I didn't ever do var('x,y,z,theta') > sage: f.integrate(theta) > (x, y, z, theta) |--> -log(theta)*z + theta*y + theta*x Yes thank you. That is a very nice way to do it. cs --~--~-

[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-02 Thread William Stein
On Sun, Nov 2, 2008 at 4:16 PM, Timothy Clemans <[EMAIL PROTECTED]> wrote: > > Would it be possible to have a beginners mode where undefined > variables are allowed? Nobody has proposed a technically feasible way to actually do this yet, so I don't know whether or not it is possible.I suspect

[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-02 Thread William Stein
On Sun, Nov 2, 2008 at 3:58 PM, Ronan Paixão <[EMAIL PROTECTED]> wrote: > > >> I personally Python well suited to mathematical computation, >> and at least the approach in Python regarding undefined variables >> is consistent with every other general purpose programming >> language I've ever used.

[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-02 Thread Timothy Clemans
Would it be possible to have a beginners mode where undefined variables are allowed? A user could easily change the mode to standard using say set_mode_standard() or something similar. Maybe have Sage state the mode both on the command line and in the notebook. The only problem would be that some

[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-02 Thread Ronan Paixão
> I personally Python well suited to mathematical computation, > and at least the approach in Python regarding undefined variables > is consistent with every other general purpose programming > language I've ever used. But it is definitely different than Mathematica. The problem lies in the fac

[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-02 Thread William Stein
On Sun, Nov 2, 2008 at 12:22 PM, John Cremona <[EMAIL PROTECTED]> wrote: > How much of the problem would go away if the standard startup file had > var('a b c d e f g h i j k l m n o p q r s t u v w x y z') > in it? So that var() only had to be used explicitly for longer variable > names? > > J

[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-02 Thread John Cremona
2008/11/2 mabshoff <[EMAIL PROTECTED]>: > > > > On Nov 2, 12:22 pm, "John Cremona" <[EMAIL PROTECTED]> wrote: >> 2008/11/2 William Stein <[EMAIL PROTECTED]>: > > > >> > OK, let's do that. >> >> How much of the problem would go away if the standard startup file had >> var('a b c d e f g h i j k l

[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-02 Thread mabshoff
On Nov 2, 12:22 pm, "John Cremona" <[EMAIL PROTECTED]> wrote: > 2008/11/2 William Stein <[EMAIL PROTECTED]>: > > OK, let's do that. > > How much of the problem would go away if the standard startup file had >  var('a b c d e f g h i j k l m n o p q r s t u v w x y z') > in it?  So that var()

[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-02 Thread John Cremona
2008/11/2 William Stein <[EMAIL PROTECTED]>: > > On Sun, Nov 2, 2008 at 10:57 AM, Robert Dodier <[EMAIL PROTECTED]> wrote: >> William Stein wrote: >> >>> I personally Python well suited to mathematical computation, > > Wow, I omitted a lot of words from that sentence. > >> No problem with any comp

[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-02 Thread William Stein
On Sun, Nov 2, 2008 at 10:57 AM, Robert Dodier <[EMAIL PROTECTED]> wrote: > William Stein wrote: > >> I personally Python well suited to mathematical computation, Wow, I omitted a lot of words from that sentence. > No problem with any computation involving literal objects. > It's the symbolic st

[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-02 Thread Martin Albrecht
On Sunday 02 November 2008, Tim Lahey wrote: > On Nov 2, 2008, at 1:57 PM, Robert Dodier wrote: > > Apparently Maple also does not require variables to be declared > > (to judge by their quick start guide). Neither does Maxima/Macsyma > > nor MuPAD nor PARI/GP ftr. > > For most work, Maple doesn't

[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-02 Thread William Stein
On Sun, Nov 2, 2008 at 10:35 AM, Simon King <[EMAIL PROTECTED]> wrote: > > Hi! > > On Nov 2, 6:18 pm, "William Stein" <[EMAIL PROTECTED]> wrote: >> >> People coming from a Mathematica background should not assume that >> >> they know all there is to know about how to use a Computer Algebra >> >> S

[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-02 Thread Tim Lahey
On Nov 2, 2008, at 1:57 PM, Robert Dodier wrote: >> > Apparently Maple also does not require variables to be declared > (to judge by their quick start guide). Neither does Maxima/Macsyma > nor MuPAD nor PARI/GP ftr. > For most work, Maple doesn't require you to define symbolic variables. One doe

[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-02 Thread Robert Dodier
William Stein wrote: > I personally Python well suited to mathematical computation, No problem with any computation involving literal objects. It's the symbolic stuff that's lacking. > and at least the approach in Python regarding undefined variables > is consistent with every other general pur

[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-02 Thread Simon King
Hi! On Nov 2, 6:18 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > >> People coming from a Mathematica background should not assume that > >> they know all there is to know about how to use a Computer Algebra > >> System, and instead, read the documentation. > > > This is so obnoxiously wrong, I

[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-02 Thread William Stein
On Sun, Nov 2, 2008 at 9:53 AM, Robert Dodier <[EMAIL PROTECTED]> wrote: > > Justin C. Walker wrote: > >> On Nov 2, 2008, at 00:01 , [EMAIL PROTECTED] wrote: > >> > Is it possible to avoid need to declare variables with var commands? > > Sage has adopted Python's evaluation policy, in which it is

[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-02 Thread Robert Dodier
Justin C. Walker wrote: > On Nov 2, 2008, at 00:01 , [EMAIL PROTECTED] wrote: > > Is it possible to avoid need to declare variables with var commands? Sage has adopted Python's evaluation policy, in which it is an error to evaluate an undefined variable. Mathematica adopted Macsyma's policy, in

[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-02 Thread Harald Schilly
On Nov 2, 8:27 am, "Justin C. Walker" <[EMAIL PROTECTED]> wrote: > People coming from a Mathematica background should not assume that   > they know all there is to know about how to use a Computer Algebra   > System... no, better not, but sage isn't the answer to the question of all questions eit

[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-02 Thread Simon King
Dear Chris On Nov 2, 2:01 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Is it possible to avoid need to declare variables with var commands? > > Mathematica doesn't need var commands so people coming from > Mathematica may get confused when they issue their first plot command > in Sage. O

[sage-devel] Re: Why Sage needs var(...) commands unlike Mathematica?

2008-11-02 Thread Justin C. Walker
On Nov 2, 2008, at 00:01 , [EMAIL PROTECTED] wrote: > > Is it possible to avoid need to declare variables with var commands? > > Mathematica doesn't need var commands so people coming from > Mathematica may get confused when they issue their first plot command > in Sage. The tutorial and refere