(42S) Big Factorial
|
12-17-2024, 10:43 PM
(This post was last modified: 12-17-2024 11:07 PM by Thomas Klemm.)
Post: #6
|
|||
|
|||
RE: (42S) Big Factorial
I would have liked to use Werner's excellent program with:
Code: 07 1ᴇ1 Therefore I use: Code: 07 1ᴇ2 But now we have to split 2-digit numbers and align them with: Code: 00 { 72-Byte Prgm } The variable "." now contains all the digits in a \(n \times 1\) matrix. The value 48 was added because that is the value for 0 when using XTOA. Once we have that, we extract groups of digits for each row and combine them with a shrinking list of spaces in the variable " ". The input for this program is the number of lines to be printed: Code: 00 { 66-Byte Prgm } Example 105 XEQ "BIG!" [ 85×1 Matrix ] XEQ "ALIGN" 12 XEQ "TREE" The result is similar to the picture already posted. However, the trunk built with zeros is missing. I'm leaving that as an exercise. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(42S) Big Factorial - Thomas Klemm - 12-15-2024, 11:39 PM
RE: (42S) Big Factorial - Werner - 12-16-2024, 03:40 PM
RE: (42S) Big Factorial - Thomas Klemm - 12-16-2024, 05:38 PM
RE: (42S) Big Factorial - Nihotte(lma) - 12-19-2024, 07:38 PM
RE: (42S) Big Factorial - Thomas Klemm - 12-16-2024, 08:52 PM
RE: (42S) Big Factorial - Thomas Klemm - 12-16-2024, 10:54 PM
RE: (42S) Big Factorial - Thomas Klemm - 12-17-2024 10:43 PM
(42S) Tree Factorial - Thomas Klemm - 12-17-2024, 11:03 PM
RE: (42S) Big Factorial - Thomas Klemm - 12-19-2024, 06:56 AM
|
User(s) browsing this thread: 4 Guest(s)