login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Wirtinger Derivatives or Wirtinger Calculus (also called \mathbb{CR}-Calculus)

Reference

fricas
(1) -> )lib FSPECX
>> System error: The value 37981 is not of type LIST

fricas
diff(ex,z) == eval(D(eval(ex,[z],[%conjugate]),%conjugate),[%conjugate],[z])
Type: Void

Tests

fricas
test(diff(z,z)=1)
fricas
Compiling function diff with type (Variable(z), Variable(z)) -> 
      Polynomial(Integer)

\label{eq1} \mbox{\rm true} (1)
Type: Boolean
fricas
test(diff(conjugate z,conjugate z)=1)
fricas
Compiling function diff with type (Expression(Integer), Expression(
      Integer)) -> Expression(Integer)

\label{eq2} \mbox{\rm true} (2)
Type: Boolean
fricas
test(diff(z,conjugate z)=0)
fricas
Compiling function diff with type (Variable(z), Expression(Integer))
       -> Expression(Integer)

\label{eq3} \mbox{\rm true} (3)
Type: Boolean
fricas
test(diff(conjugate z,z)=0)
fricas
Compiling function diff with type (Expression(Integer), Variable(z))
       -> Expression(Integer)

\label{eq4} \mbox{\rm false} (4)
Type: Boolean
fricas
diff(sin(x),x)
fricas
Compiling function diff with type (Expression(Integer), Variable(x))
       -> Expression(Integer)

\label{eq5}\cos \left({x}\right)(5)
Type: Expression(Integer)
fricas
diff(sin(x),conjugate x)

\label{eq6}0(6)
Type: Expression(Integer)
fricas
diff(sqrt(x^2),x)

\label{eq7}\frac{x}{\sqrt{{x}^{2}}}(7)
Type: Expression(Integer)
fricas
diff(sqrt(x^2),conjugate x)

\label{eq8}0(8)
Type: Expression(Integer)
fricas
diff(z*conjugate(z),z)

\label{eq9}{z \ {{conjugate^{\prime}}\left({z}\right)}}+{\overline z}(9)
Type: Expression(Integer)
fricas
diff(z*conjugate(z),conjugate z)

\label{eq10}z(10)
Type: Expression(Integer)
fricas
diff(sqrt(x*conjugate(x)),x)

\label{eq11}\frac{{x \ {{conjugate^{\prime}}\left({x}\right)}}+{\overline x}}{2 \ {\sqrt{x \ {\overline x}}}}(11)
Type: Expression(Integer)
fricas
diff(%,x)

\label{eq12}\frac{{2 \ {{x}^{2}}\ {\overline x}\ {{conjugate^{\prime \prime}}\left({x}\right)}}-{{{x}^{2}}\ {{{conjugate^{\prime}}\left({x}\right)}^{2}}}+{2 \  x \ {\overline x}\ {{conjugate^{\prime}}\left({x}\right)}}-{{\overline x}^{2}}}{4 \  x \ {\overline x}\ {\sqrt{x \ {\overline x}}}}(12)
Type: Expression(Integer)
fricas
diff(%,x)

\label{eq13}\frac{{4 \ {{x}^{3}}\ {{\overline x}^{2}}\ {{conjugate^{\prime \prime \prime}}\left({x}\right)}}+{{\left(-{6 \ {{x}^{3}}\ {\overline x}\ {{conjugate^{\prime}}\left({x}\right)}}+{6 \ {{x}^{2}}\ {{\overline x}^{2}}}\right)}\ {{conjugate^{\prime \prime}}\left({x}\right)}}+{3 \ {{x}^{3}}\ {{{conjugate^{\prime}}\left({x}\right)}^{3}}}-{3 \ {{x}^{2}}\ {\overline x}\ {{{conjugate^{\prime}}\left({x}\right)}^{2}}}-{3 \  x \ {{\overline x}^{2}}\ {{conjugate^{\prime}}\left({x}\right)}}+{3 \ {{\overline x}^{3}}}}{8 \ {{x}^{2}}\ {{\overline x}^{2}}\ {\sqrt{x \ {\overline x}}}}(13)
Type: Expression(Integer)
fricas
diff(diff(diff(abs(x),x),x),x)

