Skip to content
Chung Leong edited this page Jan 10, 2022 · 4 revisions

cmult - Multiply two complex numbers

float[2] cmult( float[2] $a, float[2] $b )

cmult() multiply a by b and results the result.

Parameters:

a - The first number. It can be one two-element array or an array of two-element arrays. a[0] should contain the real part and a[1] should contain the imaginary part.

b - The second number. It can be one two-element array or an array of two-element arrays. b[0] should contain the real part and b[1] should contain the imaginary part.

Return Value:

The product of a and b. The size of the return value will match that of the larger of a and b.

Version

1.0 and above.

Clone this wiki locally