Post Reply 
INPUT() and complex numbers?
01-14-2015, 11:05 PM
Post: #7
RE: INPUT() and complex numbers?
Thank you! Predefining the complex variable completely within the local declaration did the trick, and worked for me, as well:

Code:

EXPORT test()
BEGIN
local zl:=50+25*i,            
       zo:=50+0*i;

input(zl,zo);
g:=eval((zl-zo)/(zl+zo));
return g; 

END;

This produces the 0.06+0.24*i result I was after, and I can now continue with the rest of my program. You have been very helpful, and I sure hope I can return the favor soon!

-Dale-
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
INPUT() and complex numbers? - DrD - 01-14-2015, 01:47 PM
RE: INPUT() and complex numbers? - DrD - 01-14-2015, 04:44 PM
RE: INPUT() and complex numbers? - Snorre - 01-14-2015, 08:21 PM
RE: INPUT() and complex numbers? - DrD - 01-14-2015, 09:49 PM
RE: INPUT() and complex numbers? - Snorre - 01-14-2015, 10:27 PM
RE: INPUT() and complex numbers? - DrD - 01-14-2015 11:05 PM



User(s) browsing this thread: 1 Guest(s)