2 conj - complex conjugate
8 If x is an object of type xx, conj(x) calls xx_conj(x).
12 x real, complex, or matrix
14 return real, complex, or matrix
18 For real x, conj(x) returns x.
20 For complex x, conj(x) returns re(x) - im(x) * 1i.
22 For matrix x, conj(x) returns a matrix of the same structure as x
23 in which each element t of x has been replaced by conj(t).
25 For xx objects, xx_conj(a) may return any type of value, but
26 for the properties usually expected of conjugates, xx_conj(a)
27 would return an xx object in which each number component is the
28 conjugate of the corresponding component of a.
31 ; print conj(3), conj(3 + 4i)
38 void conjvalue(VALUE *x, *res)
43 ## Copyright (C) 1999 Landon Curt Noll
45 ## Calc is open software; you can redistribute it and/or modify it under
46 ## the terms of the version 2.1 of the GNU Lesser General Public License
47 ## as published by the Free Software Foundation.
49 ## Calc is distributed in the hope that it will be useful, but WITHOUT
50 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
51 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
52 ## Public License for more details.
54 ## A copy of version 2.1 of the GNU Lesser General Public License is
55 ## distributed with calc under the filename COPYING-LGPL. You should have
56 ## received a copy with calc; if not, write to Free Software Foundation, Inc.
57 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
59 ## @(#) $Revision: 30.1 $
60 ## @(#) $Id: conj,v 30.1 2007/03/16 11:10:42 chongo Exp $
61 ## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/conj,v $
63 ## Under source code control: 1995/10/03 10:40:01
64 ## File existed as early as: 1995
66 ## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
67 ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/