Post Reply 
CASIO fx-4000P scientific calculator from 1986
08-29-2022, 10:10 AM
Post: #61
RE: CASIO fx-4000P scientific calculator from 1986
(08-29-2022 09:48 AM)johanw Wrote:  
(08-29-2022 09:40 AM)ijabbott Wrote:  Does it bug people that about half the available programming steps for this calculator (and others that use the same programming model) are wasted on entering colons? The older series terminating with the somewhat unobtainable FX-603P were far more efficient.

Do they actually take up storage space or are they just shown between instructions?

":" take 1 step, so for example "Lbl 1 :" will take 3 steps.
Find all posts by this user
Quote this message in a reply
08-29-2022, 12:45 PM
Post: #62
RE: CASIO fx-4000P scientific calculator from 1986
(08-29-2022 10:07 AM)Dan C Wrote:  I really wished fx-4000P had more program steps than 550!

I can't imagine that 12789431970371636606966620734791313516604437860464878229575155395257656153529144​50977014678102375583666698434252222366827648710493505741915719130331657264173084​44429166218840792596647445035300601064622294067099137958963824830517524214573769​25139375918554742142277084109072075415472744773895909513758702137196402197602987​57561095368941030036360334746926496641585346671441651710619269168630784423581901​74536896761479325956609709299678496628508192185117297856741126720602923998384901​65441610219748228446647425232921460703278692195195847697533241956313120785846547​16323509291748253235905189658621008907729474958250828504948466378795862502098053​01313231812046791603481887060364517299605180837068821884478893502371521463577378​69092593947690666727221650010603370946666527771527829457588458617616446849399986​51107611114947350298909418630482557881491053455025729220513157203147749470877267​54158895537051441865481052844319180857749279962766891601843105281735447176136948​83990736557970092001258571125051431679481241244220771782038166976978235511761290​07111992007375073710792395954618269942945391412644657181325391667881234839428550​49020693073100800000000000000000000000000000000000000000000000000000000000000000​00000000000000000000000000000000000000000000000000000000000000000000000 steps are not enough.
Find all posts by this user
Quote this message in a reply
08-29-2022, 02:05 PM
Post: #63
RE: CASIO fx-4000P scientific calculator from 1986
Hehe! You refer to 550! i assume? Smile
That would have been awesome if fx-4000p had so many program steps!
Find all posts by this user
Quote this message in a reply
08-29-2022, 02:34 PM
Post: #64
RE: CASIO fx-4000P scientific calculator from 1986
(08-29-2022 09:40 AM)ijabbott Wrote:  Does it bug people that about half the available programming steps for this calculator (and others that use the same programming model) are wasted on entering colons? The older series terminating with the somewhat unobtainable FX-603P were far more efficient.

That's one of the perils of an expression-based language with a parser, vs. a keystroke "language". Saying half the steps are spent on colons would be a great overestimate, though, unless nearly all of your program lines are only one or two bytes. You wouldn't have a very useful program that way! Smile

If you want to see wasteful memory usage, take a look at the Sharp EL-5120. There's 32 bytes of overhead for each program header, then 3 bytes per program line, and 8 bytes for each local variable defined for that program. The HP 32S is no saint either, with 1.5 bytes for each program step, and something like 9 bytes for most numeric constants within a program.
Visit this user's website Find all posts by this user
Quote this message in a reply
08-29-2022, 05:32 PM
Post: #65
RE: CASIO fx-4000P scientific calculator from 1986
(08-29-2022 02:34 PM)Dave Britten Wrote:  
(08-29-2022 09:40 AM)ijabbott Wrote:  Does it bug people that about half the available programming steps for this calculator (and others that use the same programming model) are wasted on entering colons? The older series terminating with the somewhat unobtainable FX-603P were far more efficient.

That's one of the perils of an expression-based language with a parser, vs. a keystroke "language". Saying half the steps are spent on colons would be a great overestimate, though, unless nearly all of your program lines are only one or two bytes. You wouldn't have a very useful program that way!

OK, it's probably more like 20% colons for a real program. The "?→A:" sequence to prompt for input and store in memory location 'A') also bugs me because it takes 4 steps, and ? must be followed by → (except in an alpha string). If they had an "Input" instruction, the sequence could be reduced to 3 steps - "Input A:".

On the plus side, implicit multiplication saves a few steps!

Quote:If you want to see wasteful memory usage, take a look at the Sharp EL-5120. There's 32 bytes of overhead for each program header, then 3 bytes per program line, and 8 bytes for each local variable defined for that program. The HP 32S is no saint either, with 1.5 bytes for each program step, and something like 9 bytes for most numeric constants within a program.

Whereas on the Casio, each character that makes up a numeric constant counts as a step, so the 32S wins for any positive number requiring more than 6 characters to specify.

— Ian Abbott
Find all posts by this user
Quote this message in a reply
08-30-2022, 01:39 AM
Post: #66
RE: CASIO fx-4000P scientific calculator from 1986
(08-29-2022 12:45 PM)Thomas Klemm Wrote:  
(08-29-2022 10:07 AM)Dan C Wrote:  I really wished fx-4000P had more program steps than 550!

I can't imagine that 12789431970371636606966620734791313516604437860464878229575155395257656153529144​50977014678102375583666698434252222366827648710493505741915719130331657264173084​44429166218840792596647445035300601064622294067099137958963824830517524214573769​25139375918554742142277084109072075415472744773895909513758702137196402197602987​57561095368941030036360334746926496641585346671441651710619269168630784423581901​74536896761479325956609709299678496628508192185117297856741126720602923998384901​65441610219748228446647425232921460703278692195195847697533241956313120785846547​16323509291748253235905189658621008907729474958250828504948466378795862502098053​01313231812046791603481887060364517299605180837068821884478893502371521463577378​69092593947690666727221650010603370946666527771527829457588458617616446849399986​51107611114947350298909418630482557881491053455025729220513157203147749470877267​54158895537051441865481052844319180857749279962766891601843105281735447176136948​83990736557970092001258571125051431679481241244220771782038166976978235511761290​07111992007375073710792395954618269942945391412644657181325391667881234839428550​49020693073100800000000000000000000000000000000000000000000000000000000000000000​00000000000000000000000000000000000000000000000000000000000000000000000 steps are not enough.

No, they aren't. They used to be but since I got this massive RAM, my programs have been getting bigger and bigger. My newest program requires 12789431970371636606966620734791313516604437860464878229575155395257656153529144​50977014678102375583666698434252222366827648710493505741915719130331657264173084​44429166218840792596647445035300601064622294067099137958963824830517524214573769​25139375918554742142277084109072075415472744773895909513758702137196402197602987​57561095368941030036360334746926496641585346671441651710619269168630784423581901​74536896761479325956609709299678496628508192185117297856741126720602923998384901​65441610219748228446647425232921460703278692195195847697533241956313120785846547​16323509291748253235905189658621008907729474958250828504948466378795862502098053​01313231812046791603481887060364517299605180837068821884478893502371521463577378​69092593947690666727221650010603370946666527771527829457588458617616446849399986​51107611114947350298909418630482557881491053455025729220513157203147749470877267​54158895537051441865481052844319180857749279962766891601843105281735447176136948​83990736557970092001258571125051431679481241244220771782038166976978235511761290​07111992007375073710792395954618269942945391412644657181325391667881234839428550​49020693073100800000000000000000000000000000000000000000000000000000000000000000​00000000000000000000000000000000000000000000000000000000000000000000001 steps.

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: