Skip to content

Modern Math CConj

Paul Squires edited this page Oct 19, 2026 · 5 revisions

Home › Math Library › Math Library › CConj

CConj

Returns the conjugate, the same number with its imaginary part negated.

Syntax

CConj( byref z as Complex ) as Complex

Notes

  • z * CConj( z ) is real and equals CNorm( z ). That is the identity the conjugate is for, and it is how a complex division is derived.
  • CConj( CConj( z ) ) is z, exactly — the operation is its own inverse and involves no arithmetic.
  • AfxNova spelled this CConj and CConjugate. Conjugate in vector.tiko now applies only to quaternions.

Examples

#import "std/numeric"
using numeric

dim as Complex z = CSet( 3, 4 )

print CToString( CConj( z ) )           '' 3-4i
print CToString( z * CConj( z ) )       '' 25+0i   -- real, and equal to CNorm( z )
print CToString( CConj( CConj( z ) ) )  '' 3+4i   -- its own inverse

Library: Math Library
Category: Math Library
Documented under: Members

Clone this wiki locally