Advertisement · 728 × 90
#
Hashtag
#APLMonday
Advertisement · 728 × 90
Preview
APL Quest 2013-1: Seems a Bit Odd To Me Write a function to produce a vector of the first n odd numbers.

Our #APLMonday series is changing! From this week, we will be posting questions from #APLQuest. This week's question is 2013-01: Write a function to produce a vector of the first n odd numbers (see apl.quest/2013/1/ to test your solution and view ours). #APL #OddNumbers #SequenceGeneration

1 0 0 0
What does the following monadic array property function determine when given any array?

What does the following monadic array property function determine when given any array?

This one is simple #APLMonday #APL

0 0 0 0
What does the following dyadic structural function compute when given vector arguments?
∘.{⍺⍵}

What does the following dyadic structural function compute when given vector arguments? ∘.{⍺⍵}

All good answers to this one are valid. #APLMonday #Dyalog #APL

2 0 0 0
What does the following dyadic selection function do when given an integer scalar as left argument and any vector as right argument? (⊃⌽)

What does the following dyadic selection function do when given an integer scalar as left argument and any vector as right argument? (⊃⌽)

Pick your answer to this one carefully... #APLMonday #Dyalog #APL

1 0 1 0
What does the following dyadic mathematical function do when given numeric arguments? {⍺×⌊0.5+⍵÷⍺}

What does the following dyadic mathematical function do when given numeric arguments? {⍺×⌊0.5+⍵÷⍺}

This one deserves a well-rounded answer... #APLMonday #Dyalog #APL

0 0 0 0
What does the following monadic index generation function compute when given any array? {0~⍨,⍉⊢⌸⍵}

What does the following monadic index generation function compute when given any array? {0~⍨,⍉⊢⌸⍵}

What comes around goes around – like this one! #APLMonday #Dyalog #APL

2 0 0 0
What does the following monadic array property function compute when given any array? {~0∊⍵∊0 1}

What does the following monadic array property function compute when given any array? {~0∊⍵∊0 1}

This one is for yes/no answers only... #APLMonday #Dyalog #APL

0 0 0 0
What does the following monadic text function do when given a character array? {⍵⌽⍨+/∧\' '=⍵}

What does the following monadic text function do when given a character array? {⍵⌽⍨+/∧\' '=⍵}

With this one, you might need to take a side. #APLMonday

1 1 0 0
What does the following monadic structural function produce when given any vector? ∘.⊣⍨

What does the following monadic structural function produce when given any vector? ∘.⊣⍨

Can you square this one away? #APLMonday #Dyalog #APL

0 0 0 0
What does the following monadic mathematical function do when given a numeric array? {(⌊⍵)+(1|⍵)>?0×⍵}

What does the following monadic mathematical function do when given a numeric array? {(⌊⍵)+(1|⍵)>?0×⍵}

Statistically speaking, this one will be alright.

#APLMonday #Dyalog #APL

0 0 0 0
What does the following monadic array property function determine when given any array?{⍵≡⍕⍵} 
Dyalog v20.0 will also support ⍕⍛≡

What does the following monadic array property function determine when given any array?{⍵≡⍕⍵} Dyalog v20.0 will also support ⍕⍛≡

Do you have the character to figure this one out? #APLMonday #Dyalog #APL

1 0 1 0
What does the following monadic comparison function compute when given any array? {1=≢∪⍵}

What does the following monadic comparison function compute when given any array? {1=≢∪⍵}

This one is unique... #APLMonday #Dyalog #APL

