INPUT() and complex numbers?
|
01-14-2015, 04:44 PM
(This post was last modified: 01-14-2015 05:13 PM by DrD.)
Post: #2
|
|||
|
|||
RE: INPUT() and complex numbers?
I think I may have discovered a way to input a complex number:
1. Predefine a variable as a complex number: zl:=0+0i; 2. Execute the INPUT() function on it: INPUT(zl); // <== 50+25i, returns 1.00 3. Now EVAL the variable: EVAL(zl); ==> 50.00+25.00*i EVAL((zo-50)/(zo+50)) ==> 0.06+0.24*i Predefining zl:=0+0i worked when entered in the HOME command line, but results in a syntax error when zl:=0+0i; is entered in a ppl program. -Dale- |
|||
« Next Oldest | Next Newest »
|
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? - Helge Gabert - 01-14-2015, 10:33 PM
RE: INPUT() and complex numbers? - DrD - 01-14-2015, 11:05 PM
|
User(s) browsing this thread: 1 Guest(s)