Jump to content



Photo
- - - - -

Ackermann function


  • Please log in to reply
2 replies to this topic

#1 mubarak

mubarak

    Newbie

  • Members
  • Pip
  • 2 posts

  • Calculators:
    fx-CG10

Posted 11 September 2020 - 08:27 AM

Hi everyone, and i am so happy to share knowledge with everyone here on casio furum,
My question is about how can i program the ackermann function on fx-CG10. thank you so much
  • mubarak likes this

#2 piu58

piu58

    Casio Freak

  • Members
  • PipPipPipPip
  • 125 posts
  • Gender:Male

  • Calculators:
    Casio fx-9860G, Casio fx-CG20

Posted 13 November 2020 - 06:31 PM

'ProgramMode:RUN
"OPERATOR"?->F
"OPERAND"?->N
F+1->Dim List 1
F+1->Dim List 2
For 1->I To F+1
 0->List 1[I]
 1->List 2[I]
Next
-1->List 2[F+1]
Do
 List 1[1]+1->V
 1->T
 1->I
 While T=1
  If List 1[I]=List 2[I]
   Then V->List 2[I]
  Else 
   0->T
  IfEnd
  List 1[I]+1->List 1[I]
  I+1->I
 WhileEnd
LpWhile List 1[F+1]<>N+1
V


  • pan.gejt and mubarak like this

#3 mubarak

mubarak

    Newbie

  • Members
  • Pip
  • 2 posts

  • Calculators:
    fx-CG10

Posted 13 November 2020 - 06:46 PM

piu58 thank you so much for your effort. And i hope to ask you another questions soon, thank you
  • mubarak likes this




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users