Experiment using TryAPL: tryapl.org?clear&q={1%3...

0 0 0 0
What does the following monadic mathematical function compute when given a numeric matrix? {0∧.=1 1⍉⍵}

What does the following monadic mathematical function compute when given a numeric matrix? {0∧.=1 1⍉⍵}

Watch this one so it doesn’t disappear without a trace! #APLMonday #Dyalog #APL

1 1 1 0
What does the following monadic text function compute when given a character vector? 
{⍵/⍨∨\⍵≠'0'}

v20.0 will also support: 
∨\⍤≠∘'0'⍛/

What does the following monadic text function compute when given a character vector? {⍵/⍨∨\⍵≠'0'} v20.0 will also support: ∨\⍤≠∘'0'⍛/

You might have zero leads on this one… #APLMonday #Dyalog #APL

0 0 0 0
What does the following monadic data conversion function compute when given a numeric array?

What does the following monadic data conversion function compute when given a numeric array?

Don’t look so surprised!

#APLMonday #Dyalog #APL

1 1 1 0
What does the following monadic selection function compute when given any vector?  
(?∘≢⊃⊢) 
v20.0 will also support: 
?∘≢⍛⊃

What does the following monadic selection function compute when given any vector? (?∘≢⊃⊢) v20.0 will also support: ?∘≢⍛⊃

Anything goes! #APLMonday #Dyalog #APL

1 1 1 0
What does the following monadic Boolean function compute when given a square Boolean matrix? 
(∨.∧⍨∨⊢)⍣≡ 
V20.0 will also support: 
∨.∧⍨⍛∨⍣≡

What does the following monadic Boolean function compute when given a square Boolean matrix? (∨.∧⍨∨⊢)⍣≡ V20.0 will also support: ∨.∧⍨⍛∨⍣≡

On a related node... #APLMonday #Dyalog #APL

2 1 0 0
What does the following monadic mathematical function compute when given any numeric argument? 

(=∘⌊⍨*∘0.5) 

V20.0 will also support: 

(⌊⍛=*∘0.5)

What does the following monadic mathematical function compute when given any numeric argument? (=∘⌊⍨*∘0.5) V20.0 will also support: (⌊⍛=*∘0.5)

This is just perfect… #APLMonday #Dyalog #APL #ArrayProgramming #Dyalog20

Experiment using TryAPL: tryapl.org?clear&q=%28%...

0 0 0 0
What does the following monadic array properties function determine when given any array? (2|⎕DR)

What does the following monadic array properties function determine when given any array? (2|⎕DR)

What even is this? #APLMonday #Dyalog #APL

Experiment using TryAPL: tryapl.org?clear&q=%282...

0 0 1 0
What does the following dyadic mathematical function compute when given a numeric arguments? 

×∘×⍨○| 

V20.0 will also support: 

×⍛×∘|

What does the following dyadic mathematical function compute when given a numeric arguments? ×∘×⍨○| V20.0 will also support: ×⍛×∘|

Read the signs… #APLMonday #Dyalog #APL

Experiment using TryAPL: tryapl.org?clear&q=%C3%...

0 0 0 0
What does the following dyadic structural function compute when given a two-element integer vector left argument and any matrix right argument? 

(⊣⍴⊢⌿⍤⊣⍴⍤1⊢) 

V20.0 will also support: 

(⊣⍴⊢⌿⍛⍴⍤1)

What does the following dyadic structural function compute when given a two-element integer vector left argument and any matrix right argument? (⊣⍴⊢⌿⍤⊣⍴⍤1⊢) V20.0 will also support: (⊣⍴⊢⌿⍛⍴⍤1)

APL paves the way… #APLMonday #Dyalog #APL

1 1 0 0
What does the following dyadic selection function do when given vector arguments?

What does the following dyadic selection function do when given vector arguments?

This one is a keeper...

#APLMonday #Dyalog #APL

2 1 0 0
What does the following monadic structural function get from any array?

What does the following monadic structural function get from any array?

If you can’t figure this one out, then you might have to split.
#APLMonday #Dyalog #APL

0 0 0 0
What does the following dyadic Boolean function compute when given positive integer array arguments? {2⊥∧/2⊥(⍣¯1)⍺,(⍤0)⍵}

What does the following dyadic Boolean function compute when given positive integer array arguments? {2⊥∧/2⊥(⍣¯1)⍺,(⍤0)⍵}

And what about this? #APLMonday #Dyalog #APL

1 1 0 0
What does the following monadic mathematical function compute when given a numeric array? (+/,)

What does the following monadic mathematical function compute when given a numeric array? (+/,)

Continuing last week’s theme… #APLMonday #APL #ArrayProgramming #Dyalog

0 0 0 0
What does the following dyadic mathematical function compute when given a vector of polynomials with descending coefficients? {⌽+⌿↑⌽¨⍵}

What does the following dyadic mathematical function compute when given a vector of polynomials with descending coefficients? {⌽+⌿↑⌽¨⍵}

Does it add up? #APLMonday

What does the following dyadic mathematical function compute when given a vector of polynomials in polynomials with descending coefficients? {⌽+⌿↑⌽¨⍵} #Dyalog #APL

0 0 0 0
What does the following monadic mathematical function compute when given a positive integer scalar argument? +\⍣2⍳

What does the following monadic mathematical function compute when given a positive integer scalar argument? +\⍣2⍳

This might require some mathematical knowledge… #APLMonday #Dyalog #APL

What does the following monadic mathematical function compute when given a positive integer scalar argument? +\⍣2⍳

1 1 0 0
What does the following monadic mathematical function compute when given a positive integer array argument? +⌿2∘⊥⍣¯1

What does the following monadic mathematical function compute when given a positive integer array argument? +⌿2∘⊥⍣¯1

Today's #APLMonday shouldn’t bother you one bit! #Dyalog #APL

Experiment using TryAPL: tryapl.org?clear&q=%2B%...

1 1 0 0
What does the following monadic boolean function compute when given an integer vector argument? {≠\(⍳+/⍵)∊+\1,⍵}

What does the following monadic boolean function compute when given an integer vector argument? {≠\(⍳+/⍵)∊+\1,⍵}

Alternatively… #APLMonday #Dyalog #APL

Experiment using TryAPL: tryapl.org?clear&q=%7B%...

1 1 1 0
What does the following monadic text function return when given a character vector argument? {⍵⊆⍨(~∧≠\)''''=⍵}

What does the following monadic text function return when given a character vector argument? {⍵⊆⍨(~∧≠\)''''=⍵}

You can quote us on this one… #APLMonday #Dyalog #APL

Experiment using TryAPL: tryapl.org?clear&q=%7B%...

1 1 0 0