Jump to content



Photo
- - - - -

[Question] About nest in fx-5800P

fx-5800P nest

Best Answer sentaro21 , 18 June 2019 - 01:57 AM


// Program "MAIN"
"MAIN"
Prog "SUB1"
"END"


// Program "SUB1"
"SUB1"
Prog "SUB2"
 

// Program "SUB2"
"SUB2"
Executing "MAIN" results in the following.
MAIN  // running "MAIN", nest is 0
SUB1  // running "SUB1", nset is 1
SUB2  // running "SUB2" from "SUB1", nest is 2
END   // running "MAIN", nset is 0

The maximum nest is 10 in fx-5800P.
 

 

Go to the full post


  • Please log in to reply
2 replies to this topic

#1 CalcLoverHK

CalcLoverHK

    Casio Fan

  • Members
  • PipPip
  • 38 posts
  • Gender:Male
  • Location:Hong Kong
  • Interests:Playing video games (especially Minecraft), calculators, programming (BASIC), mathematics...

  • Calculators:
    fx-50FH II
    fx-9860G Emulator

Posted 17 June 2019 - 03:33 AM

Hi all,

I am confused about the nest. How does it work? How to count the number of nest I used? When I use the Prog command, does the main program also count the number of nest in subprogram as its nest used?

Thanks a lot!
CalcLoverHK

#2 sentaro21

sentaro21

    Casio Freak

  • Members
  • PipPipPipPip
  • 160 posts
  • Gender:Male
  • Location:JAPAN

  • Calculators:
    FX-603P fx-4800P fx-5800P
    CFX-9850GC PLUS
    fx-9860G
    fx-9860GII
    fx-9860GII-2
    fx-9860GII-2 SD
    fx-CG10
    fx-CG20
    fx-CG50
    HP-Prime
    HP 50G
    TI-Nspire CX CAS
    TI-84+CE

Posted 18 June 2019 - 01:57 AM   Best Answer


// Program "MAIN"
"MAIN"
Prog "SUB1"
"END"


// Program "SUB1"
"SUB1"
Prog "SUB2"
 

// Program "SUB2"
"SUB2"
Executing "MAIN" results in the following.
MAIN  // running "MAIN", nest is 0
SUB1  // running "SUB1", nset is 1
SUB2  // running "SUB2" from "SUB1", nest is 2
END   // running "MAIN", nset is 0

The maximum nest is 10 in fx-5800P.
 

 


  • CalcLoverHK likes this

#3 CalcLoverHK

CalcLoverHK

    Casio Fan

  • Members
  • PipPip
  • 38 posts
  • Gender:Male
  • Location:Hong Kong
  • Interests:Playing video games (especially Minecraft), calculators, programming (BASIC), mathematics...

  • Calculators:
    fx-50FH II
    fx-9860G Emulator

Posted 18 June 2019 - 02:01 AM

Thanks a lot!





Also tagged with one or more of these keywords: fx-5800P, nest

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users