If you define colour in terms of what the human eye sees, there are only three of them

I think you're misconstruing me! I am limiting colours to be 'things which humans can see' which doesn't correspond to 'the specific frequency ranges which stimulate only one cone type'. (And in fact the frequency ranges overlap so your definition becomes a bit more tricky than you make out)

I can see EM radiation with wavelength 570nm (yellow), so I would define it as a colour! I just happen to see it by stimulating more than one cone type at once.

so if you define colors as wavelengths of electromagnetic radiation then the cardinality of the set of all colours in the rainbow is aleph-sub-one

As tilly pointed out, you don't get mixtures of blue and red light in a rainbow, which we see as pink-purples (the line of purples on the CIE chromacity diagram.)

Update: In fact, you don't get any mixing in a rainbow (approximately, obv mist is not a perfect refractor and probably some other caveats like angle and distance), so it's like going around the edge of the chromacity diagram... so there's quite a few less than all possible colours/hues in a rainbow.. but still probably infinite (I'm not a mathematician either, so no fancy 'alehps' from me... :P). That's my current conjecture anyway!
........
Those are my principles. If you don't like them I have others.
-- Groucho Marx
.......

In reply to Re^2: I'm not a PhD but... by why_bird
in thread How many colors does a rainbow have? by ambrus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.