On Apr 29, 2009, at 12:11 PM, Don Watson wrote:

> HI Skip,
>
>    I see what you are saying. I assume you can't put constants in a  
> tacit
> expression as follows:.
>
>    d1 =: ([: +/([ - ]) ^ 2) ^ 0.5
>
>    Why is this? I can understand why named nouns aren't allowed, but  
> not
> why constants aren't.

Actually, they are: you just have to "bond" them to their operator for  
later evaluation.

    d1 =: ([: +/([ - ]) ^&2) ^&0.5
    d1
┌ 
─ 
─ 
─ 
─ 
─ 
─ 
─ 
─ 
─ 
─ 
─ 
─ 
─ 
─ 
─ 
─────────────┬─────────┐
│ 
┌ 
─ 
─ 
┬ 
─ 
─ 
─ 
─ 
─ 
─ 
─ 
─ 
─ 
─ 
─ 
────────────┐│┌─┬─┬───┐│
│ 
│ 
[:│ 
┌ 
─ 
─ 
─ 
─ 
─ 
┬ 
─ 
──────┬───────┐│││^│&│0.5││
││   
│ 
│ 
┌ 
─ 
┬ 
─ 
┐ 
│ 
┌ 
─ 
┬ 
─ 
┬─┐│┌─┬─┬─┐│││└─┴─┴───┘│
││  │││+│/│││[│- 
│]│││^│&│2││││         │
││   
│ 
│ 
└ 
─ 
┴ 
─┘│└─┴─┴─┘│└─┴─┴─┘│││          
│
││   
│ 
└ 
─ 
─ 
─ 
──┴───────┴───────┘││          
│
│ 
└ 
─ 
─ 
┴ 
─ 
─ 
─ 
─ 
───────────────────┘│          
│
└ 
─ 
─ 
─ 
─ 
─ 
─ 
─ 
─ 
─ 
─ 
─ 
─ 
─ 
─ 
─ 
─────────────┴─────────┘


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to