§10.11. Mathematics
It is uncommon, but not absolutely unheard-of, to need to do detailed mathematical calculations in interactive fiction.
The Fibonacci Sequence demonstrates the calculation of a series of numbers; Sieve of Eratosthenes shows off how to calculate the prime numbers within a certain range.
Number Study demonstrates conditional relations between numbers.
This is the same case given above, but expanded just slightly to demonstrate that the names of the relations can also be printed, if we like:
As this shows, we can even form lists of relations. The kind of L is "list of relations of numbers". |
|
This is the same case given above, but expanded just slightly to demonstrate that the names of the relations can also be printed, if we like:
As this shows, we can even form lists of relations. The kind of L is "list of relations of numbers". |
|
|