Page 1 sur 1

I can not enter complex value using the INPUT command

Message non luPosté: 21 Avr 2017, 04:15
de 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

Message non luPosté: 17 Juin 2017, 07:34
de 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.