This is probably the most common shape when drawing a wave. This is called a sine curve and is a graphical representation of the sine function. Since the input values are moved over time $t$, the equation looks like this:

波を描くときに一番普通なのはこんな形でしょう。これはサインカーブと呼ばれていてサイン関数をグラフにしたものです。 入力の値を時間$t$と共に動かしているので式の形はこうなります。

$y = a\cdot sin (bt - cx)$

const y = a * sin(b * t - c * x);

Waves that oscillate perpendicular to the direction of advance are called transverse waves.


Waves that travel in the direction of their oscillations are called Longitudinal waves.


You may have heard that earthquakes can be divided into longitudinal and transverse waves. For seismic waves, longitudinal waves are also called P(primary) waves and transverse waves are called S(secondary) waves. Longitudinal waves can travel through any material, including liquids and gases, by means of compression, while transverse waves can only travel through solids because the material must be connected in order for the force in the bending or shear direction to be transmitted. Sound is an example of longitudinal wave.