Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #1900

Re: Short-cut for reiteration. Concise, readable symbols and

From "Christopher O. Young" <cy56@comcast.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Short-cut for reiteration. Concise, readable symbols and
Date 2011-04-27 09:38 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <ip8o6i$pgu$1@smc.vnet.net> (permalink)
References <iorih5$o6t$1@smc.vnet.net> <ip14qm$ged$1@smc.vnet.net> <ip3lrr$r76$1@smc.vnet.net> <ip682f$bmc$1@smc.vnet.net>

Show all headers | View raw


On 4/26/11 6:50 AM, in article ip682f$bmc$1@smc.vnet.net, "Peter Pein"
<petsie@dordos.net> wrote:

> I do not want to offend you.
>
> Is this a contest laziness vs. readability?
>
> There are options for some functions as strings like "AlternatingSigns",
> "ExtrapolatingOscillatory" and others where Ctrl-K does not help and
> "Table" is too complicated????
>
> shaking the head,
> Peter

I can't dig up the books right now, but isn't it long-standing usage in math
texts to be able to append a parameter list? E.g.,

(1-t)[0  k] + t[10-k   0],  k in {0, =8A, 10}

At any rate, that certainly seems like intuitive and concise notation to me.
I'm just trying to come close to that in Mathematica. It does seem "verbose"
if I have to use "Table" every time I do something as routine as the above.
There should be a syntax as short as the above example.

But I'll settle for

Graphics[Line[{{0, k}, {10 - k, 0}}~Table~{k, 0, 10}]]


Or
Line[{{0, k}, {10 - k, 0}}~Table~{k, 0, 10}] // Graphics

This comes closer to how I think about drawing a line.


I appreciate the shortcuts Mathematica provides, more because I find the
code cleaner and easier to follow if there are concise syntactical forms for
everyday, simple, routine situations such as the above notation for
parameter lists.

Having to use "Table" makes the code look unnecessarily cluttered, it seems
to me. There should be an ellipsis and a convention like the above in these
cases.

How can Mathematica become a popular tool for high school students, and most
college students, if they have to use cluttered, verbose code for everyday
routine expressions?

Another example: Mathematica should accept vectors in column format, not
just in list format or in row format. This would make linear algebra coding
about 100 times more readable.


I admire Michael Trott's abilities, but wading through the unformatted,
uncommented, tightly packed code of his introductory chapter just about
prevented me from picking up his Guide Books for months. It turns out that
it's mostly very concise string processing, but it took hours of formatting
and trying things out to see what he was doing.

Later on, he has in-depth discussions of Mathematica's structure that are a
big help for practical purposes, but you wouldn't guess it from the start of
his "Programming" Guide Book.

I suppose to experienced Mathematica programmers this sort of thing becomes
more natural. But it shouldn't take years to transfer from other forms of
programming to Mathematica programming. And it shouldn't take years of
training to grasp the mathematical meaning behind a page of Mathematica
code.`



Back to comp.soft-sys.math.mathematica | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

How to roll up multiple Line calls into a loop Sol Lederman <sol.lederman@gmail.com> - 2011-04-22 09:41 +0000
  Re: How to roll up multiple Line calls into a loop Dan <dflatin@rcn.com> - 2011-04-23 11:50 +0000
    Re: How to roll up multiple Line calls into a loop "Christopher O. Young" <cy56@comcast.net> - 2011-04-25 11:29 +0000
  Re: How to roll up multiple Line calls into a loop Albert Retey <awnl@gmx-topmail.de> - 2011-04-23 11:51 +0000
  Re: How to roll up multiple Line calls into a loop "Christopher O. Young" <cy56@comcast.net> - 2011-04-23 11:51 +0000
  Re: How to roll up multiple Line calls into a loop Helen Read <readhpr@gmail.com> - 2011-04-23 11:51 +0000
  Re: How to roll up multiple Line calls into a loop Peter Pein <petsie@dordos.net> - 2011-04-23 11:52 +0000
  Re: How to roll up multiple Line calls into a loop roby <roby.nowak@gmail.com> - 2011-04-23 11:52 +0000
  Re: How to roll up multiple Line calls into a loop Yves Klett <yves.klett@googlemail.com> - 2011-04-24 12:24 +0000
    Short-cut for reiteration, via postfix usage of Table as pure "Christopher O. Young" <cy56@comcast.net> - 2011-04-25 11:27 +0000
    Short-cut for reiteration, via postfix usage of Table as pure "Christopher O. Young" <cy56@comcast.net> - 2011-04-25 11:27 +0000
      Re: Short-cut for reiteration, via postfix usage of Table as pure Peter Pein <petsie@dordos.net> - 2011-04-26 10:51 +0000
      Re: Short-cut for reiteration, via postfix usage of Table as pure Peter Pein <petsie@dordos.net> - 2011-04-26 10:50 +0000
        Re: Short-cut for reiteration. Concise, readable symbols and "Christopher O. Young" <cy56@comcast.net> - 2011-04-27 09:38 +0000

csiph-web