Post Reply 
INPUT() and complex numbers?
01-14-2015, 09:49 PM
Post: #4
RE: INPUT() and complex numbers?
Snorre, your suggested forms, as well as (0,0i) and (0,0*i), are syntax issues as well. Z0-Z9 are reserved for complex variables, but Z0:=50+25i; (and all the complex entry variants tried so far), also error out. Maybe it just isn't possible to assign complex numbers to variables in a program. That it works fine when entered in the HOME command line, would suggest it would also work programmatically in the same way.

Currently, I've isolated a code fragment of my program to just deal with complex number entry, but so far, no luck. My main program deals with impedance and related parameters, where complex numbers are the norm. Maybe the Re(zl) and IM(zl) components can only be handled in stand alone fashion, within programs.

Currently, my settings are HOME: Complex a+b*i, allow complex output from real input checked, CAS: Complex checked (Include complex results in variables), and Symbolic Setup: Complex (system). I have tried to accomplish zl:=50+25i; using each of the entry methods discussed, including your suggestions, and no go.

I have tried many other settings, as well. In fact, I don't think there is any combination left that I haven't tried, so complex number assignment to a variable in a program is, at this point, myth "busted." (EMU ver 6975).

-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)