Differences between revisions 1 and 10 (spanning 9 versions)
Revision 1 as of 2007-03-11 12:56:52
Size: 745
Comment:
Revision 10 as of 2009-02-08 21:48:12
Size: 668
Editor: SimonMarsden
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
Some basic examples of APL expressions.
Line 5: Line 4:
What you type in an APL session is indented with six spaces.
{{{
      ⎕←'Hello World!'
Hello World!
      ⍳5
1 2 3 4 5
      20+⍳5
21 22 23 24 25
      2 3 4 + 100 500 200
102 503 204
      2 3 4 × 100 500 200
200 1500 800
      (⍳3)∘.+⍳3 ⍝ addition table
2 3 4
3 4 5
4 5 6
      (⍳3)∘.×⍳3 ⍝ multiplication table
1 2 3
2 4 6
3 6 9
      ∘.×⍨⍳3 ⍝ reflex operator (Dyalog) uses right argument on left
1 2 3
2 4 6
3 6 9
      ∘.=⍨⍳3 ⍝ identity matrix
1 0 0
0 1 0
0 0 1
      im←∘.=⍨∘⍳ ⍝ define a function (Dyalog)
      im 5 ⍝ use it
1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
0 0 0 0 1
      
}}}
== Beginners ==

[[Studio/SimpleExamples|Simple Examples]] of APL in action

[[Studio/FunWithFunctions|Fun with functions]]

 

== Easy Examples ==

[[Studio/GrilleCyphers| Fun with Grille cyphers]] A 500-year old way of sending secret messages

[[Studio/FunWithText| Fun with Text]] Did Shakespeare write the Bible? An example of reading text files.

 

== Intermediate and Advanced ==

[[Studio/EncodeDecodeDates| Fun with dates]] Handling dates in APL, including examples of using .NET

[[Studio/HtmlWithClasses| Fun with HTML and CSS]] Using APL to generate a web page

[[Studio/ConvexHull| Convex Hull Algorithm]]

Studio

Beginners

Simple Examples of APL in action

Fun with functions

 

Easy Examples

Fun with Grille cyphers A 500-year old way of sending secret messages

Fun with Text Did Shakespeare write the Bible? An example of reading text files.

 

Intermediate and Advanced

Fun with dates Handling dates in APL, including examples of using .NET

Fun with HTML and CSS Using APL to generate a web page

Convex Hull Algorithm

Studio (last edited 2017-02-16 19:39:26 by KaiJaeger)