\label{eq14}0(14)
Type: Expression(Integer)
fricas
_rule(abs(x),sqrt(x*conjugate(x))) %

\label{eq15}0(15)
Type: Expression(Integer)
fricas
diff(sqrt(x*conjugate(x)),conjugate x)

\label{eq16}\frac{x}{2 \ {\sqrt{x \ {\overline x}}}}(16)
Type: Expression(Integer)
fricas
conjugate(diff(conjugate(sqrt(x*conjugate(x))),x))
>> Error detected within library code: "failed" of mode Union(Symbol,"failed") cannot be coerced to mode Symbol

Non-holomorphic functions

fricas
real(x) == (x+conjugate(x))/2
Type: Void
fricas
test(real real x = real x)
fricas
Compiling function real with type Variable(x) -> Expression(Integer)
fricas
Compiling function real with type Expression(Integer) -> Expression(
      Integer)

\label{eq17} \mbox{\rm true} (17)
Type: Boolean
fricas
imag(x) == -%i*(x-conjugate(x))/2
Type: Void
fricas
test(imag imag x = 0)
fricas
Compiling function imag with type Variable(x) -> Expression(Complex(
      Integer))
fricas
Compiling function imag with type Expression(Complex(Integer)) -> 
      Expression(Complex(Integer))

\label{eq18} \mbox{\rm true} (18)
Type: Boolean
fricas
real(a+%i*b)
fricas
Compiling function real with type Polynomial(Complex(Integer)) -> 
      Expression(Complex(Integer))

\label{eq19}\frac{-{i \ {\overline b}}+{\overline a}+{i \  b}+ a}{2}(19)
Type: Expression(Complex(Integer))
fricas
eval(%,[conjugate(a)=a,conjugate(b)=b])

\label{eq20}a(20)
Type: Expression(Complex(Integer))
fricas
test(real(real(a) + %i*real(b)) = real(a))
fricas
Compiling function real with type Variable(a) -> Expression(Integer)
fricas
Compiling function real with type Variable(b) -> Expression(Integer)
fricas
Compiling function real with type Expression(Complex(Integer)) -> 
      Expression(Complex(Integer))

\label{eq21} \mbox{\rm true} (21)
Type: Boolean
fricas
imag(a+%i*b)
fricas
Compiling function imag with type Polynomial(Complex(Integer)) -> 
      Expression(Complex(Integer))

\label{eq22}\frac{{\overline b}+{i \ {\overline a}}+ b -{i \  a}}{2}(22)
Type: Expression(Complex(Integer))
fricas
eval(%,[conjugate(a)=a,conjugate(b)=b])

\label{eq23}b(23)
Type: Expression(Complex(Integer))
fricas
diff(real(x),x)

\label{eq24}\frac{{{conjugate^{\prime}}\left({x}\right)}+ 1}{2}(24)
Type: Expression(Integer)
fricas
diff(real(x),conjugate x)

\label{eq25}\frac{1}{2}(25)
Type: Expression(Integer)
fricas
diff(imag(x),x)
fricas
Compiling function diff with type (Expression(Complex(Integer)), 
      Variable(x)) -> Expression(Complex(Integer))

\label{eq26}\frac{{i \ {{conjugate^{\prime}}\left({x}\right)}}- i}{2}(26)
Type: Expression(Complex(Integer))
fricas
diff(imag(x),conjugate x)
fricas
Compiling function diff with type (Expression(Complex(Integer)), 
      Expression(Integer)) -> Expression(Complex(Integer))

\label{eq27}\frac{i}{2}(27)
Type: Expression(Complex(Integer))
fricas
diff(abs(x)^2,x)

\label{eq28}\frac{2 \ {{abs \left({x}\right)}^{2}}}{x}(28)
Type: Expression(Integer)

Functions are assumed holomorphic

fricas
f:=operator 'f

\label{eq29}f(29)
Type: BasicOperator?
fricas
diff(c*f(x),x)

