 |
|
List Archives > 
Maple User Group List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[MUG] Re: yp := (t) -> %;
| [MUG] Re: yp := (t) -> %; |
|
Author: Dr Francis J Wright
Posted: Fri, 16 Aug 2002 18:48:28 +0100
|
>> From: "Dr Francis J. Wright" "F.J.Wright"
From: "Colin Campbell - IST" "campbell"
To: "maple-list"
Sent: Monday, August 05, 2002 8:12 PM
Subject: [MUG] yp := (t) -> %;
>
> >> From: Colin Campbell - IST "campbell"
>
> Could people vote on the following proposal for Maple 9? 10?
>
> BACKGROUND:
> ^^^^^^^^^^^
> You define a function:
>
> f := (t) -> sin(t^2); # ( ) on t not needed
>
> You differentiate it and get a result:
>
> diff( f(t), t );
>
> You want to use the result to define a function. You'd like to type:
>
> fp := (t) -> %; # Method 1 Mmm ... pretty!
>
> but you have to type:
>
> fp := unapply(%, t); # Method 2 Mmm ... not pretty!
>
>
> QUESTION:
> ^^^^^^^^^
> Would you support the idea of Maple 9? 10? permitting "Method 1"?
>
> NOTE: This would likely mean %, %%, ... could no longer be used in
> procedures. Some like Greg Fee would say that would be a good
> thing as using them tends to reduce readability!
>
> Please vote "yes" or "no" or suggest a better scheme for avoinding
unapply.
It can be very convenient to be able to use % etc. (with discretion!) as at
present in general proc definitions, so I vote against losing that facility.
However, % cannot at present be used in arrow definitions, so I have no
objection to the suggested new use, except that it would probably confuse
users. On balance, I see no objection to using unapply and I vote to
preserve the status quo.
Francis
---
Dr Francis J. Wright
School of Mathematical Sciences, Queen Mary
University of London, Mile End Road, London E1 4NS, UK
Tel: 020 7882 5453 (direct); Fax: 020 8981 9587 (dept.)
"F.J.Wright" http://centaur.maths.qmul.ac.uk/
|
Previous by date: [MUG] Numerical optimization, Dr Francis J Wright
Next by date: [MUG] plot to ps file from within proc, Nld
Previous thread: [MUG] dchange, Robert J Lopez
Next thread: [MUG] plot to ps file from within proc, Nld
|
|
|