.Spot.Base.Types.Complex

Information

Complex number (x + jy), considered as an element of an algebra, and represented by the real 2x2 matrix z:

  z = [x, -y]
      [y,  x]

The following relations hold for

- complex conjugate:   transpose(z)
- addition:            z1 + z2
- multiplication:      z1*z2
- inverse:             transpose(z)/det(z)
- absolute value:      sqrt(det(z))

where det(z) denotes the determinant of matrix z.

Example:

The linear differential equation with constant coefficients for a real scalar current I and voltage V

  L*dI/dt + R*I = V
is mapped by Fourier-transform to the algebraic equation
  (R + j*omega*L)*i = v
with complex i and v, if for simplicity only one frequency term is assumed. Using
  Complex Z =  R*re_unit + omega*L*im_unit (complex impedance)
  Complex i = i1*re_unit + i2*im_unit      ('current phasor')
  Complex v = v1*re_unit + v2*im_unit      ('voltage phasor')
the equation finally becomes
  Z*i = v

Definition

type Complex = Real[2, 2];

Generated at 2024-11-21T19:25:40Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos