# What did “f” and “g” stand for on old HP calculators?

**URL:** <https://boards.straightdope.com/t/what-did-f-and-g-stand-for-on-old-hp-calculators/977452>\
**Category:** Factual Questions\
**Created:** [January 1, 2023, 6:44am UTC](https://boards.straightdope.com/t/what-did-f-and-g-stand-for-on-old-hp-calculators/977452 "2023-01-01T06:44:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nars\_Glinley](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/nars_glinley/32/8177_2.png) [@Nars\_Glinley](https://boards.straightdope.com/u/Nars_Glinley)\
**Post date:** [January 1, 2023, 6:44am UTC](https://boards.straightdope.com/t/what-did-f-and-g-stand-for-on-old-hp-calculators/977452/1 "2023-01-01T06:44:41Z")

</div>

On many old HP calculators, there were f and g buttons that would change the function of the key pressed. The f key was yellow and the g key was blue. What did f and g stand for?

---

<div class="post-metadata">

**Author:** ![JeffB](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/jeffb/32/188_2.png) [@JeffB](https://boards.straightdope.com/u/JeffB)\
**Post date:** [January 1, 2023, 6:48am UTC](https://boards.straightdope.com/t/what-did-f-and-g-stand-for-on-old-hp-calculators/977452/2 "2023-01-01T06:48:10Z")

</div>

They accessed secondary and tertiary options for other buttons, similar to the Fn key on a keyboard.

---

<div class="post-metadata">

**Author:** ![Nars\_Glinley](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/nars_glinley/32/8177_2.png) [@Nars\_Glinley](https://boards.straightdope.com/u/Nars_Glinley)\
**Post date:** [January 1, 2023, 6:49am UTC](https://boards.straightdope.com/t/what-did-f-and-g-stand-for-on-old-hp-calculators/977452/3 "2023-01-01T06:49:34Z")

</div>

I understand that. It just seems like f and g should stand for something. F could be function. G could be???

---

<div class="post-metadata">

**Author:** ![Francis\_Vaughan](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/francis_vaughan/32/3093_2.png) [@Francis\_Vaughan](https://boards.straightdope.com/u/Francis_Vaughan)\
**Post date:** [January 1, 2023, 6:58am UTC](https://boards.straightdope.com/t/what-did-f-and-g-stand-for-on-old-hp-calculators/977452/4 "2023-01-01T06:58:14Z")

</div>

The HP-45 only had an f key, and it was certainly “function”. My HP-25 had f and g keys. The HP-67 had f, g and h. (yellow, blue and black.)

---

<div class="post-metadata">

**Author:** ![Nars\_Glinley](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/nars_glinley/32/8177_2.png) [@Nars\_Glinley](https://boards.straightdope.com/u/Nars_Glinley)\
**Post date:** [January 1, 2023, 7:02am UTC](https://boards.straightdope.com/t/what-did-f-and-g-stand-for-on-old-hp-calculators/977452/5 "2023-01-01T07:02:45Z")

</div>

I suppose it could have just been the next letters available given that ABCDE had been assigned for programming. And then made lowercase to distinguish them from the programming keys. This would be logical given the h key on @Francis_Vaughan‘s 67.

---

<div class="post-metadata">

**Author:** ![Francis\_Vaughan](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/francis_vaughan/32/3093_2.png) [@Francis\_Vaughan](https://boards.straightdope.com/u/Francis_Vaughan)\
**Post date:** [January 1, 2023, 7:13am UTC](https://boards.straightdope.com/t/what-did-f-and-g-stand-for-on-old-hp-calculators/977452/6 "2023-01-01T07:13:01Z")

</div>

Until the HP-65 the handheld calculators were not programmable, So the ABCDE keys came after f, but along with g. Perhaps more interesting is that the HP-65 had a yellow f^{-1} key. Something that makes the intent pretty clear.

---

<div class="post-metadata">

**Author:** ![Nars\_Glinley](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/nars_glinley/32/8177_2.png) [@Nars\_Glinley](https://boards.straightdope.com/u/Nars_Glinley)\
**Post date:** [January 1, 2023, 2:15pm UTC](https://boards.straightdope.com/t/what-did-f-and-g-stand-for-on-old-hp-calculators/977452/7 "2023-01-01T14:15:43Z")

</div>

Going through the images on the wiki HP page and sorting by year:  
HP-35 No button for alternative functions  
HP-45 Unlabeled yellow button for alternative functions  
HP-80 Same as 45  
HP-65 f, f-1, and g. These labels coincided with ABCDE.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [January 1, 2023, 7:12pm UTC](https://boards.straightdope.com/t/what-did-f-and-g-stand-for-on-old-hp-calculators/977452/8 "2023-01-01T19:12:07Z")

</div>

In mathematics texts, the usual letter used for a function is f, which of course stands for “function”. And if it’s relevant to have more than one function, further ones are called g and h, simply because those are the next letters.

I suspect that it’s the same here. And yes, it might seem unsatisfying to have one letter stand for a word, but another analogous letter to just be a letter without standing for anything. But language is often illogical.

---

<div class="post-metadata">

**Author:** ![DavidNRockies](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/davidnrockies/32/6279_2.png) [@DavidNRockies](https://boards.straightdope.com/u/DavidNRockies)\
**Post date:** [January 1, 2023, 7:17pm UTC](https://boards.straightdope.com/t/what-did-f-and-g-stand-for-on-old-hp-calculators/977452/9 "2023-01-01T19:17:23Z")

</div>

In case you’re curious, a handful of other nerds had a similar conversation 10+ years ago 😉

[https://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/archv021.cgi?read=234293](https://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/archv021.cgi?read=234293)

---

<div class="post-metadata">

**Author:** ![Napier](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@Napier](https://boards.straightdope.com/u/Napier)\
**Post date:** [January 1, 2023, 7:35pm UTC](https://boards.straightdope.com/t/what-did-f-and-g-stand-for-on-old-hp-calculators/977452/10 "2023-01-01T19:35:13Z")

</div>

> [@Chronos](#):
>
> In mathematics texts, the usual letter used for a function is f, which of course stands for “function”. And if it’s relevant to have more than one function, further ones are called g and h, simply because those are the next letters.

Yes, this. And I believe in more than mathematics texts. For example if you are trying to describe a function of a function, you’d symbolize it f(g(x)).

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [January 1, 2023, 8:23pm UTC](https://boards.straightdope.com/t/what-did-f-and-g-stand-for-on-old-hp-calculators/977452/11 "2023-01-01T20:23:29Z")

</div>

Well, yes, but if you’re abstractly discussing composition of functions, you probably are writing a mathematics text.

(if you’re describing it in a concrete context, then the functions probably have some real-world meaning, and are represented by letters corresponding to that real-world meaning)

---

<div class="post-metadata">

**Author:** ![Andy\_L](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Andy\_L](https://boards.straightdope.com/u/Andy_L)\
**Post date:** [January 2, 2023, 12:19am UTC](https://boards.straightdope.com/t/what-did-f-and-g-stand-for-on-old-hp-calculators/977452/12 "2023-01-02T00:19:48Z")

</div>

Ask an electrical engineer what the symbol for the square root of minus one is…\*

\*(it’s j, of course. i stands for current)

---

<div class="post-metadata">

**Author:** ![Francis\_Vaughan](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/francis_vaughan/32/3093_2.png) [@Francis\_Vaughan](https://boards.straightdope.com/u/Francis_Vaughan)\
**Post date:** [January 2, 2023, 1:12am UTC](https://boards.straightdope.com/t/what-did-f-and-g-stand-for-on-old-hp-calculators/977452/13 "2023-01-02T01:12:36Z")

</div>

> [@Nars\_Glinley](#):
>
> HP-45 Unlabeled yellow button

I had totally forgotten it didn’t have an f on it. So yes, `ABCDE` plus `f` and `g` all came at the same time.  
These calculator came from the golden age of HP and their calculator products, one where serious thought was put into everything. There was almost certainly some care put into the exact form all these keys had, and avoiding confusion. Adding an `F` or `G` key to the programming keys would have been frowned upon, But they probably felt there was a lucky coincidence that use of the letters worked out so well.

However, just to mix things a little, the HP-21 had an unlabeled blue key for accessing additional functions. So the colour moved about a bit.

But before the handhelds were the desktop machines. The 9800 series. The 9815 seems to be the first use of the yellow key, and it also had had a _grey_ f^{-1} key. Since the machine supported the full alphabet, and shoe horned all the letters onto keys, they seem to have been very wary of having both an `f` and an `F`. Which does support the idea that even on the HP-65 they would have tried to avoid it.

---

<div class="post-metadata">

**Author:** ![CurtC](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@CurtC](https://boards.straightdope.com/u/CurtC)\
**Post date:** [January 2, 2023, 4:58am UTC](https://boards.straightdope.com/t/what-did-f-and-g-stand-for-on-old-hp-calculators/977452/14 "2023-01-02T04:58:44Z")

</div>

I agree with the others that the “g” was used just because it’s the next letter after “f.” And that was used because it stands for “function.”

My first HP calculator was the 41C, which just had a yellow function key without a letter. And my 41C, which I bought in 1981, still works.

---

<div class="post-metadata">

**Author:** ![nightshadea](https://avatars.discourse-cdn.com/v4/letter/n/7ba0ec/32.png) [@nightshadea](https://boards.straightdope.com/u/nightshadea)\
**Post date:** [January 2, 2023, 5:22am UTC](https://boards.straightdope.com/t/what-did-f-and-g-stand-for-on-old-hp-calculators/977452/15 "2023-01-02T05:22:16Z")

</div>

wow, im old enough grandpa had an old adding machine that looked like a small cash register and printed everything out like one and then dad had one of the first digital calculators that looked like a checkbook and the numbers looked like a speak and spell … and cost about 75.00 then by the late 80s you could get big solar calcs at k-mart for like 10 bucks (my fingers were too big for the ones the schools used for math class so mo bought me one …)

---

<div class="post-metadata">

**Author:** ![Riemann](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/riemann/32/3133_2.png) [@Riemann](https://boards.straightdope.com/u/Riemann)\
**Post date:** [January 2, 2023, 5:41am UTC](https://boards.straightdope.com/t/what-did-f-and-g-stand-for-on-old-hp-calculators/977452/16 "2023-01-02T05:41:18Z")

</div>

> [@Chronos](#):
>
> it might seem unsatisfying to have one letter stand for a word, but another analogous letter to just be a letter without standing for anything

It does, though. f stands for function, g stands for function…

---

<div class="post-metadata">

**Author:** ![DPRK](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DPRK](https://boards.straightdope.com/u/DPRK)\
**Post date:** [January 2, 2023, 6:01am UTC](https://boards.straightdope.com/t/what-did-f-and-g-stand-for-on-old-hp-calculators/977452/17 "2023-01-02T06:01:46Z")

</div>

> [@nightshadea](#):
>
> by the late 80s you could get big solar calcs at k-mart for like 10 bucks

Yet an HP-15C still cost $135.

---

<div class="post-metadata">

**Author:** ![nightshadea](https://avatars.discourse-cdn.com/v4/letter/n/7ba0ec/32.png) [@nightshadea](https://boards.straightdope.com/u/nightshadea)\
**Post date:** [January 2, 2023, 6:26am UTC](https://boards.straightdope.com/t/what-did-f-and-g-stand-for-on-old-hp-calculators/977452/18 "2023-01-02T06:26:18Z")

</div>

Well, I never needed one that was that technical lol I only needed one because my math teachers thought letting me do the math on a calculator might help me remember how to do it … that and I checked my own work because no one could read my writing let alone my numbers

---

<div class="post-metadata">

**Author:** ![DPRK](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DPRK](https://boards.straightdope.com/u/DPRK)\
**Post date:** [January 2, 2023, 6:26am UTC](https://boards.straightdope.com/t/what-did-f-and-g-stand-for-on-old-hp-calculators/977452/19 "2023-01-02T06:26:54Z")

</div>

Made me remember that while lots of computer keyboards did, and still do, have a bunch of modifier keys, the old Symbolics keyboard had spelled-out names for all of them: TOP, GREEK/FRONT, SHIFT, HYPER, SUPER, META, and CTRL. (OK, “CTRL” is abbreviated. Why?? I have at least one laptop keyboard where the “Fn” and “Alt” keys are small enough so that the abbreviations are understandable, but the nice and big control key also says “Ctrl”, and the shift key has nothing but an up-arrow on it—especially confusing since there are regular arrow keys— and if they are trying to evoke a vintage typewriter or something, well, a Remington 12 distinctly says “SHIFT KEY”)

---

<div class="post-metadata">

**Author:** ![nightshadea](https://avatars.discourse-cdn.com/v4/letter/n/7ba0ec/32.png) [@nightshadea](https://boards.straightdope.com/u/nightshadea)\
**Post date:** [January 2, 2023, 6:29am UTC](https://boards.straightdope.com/t/what-did-f-and-g-stand-for-on-old-hp-calculators/977452/20 "2023-01-02T06:29:26Z")

</div>

> [@DPRK](#):
>
> the shift key has nothing but an up-arrow on it—especially confusing since there are regular arrow keys— and if they are typing to evoke a vintage typewriter or something, well, a Remington 12 distinctly says “SHIFT KEY”)

on my onn (a Walmart house brand) keyboard it says “shift” with an up arrow next to it …i wondered why the arrow…

[Next page](https://boards.straightdope.com/t/what-did-f-and-g-stand-for-on-old-hp-calculators/977452.md?page=2)
