Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Mathematica and Lisp
Replies: 83   Last Post: Mar 5, 2013 10:12 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Richard Fateman

Posts: 1,406
Registered: 12/7/04
Re: Mathematica and Lisp
Posted: Jan 22, 2013 2:40 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 1/17/2013 9:49 PM, David Bailey wrote:
> On 17/01/2013 04:15, Richard Fateman wrote:
>> On 1/14/2013 8:28 PM, David Bailey wrote:
>>> On 14/01/2013 05:01, Richard Fateman wrote:
>>>

>
>>
>> The point is that Mathematica is confusing to new users;

>
> Well I'd imagine that engineers who simply want to perform a
> mathematical calculation - one that doesn't come straight out of the
> box, like an isolated integral - the Mathematica language is probably
> easier to use than LISP.


Using Mathematica as a simple command language -- a front end to the
symbolic mathematics application program underneath -- is quite
different from using Mathematica as a language in which to build
significant new applications.

Even so, you seem to forget the trouble new users have in typing
simple mathematics into Mathematica. The surprise when sin(x)/x
turns out to be sin.

>>>
>
>> Maybe it will be in version 10. There is no way of telling from outside
>> the company.

> Possibly, but on the whole features seem to mature fast and then remain
> stable.


I am sure that is the intention.
>>
>>>
>
>>
>> There is an ANSI Standard Common Lisp that has a range of features.
>> Arrays were in "early" Lisp at least by 1966. There were arrays in
>> Fortran and Algol before that, so Lisp wasn't first. If you want to
>> criticize languages by historical relics, you might note that Fortran
>> doesn't have subroutines. Oh, variants of Fortran added subroutines.

> Clearly people can argue endlessly over the merits of different
> languages. To me, the interesting feature of early LISP was the elegant
> minimalist design. It seemed to offset my irritation that foo(1,2,3) is
> a lot easier to read than (foo,1,2,3)


First of all, it would be (foo 1 2 3). No commas.

and that the language did live up
> to its name: Lots of Irritating Sets of Parentheses! Once it had to add
> other constructs that elegance was lost.


Any experienced Lisp programmer these days will use an editor that keeps
track of both indentation and parentheses, and so the structure of a
program will be quite evident from the indentation. A programmer
will probably first notice the error in indentation and correct it by
adding or removing a parenthesis. It is an enormous boon to the
construction of programs with nested structure, such as if-then-else
conditionals, and mathematical expressions. In case you hadn't noticed,
the parenthesis structure for large deeply nested mathematical
expressions is difficult for humans to comprehend accurately;
fortunately the INPUT lines in Mathematica are generally short, while
the OUTPUTS are the complicated ones.

The prefix vs. infix issue is also a red herring. If Lisp programmers
wanted to use infix they would use any of a number of free infix front
ends. They rarely do.

>>
>>
>>
>> Mathematica seems to have kept its original design (at

>>> least in this area) over the years, even though internally, lists now
>>> come in two flavors!

>>
>> Mathematica's internal design has apparently changed in many respects;
>> some WRI literature claims it's been entirely rewritten.

>>>
> Well obviously it is only the external design that is directly relevant
> to us.

Not if the efficiencies change drastically, which they do.

I'd expect the internal design to change radically, as for
> example, typical available RAM soared during the two decades following 1990.
>>>
>
>

>>
>> I think the issue is not only that it violates transparency, but that it
>> mis-uses terms, it can make a hash of comparing algorithms and data
>> structures for efficiency, it is expensive and proprietary, it has no
>> formal definition, and some things are done just out-and-out wrong from
>> the perspective of computer science and numerical analysis.
>>
>> But other than that, eh..

> Which kind of makes me wonder why you actually use Mathematica! If you
> listed some of the things you like about the system, it might become
> apparent that a variety of subtle tradeoffs were necessary to provide
> those features.


I rarely write programs of any length in Mathematica, because (as I've
said) I hold the programming language in generally low regard.
On the other hand I am pretty much familiar with the language because
I wrote a parser for it (in Lisp) some time ago, and in my experience
one of the best ways to really learn a language is to "implement" it.

I do find it an object of curiosity to see how some ideas are
expressed by the symbolic mathematical routines (e.g. integration).
And the Solve (and related, e.g. Reduce) programs have followed
an interesting path of improvement.

It is also useful for finding high-precision values of numerical
library functions to compare to other programs, e.g. Bessel functions,
that I was experimenting with. Unfortunately for Mathematica, I found
bugs in
its Bessel function (reported and acknowledged by them).
Here's one in version 8 (I do not yet have version 9 installed)
q=429515858585961022071539/6922263581864661506963;

a=N[BesselJ[0,q],45];
b=N[BesselJ[0,q],100];
c=N[BesselJ[0,q],45];

a==c
returns False.

