Algae (programming language)
- Algae (programming language)
Algae is an interpreted programming language for numerical analysis, a branch of mathematics. Its interactive interpreter is available under GPL. The language and its implementation were designed by Scott Hunziker and Mike Brennan starting in 1994.
yntax and semantics
The syntax of Algae is largely drawn from C. The semantics, however, are more similar to a dynamic programming language such as Perl or an interactive technical-computing language such as MATLAB. Built-in data types for matrices and operators for matrix arithmetic are provided.
Examples of Algae code
These examples are from the official Algae manual (reference: [http://algae.sourceforge.net/algae_3.html#SEC3] ):
# Print temperature conversionsfahr = sort (0:300:20, 32, 212);Celsius = (5/9)*(fahr-32); [fahr;Celsius] '?
# Read and sum some numberssum = 0;$read = 1;while ($read) { sum += readnum(); }sum?
Both the question mark and semicolon are statement terminators. When ?
is used, the return value of the statement is printed to the user's console.
Advantages of Algae
*Algae is a very fast language
*Variables take up very little memory
The algae interpreter
The CLI interpreter by Hunziker and Brennan is the single implementation of Algae. It is licensed under the GNU General Public License. It is compatible with Unix-based operating systems. It has not been ported to non-Unix operating system such as Microsoft Windows. The interpreter is designed to used interactively. As of 2007 the Algae interpreter appears to be unmaintained, with the source code and distribution web site last updated in 2004.
External links
* [http://algae.sourceforge.net/ Algae Home Page]
Wikimedia Foundation.
2010.
Look at other dictionaries:
List of programming languages by category — Programming language lists Alphabetical Categorical Chronological Generational This is a list of programming languages grouped by category. Some languages are listed in multiple categories. Contents … Wikipedia
L-system — An L system or Lindenmayer system is a parallel rewriting system, namely a variant of a formal grammar (a set of rules and symbols), most famously used to model the growth processes of plant development, but also able to model the morphology of a … Wikipedia
Wikipedia:Manual of Style — This guideline is a part of the English Wikipedia s Manual of Style. Use common sense in applying it; it will have occasional exceptions. Please ensure that any edits to this page reflect consensus. Shortcuts … Wikipedia
Pun — A pun (or paronomasia) is a phrase that deliberately exploits confusion between similar sounding words for humorous or rhetorical effect.A pun may also cause confusion between two senses of the same written or spoken word, due to homophony,… … Wikipedia
Detailed logarithmic timeline — Main article: logarithmic timeline This timeline allows one to see the whole history of the universe, the Earth, and mankind in one table. Each row is defined in years ago, that is, years before the present date, with the earliest times at the… … Wikipedia
List of Battlestar Galactica (reimagining) locations — The reimagined science fiction television series Battlestar Galactica presents various locations, spaceborne and planetary. Contents: Top · 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z A … Wikipedia
Utah State University — Infobox University name = Utah State University motto = Research, Service, Teaching established = 1888 type = Public Land grant Space grant endowment = US $110.3 million president = Stan L. Albrecht city = Logan state = UT country = USA undergrad … Wikipedia
Red Planet (film) — For the unrelated novel by Robert A. Heinlein see Red Planet (novel). Infobox Film name = Red Planet caption = Theatrical Poster director = Antony Hoffman producer = Bruce Berman Mark Canton writer = Chuck Pfarrer Jonathan Lemkin starring = Val… … Wikipedia
United Airlines — For other uses, see United Airlines (disambiguation). This article is about the airline. For information about the airline s parent company, see United Continental Holdings. United Airlines … Wikipedia
List of Dewey Decimal classes — The Dewey Decimal Classification is a system of library classification made up of ten classes, each divided into ten divisions, each having ten sections (although there are only 99 of 100 divisions and 908 of 999 sections in total, as some are no … Wikipedia