Wikis
Search
The Full Wiki
Search:
More info on Algorithms in Sam76
Wikis
Deleted from Wikipedia
Related topics
Algorithms in Sam76: Wikis
Note: Many of our articles have
direct quotes from sources you can cite, within the Wikipedia article
! This article doesn't yet, but we're working on it! See
more info
or our
list of citable articles
.
Illustrated in this article are a number of
Algorithms
wtritten in the
Sam76
language.
This was done at the urging of [[James Gimpel
who authored
Algorithms in SNOBOL4
.
Jim Gimpel and I had friendly debates as to the merits of the Sam76 language versus SNOBOL and this article is the result.
Let the reader compare the algorithms described here with their favorite language and contribut to this page algorithms which are as much as possible functionally identical, pointing out the advantages of their contributions.
To be judged as identical contributions must performe the same function as the Sam76 language model AND cannot contain MORE characters or symbols than the ones in this article.
Minimal typing effort is the criteria, not speed of execution...that depends too much on the computer used and its operating system and executable software.
Human effort is worth more thatn machine effort.
If the algorithms illustrated are too complicated to understand guidance may be found in the
Sam76
page.
The algorithm that determines the value of PI was written by a young teen age boy, and all he used are the add, subtract, multiply arithmetic functions and a test to determine which of two intermediate results was thegreater.
The larger the seed number the more precise the results.
<pre>
<nowiki>
_________________________________________
|| ||
|| Algorithms in the SAM76 language ||
|| ||
|| Ancelme Roichel -- Karl Nicholas ||
|| ||
_________________________________________
_________________________________________
|| ||
|| Introduction ||
|| ||
_________________________________________
In the algorithms described and illustrated
in this section, use is made of the
procedure named "print" to display the
script of the functions, expressions, and
other text strings.
It may also be interesting to note that all
of the examples which are bounded by wiggly
lines at top and bottom, and circles at the
left (simulating a fragment of form feed
paper) are executed and solved dynamically
by the text formatter - thus ensuring that
the result shown betwen curly braces truly
the result of executing the expression
which precedes them.
The "print" function is useful in that it
augments the capability of the "vt - view
text" function by prefixing each individual
"text" displayed with its name bounded by
angle brackets; assuming that texts have
been created as shown:
Got something to say? Make a comment.
Your name
Your email address
Message
Please enter the solution to case below
45-15=