If I were using a computer to do something that required correct answers
for, say, life safety, like building a bridge, I would follow WRI's
advice and not use Mathematica.
(see http://www.wolframalpha.com/termsofuse/)






Date Subject Author
1/11/13
Read Mathematica and Lisp
amzoti
1/12/13
Read Re: Mathematica and Lisp
Richard Fateman
1/12/13
Read Re: Mathematica and Lisp
David Bailey
1/14/13
Read Re: Mathematica and Lisp
Richard Fateman
1/14/13
Read Re: Mathematica and Lisp
David Bailey
1/16/13
Read Re: Mathematica and Lisp
Richard Fateman
1/18/13
Read Re: Mathematica and Lisp
David Bailey
1/22/13
Read Re: Mathematica and Lisp
Richard Fateman
1/22/13
Read Re: Mathematica and Lisp
David Bailey
1/24/13
Read Re: Mathematica and Lisp
Richard Fateman
1/25/13
Read Re: Mathematica and Lisp
Richard Fateman
1/26/13
Read Re: Mathematica and Lisp
Murray Eisenberg
1/26/13
Read Re: Mathematica and Lisp
Murray Eisenberg
1/26/13
Read Re: Mathematica and Lisp
W. Craig Carter
1/16/13
Read Re: Mathematica and Lisp
Murray Eisenberg
1/16/13
Read Re: Mathematica and Lisp
Richard Fateman
1/16/13
Read Re: Mathematica and Lisp
David Bailey
1/18/13
Read Re: Mathematica and Lisp
Murray Eisenberg
1/31/13
Read Re: Mathematica and Lisp
Noqsi
2/2/13
Read Re: Mathematica and Lisp
Daniel Lichtblau
2/3/13
Read Re: Mathematica and Lisp
Richard Fateman
2/2/13
Read Re: Mathematica and Lisp
Richard Fateman
2/3/13
Read Re: Mathematica and Lisp
David Bailey
2/5/13
Read Re: Mathematica and Lisp
Richard Fateman
2/6/13
Read Re: Mathematica and Lisp
David Bailey
2/6/13
Read Re: Mathematica and Lisp
Richard Fateman
2/3/13
Read Re: Mathematica and Lisp
Andrzej Kozlowski
2/5/13
Read Re: Mathematica and Lisp
Richard Fateman
2/6/13
Read Re: Mathematica and Lisp
David Bailey
2/8/13
Read Palette problem with Feynman slash notation
Dave Snead
2/5/13
Read Re: Mathematica and Lisp
Bill Rowe
2/6/13
Read Re: Mathematica and Lisp
Joseph Gwinn
2/3/13
Read Re: Mathematica and Lisp
Matthias Bode
2/3/13
Read Re: Mathematica and Lisp
Noqsi
2/6/13
Read Re: Mathematica and Lisp
Richard Fateman
2/6/13
Read Re: Mathematica and Lisp
David Bailey
2/6/13
Read Re: Mathematica and Lisp
mathgroup
2/4/13
Read Re: Mathematica and Lisp
Alex Krasnov
2/6/13
Read Re: Mathematica and Lisp
Noqsi
2/8/13
Read Re: Mathematica and Lisp
Richard Fateman
2/9/13
Read Re: Mathematica and Lisp
János Löbb
2/9/13
Read Re: Mathematica and Lisp
Richard Fateman
2/10/13
Read Re: Mathematica and Lisp
michael
2/10/13
Read Re: Mathematica and Lisp
Bill Rowe
2/8/13
Read Re: Mathematica and Lisp
Andrzej Kozlowski
2/8/13
Read Re: Mathematica and Lisp
Noqsi
2/9/13
Read Re: Mathematica and Lisp
Richard Fateman
2/10/13
Read Re: Mathematica and Lisp
David Bailey
2/9/13
Read Re: Mathematica and Lisp
Matthias Bode
2/15/13
Read Re: Mathematica and Lisp
Noqsi
2/17/13
Read Re: Mathematica and Lisp
David Bailey
2/18/13
Read Re: Mathematica and Lisp
Joseph Gwinn
2/18/13
Read Re: Mathematica and Lisp
David Park
2/22/13
Read Re: Mathematica and Lisp
Richard Fateman
2/23/13
Read Re: Mathematica and Lisp
David Bailey
2/23/13
Read Re: Mathematica and Lisp
Richard Fateman
2/25/13
Read Re: Mathematica and Lisp
David Bailey
2/26/13
Read Re: Mathematica and Lisp
Richard Fateman
2/27/13
Read Re: Mathematica and Lisp
Bill Rowe
2/27/13
Read Re: Mathematica and Lisp
Richard Fateman
3/2/13
Read Re: Mathematica and Lisp
Bill Rowe
3/3/13
Read Re: Mathematica and Lisp
Richard Fateman
3/3/13
Read Re: Mathematica and Lisp
Noqsi
3/5/13
Read Re: Mathematica and Lisp
Richard Fateman
3/5/13
Read Re: Mathematica and Lisp
Vince Virgilio
3/3/13
Read Re: Mathematica and Lisp
Bob Hanlon
1/16/13
Read Re: Mathematica and Lisp
Noqsi
1/16/13
Read Re: Mathematica and Lisp
Richard Fateman
1/18/13
Read Re: Mathematica and Lisp
Noqsi
2/23/13
Read Re: Mathematica and Lisp
Dr. Peter Klamser
2/25/13
Read Re: Mathematica and Lisp
Richard Fateman
2/26/13
Read Re: Mathematica and Lisp
Noqsi

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.