[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gm2] COMPLEX Syntax
From: |
Michael Riedl |
Subject: |
[Gm2] COMPLEX Syntax |
Date: |
Fri, 7 Aug 2015 16:51:22 +0200 |
Hallo all,
does someone know if there is a regualr way to update only the real or
imaginar part of a variable of type LONGCOMPLEX / COMPLEX.
A way to achiev that would be (code segment):
VAR x : COMPLEX;
BEGIN
x:= ... (and code giving x an initial value)
...
x:=CMPLX("somenewvale",IM(x)); (* for updating the real part only *)
x:=CMPLX(RE(x),"somenewvalue")); (* for updating the imaginary part
only *)
But maybe there is another way to do so which I simply do
not know. But in Fortran it's similar ;-)
Gruß / Regads
Michael
- [Gm2] COMPLEX Syntax,
Michael Riedl <=