The evolution of Mathematica
programming for back substitution.
The following 5 subroutines perform the exact same function.
First, the arrays use double brackets
. The
code for arrays is hard to read. The sum is accumulated in
the variable
.
Second, the arrays have slightly improved double brackets
.
The code for arrays is better. The sum is accumulated in
the variable
.
Third, the arrays have subscripted indices
. The
code for arrays is best. The sum is accumulated in the
variable
.
Fourth, the loop for computing the sum is improved and uses the
built in command
.
Fifth, the loop for computing the sum is improved and uses the
palette command
. This
is the state of the art for "mathematical object oriented
programming."
![[Graphics:../Images/BackSubstitutionMod_gr_44.gif]](../Images/BackSubstitutionMod_gr_44.gif)
We use the latter, we are in the era of fifth and sixth generation
programming.
Logic
programming as the integrator of the Fifth Generation Computer
Systems project
Koichi Furukawa
Communications of the ACM, Volume 35 , Issue 3
(1992).
Logical
foundations for knowledge representation in intelligent
systems
B. R. Gaines
Proceedings of the ACM SIGART international symposium on
Methodologies for intelligent systems
October 22 - 24, 1986, Knoxville, TN USA, Pages
366-380.
(c) John H. Mathews 2003