Re: STORING CO-ORDINATES
[Prev][Next][Index][Thread]
Re: STORING CO-ORDINATES
Lornitzo wrote:
>
> I'm writing a program with lots of the same co-ordinate, but the x
> values and the y values are sometimes mixed up.. Can I store a
> co-ordinate value as a single variable to be called up later in the
> program?
>
> Sue
I'm not sure whether I have well understood your question, but try using
complex numbers, i.e. when storing a coordinate pair, you write:
x+i*y -> z
end when recalling the individual coordinates you write
real(z) -> x
imag(z) -> y
By i, I mean the imaginary unity, the yellow "i" above the I key on the
TI-92. Oh, you don't have a TI-92?
Regards,
Roman
References: