Post Reply 
(EL-5030) Prime Factors
04-23-2022, 08:31 AM
Post: #10
RE: (EL-5030) Prime Factors
(04-23-2022 04:27 AM)C.Ret Wrote:  Can the sequence INT (A[I])=>I be replaced by a simpler A[I]=>I ?
Did the EL-5030 accept the reduced syntax INT A[I] or FRAC A[I] instead of INT (A[I]) or FRAC (A[I]) like the PC-1211 does?

Yes to both. So the updated code below works fine on the EL-5030:
Code:
M:f(X)= #1└►F+10*FRAC A[I]=>F˽A[I]=>I└►X/F=>Q˽F>Q =Y=>[DIM A[1]˽-X◣]Q≠INT Q=N=>[F,Q=>X◄┐]◄┐
#1:DIM A[12]˽2.2=>A[1]˽3.1=>A[2]˽4.2=>A[3]˽5.2=>A[4]˽6.4=>A[5]˽7.2=>A[6]˽8.4=>A[7]˽9.2=>A[8]˽10.4=>A[9]˽11.6=>A[10]˽12.2=>A[11]˽5.6=>A[12]˽1=>I˽0=>F
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(EL-5030) Prime Factors - Dave Britten - 04-21-2022, 03:01 PM
RE: (EL-5030) Prime Factors - Jlouis - 04-22-2022, 02:02 AM
RE: (EL-5030) Prime Factors - Dave Britten - 04-22-2022, 04:27 PM
RE: (EL-5030) Prime Factors - C.Ret - 04-23-2022, 04:27 AM
RE: (EL-5030) Prime Factors - Didier Lachieze - 04-23-2022 08:31 AM
RE: (EL-5030) Prime Factors - C.Ret - 04-22-2022, 06:48 PM
RE: (EL-5030) Prime Factors - Dave Britten - 04-22-2022, 07:02 PM
RE: (EL-5030) Prime Factors - C.Ret - 04-22-2022, 08:07 PM
RE: (EL-5030) Prime Factors - C.Ret - 04-23-2022, 05:07 PM



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