How to plot sinusoidal waves of color frequencies?

1.8k Views Asked by At

I'm looking for a function that I can use to plot a sinusoidal wave for various color frequencies. For example, the frequency of red light is 4.6 THz (4.6*10^14 Hz). The frequency of blue light is 6.3 THz (6.3*10^14 Hz). I'm not sure how I can translate these frequencies into sine functions, however, despite a fair amount of searching online. I'd appreciate any guidance toward the right direction. Here's an example:

enter image description here

1

There are 1 best solutions below

0
On BEST ANSWER

Converting colormegone's comment into an answer so it can be accepted:


If you want to make sine functions with wavelengths in units of microns (your picture uses cosine functions), and you're not fussy about things like phase, you can use $$y=\sin\left(2\pi\left[\frac{f}{3.00}\right]x\right),$$ with frequency $f$ in units of $10^{14}$ Hz. For $f=4.6$ (your red), you should get a cycle of 0.652 units on your graph, which will be microns. For $f=6.3$ (your blue), you should get 0.476 units. I'm using an amplitude of 1 for the sine function; you can multiply the function by some number to vary the "height" of the graphs.