Post Reply 
Prime Factors in the ALPHA REG.
12-09-2015, 01:05 PM (This post was last modified: 12-09-2015 01:33 PM by Dieter.)
Post: #5
RE: Prime Factors in the ALPHA REG.
(12-08-2015 09:23 PM)Dieter Wrote:  Anyway, the 34s alpha display is of not much use here as the number of displayed characters is very limited. Unlike the HP41, the display does not scroll.

Output on a single line may be shortened by using the ² and ³ characters. Which can be done in a dedicated output routine. But even this way results with more than 10 or 11 characters can not be displayed – everything beyond that simply is not shown. This may be solved by removing the first characters until the output line does not exceed this limit:

Code:
αLENG
#010
-
x>0?
αSL→X

A more sophisticated version may remove the first characters until it comes across a "×":

Code:
  2^5×5^3×7
→ …5^3×7×41

These problems with single-line output are the reason why I prefer the following method:

Code:
492000 XEQ"PRF"
                2^5
       [R/S]    ×3
       [R/S]    ×5^3
       [R/S]    ×41

Simple and straightforward. ;-)

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Prime Factors in the ALPHA REG. - Dieter - 12-09-2015 01:05 PM
RE: Prime Factors in the ALPHA REG. - fhub - 12-09-2015, 02:33 PM
RE: Prime Factors in the ALPHA REG. - fhub - 12-09-2015, 06:32 PM
RE: Prime Factors in the ALPHA REG. - fhub - 12-10-2015, 05:43 PM
RE: Prime Factors in the ALPHA REG. - fhub - 12-10-2015, 06:25 PM



User(s) browsing this thread: 1 Guest(s)