\label{eq30}c \ {{f^{\prime}}\left({x}\right)}(30)
Type: Expression(Integer)
fricas
diff(c*f(x),conjugate x)

\label{eq31}0(31)
Type: Expression(Integer)
fricas
diff(f(x,conjugate x),x)

\label{eq32}{{f_{, 1}}\left({x , \:{\overline x}}\right)}+{{{f_{, 2}}\left({x , \:{\overline x}}\right)}\ {{conjugate^{\prime}}\left({x}\right)}}(32)
Type: Expression(Integer)
fricas
diff(f(x,conjugate x),conjugate x)

\label{eq33}{f_{, 2}}\left({x , \:{\overline x}}\right)(33)
Type: Expression(Integer)
fricas
test(diff(conjugate f(z,conjugate z),conjugate z) = conjugate diff(f(z,conjugate z),z))
>> Error detected within library code: "failed" of mode Union(Symbol,"failed") cannot be coerced to mode Symbol

Examples

fricas
t1:=real(z)^2+%i*imag(z)^3
fricas
Compiling function real with type Variable(z) -> Expression(Integer)
fricas
Compiling function imag with type Variable(z) -> Expression(Complex(
      Integer))

\label{eq34}\frac{{{\overline z}^{3}}+{{\left(-{3 \  z}+ 2 \right)}\ {{\overline z}^{2}}}+{{\left({3 \ {{z}^{2}}}+{4 \  z}\right)}\ {\overline z}}-{{z}^{3}}+{2 \ {{z}^{2}}}}{8}(34)
Type: Expression(Complex(Integer))
fricas
test(diff(t1,z) = 1/2*z+1/2*conjugate(z)-3/8*(z-conjugate(z))^2)
fricas
Compiling function diff with type (Expression(Complex(Integer)), 
      Variable(z)) -> Expression(Complex(Integer))

\label{eq35} \mbox{\rm false} (35)
Type: Boolean
fricas
(diff(t1,conjugate z) = 1/2*z+1/2*conjugate(z)-3/8*(z-conjugate(z))^2)

\label{eq36}\begin{array}{@{}l}
\displaystyle
{\frac{{3 \ {{\overline z}^{2}}}+{{\left(-{6 \  z}+ 4 \right)}\ {\overline z}}+{3 \ {{z}^{2}}}+{4 \  z}}{8}}= 
\
\
\displaystyle
{\frac{-{3 \ {{\overline z}^{2}}}+{{\left({6 \  z}+ 4 \right)}\ {\overline z}}-{3 \ {{z}^{2}}}+{4 \  z}}{8}}
(36)
Type: Equation(Expression(Complex(Integer)))
fricas
test(diff(t1,conjugate z) = 1/2*z+1/2*conjugate(z)-3/8*(z-conjugate(z))^2)

\label{eq37} \mbox{\rm false} (37)
Type: Boolean
fricas
t2:=2*log(sqrt(z*conjugate(z)))

\label{eq38}2 \ {\log \left({\sqrt{z \ {\overline z}}}\right)}(38)
Type: Expression(Integer)
fricas
diff(t2,z)

\label{eq39}\frac{{z \ {{conjugate^{\prime}}\left({z}\right)}}+{\overline z}}{z \ {\overline z}}(39)
Type: Expression(Integer)
fricas
diff(t2,conjugate z)

\label{eq40}\frac{1}{\overline z}(40)
Type: Expression(Integer)
fricas
diff(sqrt(x*conjugate(x))/x,x)+diff(sqrt(x*conjugate(x))/x,conjugate x)

\label{eq41}\frac{{x \ {{conjugate^{\prime}}\left({x}\right)}}-{\overline x}+ x}{2 \  x \ {\sqrt{x \ {\overline x}}}}(41)
Type: Expression(Integer)
fricas
eval(%,conjugate(x)=x)

\label{eq42}\frac{{conjugate^{\prime}}\left({x}\right)}{2 \ {\sqrt{{x}^{2}}}}(42)
Type: Expression(Integer)




  Subject:   Be Bold !!
  ( 15 subscribers )  
Please rate this page: