Page 1 of 1

I can not enter complex value using the INPUT command

Unread postPosted: 21 Apr 2017, 04:15
by globrother
Good evening! I am a beginner and would like to know how to use the input layer and enter a complex value in HP prime.
When I run the program the box to put the values appears, but when I try to put complex values, both polar (preferable) and rectangular forms have invalid data. Could anyone help me about this?
Grateful!

Re: I can not enter complex value using the INPUT command

Unread postPosted: 17 Jun 2017, 07:34
by thed
INPUT({Z1,5});
5 is for complex numbers

or define Z1 as a complex first : for example : LOCAL Z1:=1+i;
and then INPUT(Z1) will consider the value as a complex number.