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


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

Re: Compiling numerical iterations

From Peter Klamser <klamser@googlemail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Compiling numerical iterations
Date 2013-03-05 09:15 +0000
Message-ID <kh4d31$6ve$1@smc.vnet.net> (permalink)
References <kgab2i$c7f$1@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


... I always use <ctrl>. to pick complete parts of an expression,
because the timing of clicking is very sensitive ...

You can see, that it is no good to use expressions like For ... etc.
to generate fast code in Mathematica.

For statements ect.. are bad style in Mathematica like GOTO Label in former
days, when we learned to use PASCAL, MODULA etc.. Even if you can
still use Label in Mathematica...

says Peter

2013/3/1 David Bailey <dave@removedbailey.co.uk>:
> On 26/02/2013 06:09, firlefranz wrote:
>> Thanks a lot! To be honest, some of the commands Ray is using, I've never seen before. I stopped using mathematica before version 5 came out.
>>
>
> Remember that clicking on any function name and pressing F1, will give
> you some help.
>
> Also, if you are confused about what certain operators do, or what their
> precedence is in a particular expression, you can always resort to
> FullForm. Since you want to look at the expression before evaluation, do
> this:
>
> FoldList[Plus,0,
>   Total@Sign@Table[Most@RandomReal[{-1,1},num],{1000}]] //Hold//FullForm
>
> Hold[FoldList[Plus, 0,
>    Total[Sign[Table[Most[RandomReal[List[-1, 1], num]], List[1000]]]]]]
>
> The other thing to remember, is that repeated clicking at a point in an
> expression (or use of Edit/Extend selection) will pick out successively
> larger complete expressions - whether the expression is FullForm or not.
> You can copy/paste such an expression somewhere else, and test it to see
> what it does.
>
> David Bailey
> http://www.dbaileyconsultancy.co.uk
>

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


Thread

Compiling numerical iterations firlefranz <cornelius.franz@gmx.net> - 2013-02-23 12:01 +0000
  Re: Compiling numerical iterations Ray Koopman <koopman@sfu.ca> - 2013-02-24 04:31 +0000
  Re: Compiling numerical iterations firlefranz <cornelius.franz@gmx.net> - 2013-02-26 06:09 +0000
    Re: Compiling numerical iterations Ray Koopman <koopman@sfu.ca> - 2013-02-27 08:04 +0000
    Re: Compiling numerical iterations David Bailey <dave@removedbailey.co.uk> - 2013-03-01 02:25 +0000
  Re: Compiling numerical iterations Peter Klamser <klamser@googlemail.com> - 2013-02-27 08:04 +0000
  Re: Compiling numerical iterations Peter Klamser <klamser@googlemail.com> - 2013-03-05 09:15 +0000

csiph-web