- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Dear Sir/Madam:
How are you?
I have a problem to ask you.
For example, I have a complex typevariable A
and a real type variable B, now I want to
make the value of B as the imaginary part of A.
I use the command like : AIMAG(A)=B ,but it's wrong;
and I try another way like: A=(0,B) ,it's also wrong.
So I don't know what to do.
Maybe this is a very simple question,
however, if you know ,please give some advice.
Thanks a lot!
Yours Sincerely:
Nanhui
- Balises:
- Intel® Fortran Compiler
Lien copié
3 Réponses
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
B=AIMAG(A)
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Thanks for your reply.
But you seems misunderstanding my meaning.
If use : B=AIMAG(A), then it means totransfer value
of the imaginary part of A to variable B, but now
my case is to transfer value of B to the imaginary part
of variable A. So it's the inverse case.
I f you know,please tell me. Thank you very much!!
Yours Sincerely:
Nanhui
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
A = CMPLX(REAL(A),B)

Répondre
Options du sujet
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable