Detect number entry on HP-35s?
|
02-25-2015, 08:00 PM
(This post was last modified: 02-25-2015 08:40 PM by Dieter.)
Post: #12
|
|||
|
|||
RE: Detect number entry on HP-35s?
(02-25-2015 07:42 PM)Thomas Radtke Wrote:(02-25-2015 07:27 PM)Dieter Wrote: This sounded like a good idea to me – until I tried it. The 35s does not allow comparing complex numbers (or complex with reals, for that matter).If he just square it and compare the result against -1? The 35s supports a genuine complex data type. The result of an operation on a complex number always is complex again. So while i is 0 + 1i, i² equals –1 + 0i, which still is a complex number even if the imaginary part is zero. But there may be a workaround: Code: INPUT A This should work. The only significant limitation is the input range which is limited to values less than 10250. This could be avoided by testing if abs(cos(arg(x+0i0)))=1. ;-) Code: INPUT A Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 16 Guest(s)