ArticleslgStudy

science

ELI (programming language)

ELI (programming language) is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand ELI (programming language) rather than just read about it. In short: ELI is an interactive array programming language system based on the programming language APL. It has most of the functions of the International Organization for Standardization (ISO) APL standard ISO/IEC 13751:2001, and also list for non-homogeneous or non-rectangular data, complex numbers, symbols, temporal data, and control structures.

Key takeaways

  • ELI (programming language) belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect ELI (programming language) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of ELI (programming language) from memory before moving on to harder problems.

Reference excerpt

ELI is an interactive array programming language system based on the programming language APL. It has most of the functions of the International Organization for Standardization (ISO) APL standard ISO/IEC 13751:2001, and also list for non-homogeneous or non-rectangular data, complex numbers, symbols, temporal data, and control structures. A scripting file facility is available to organize programs in a fashion similar to using #include in C, which also provides convenient data input/output. ELI has dictionaries, tables, and a basic set of SQL-like statements. For performance, it has a compiler restricted to flat array programs. By replacing each APL character with one or two ASCII characters, ELI retains APL's succinct and expressive way of array programming relative to MATLAB or Python, ELI encourages a dataflow programming style, where the output of one operation feeds the input of another. ELI is available without charge, as freeware, on Windows, Linux, and macOS.

Version 0.3 ELI version 0.3, described as a stable release, was released on August 10, 2015. It integrates with a cross-platform IDE, ELI Studio, which provides a code editor with specialized functions to write and load ELI code. Three added widgets are used to monitor functions, variables, libraries and command history. Version 0.3 adds several new features.

Like: string match Match []PP: printing precision control )time: performance measure []: standard input Date and time attributes File handle: []open, []close, []write, and []get Semicolon (;)

Example code A line of ELI executes from right to left as a chain of operations; anything to the right of ‘//’ is a comment. Exclamation point (!) is an interval function. It can generate a vector of n integer from 1 to n.

The execution order of ELI is from right to left, and all primitive functions have equal precedence.

In the next example a function add is declared in a short function form. The arguments of the function can be either a scalar or a vector.

The $ rotation operator returns the reverse order of a vector.

A 2-by-3 matrix (or higher dimension array, e.g., 2 3 4#!24) can be generated by # with left argument 2 3.

In first line below the x is assigned with a vector from 1 to 20. Then, 1 = 2|x returns odd number True and even number False. The / is a primitive function for compression which picks up the value in x corresponding to the True values in its left argument.

File extensions Two file extensions are used in ELI for exchanging and sharing code for different purposes: .esf and .eli. An ELI file with extension .esf is a script file which contains all methods and data. A simple way to create a script file is using the command )out. However, a clean workspace with no debugging or error information left is needed before a script file can be created. Later the command )fload can be used to reload the script file.

An ELI file with extension .eli is an ELI workspace file which contains everything in a workspace. save and load are commands for workspace files.

References

External links Official website ELI Programming's channel on YouTube Online documentation

Worked examples

Example 1 — a first encounter with ELI (programming language)

Start with the simplest possible case. Write down what ELI (programming language) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to ELI (programming language) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about ELI (programming language) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of ELI (programming language)

In research
ELI (programming language) appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses ELI (programming language) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
ELI (programming language) is common in secondary-school and first-year university syllabi. It links to neighbouring topics APL programming language family, Array programming languages, so understanding it makes those chapters shorter.
In everyday life
Look for ELI (programming language) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “ELI (programming language)” →

How to study ELI (programming language) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what ELI (programming language) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain ELI (programming language) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is ELI (programming language) in simple terms?

ELI is an interactive array programming language system based on the programming language APL. It has most of the functions of the International Organization for Standardization (ISO) APL standard ISO/IEC 13751:2001, and also list for non-homogeneous or non-rectangular data, complex numbers, symbol…

Why does ELI (programming language) matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study ELI (programming language)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on ELI (programming language).

Tags

  • APL programming language family
  • Array programming languages

Keep exploring