Complex results acceptance 32sII/33s/35s



#11

Hello all.

Is there a flag or mode I can set so that I calculate in the real number fashion so that complex results of any calculation don't result in real results errors? Yes, although I could preface my entries by prefacing the functions with [CMPLX], how can I just enter the functions without having to prefix them with [CMPLX] ?

Edited: 22 Mar 2012, 10:41 p.m. after one or more responses were posted


#12

No.

#13

So, I guess on the 32S-II and 33s, the only way is to prefix the functions with [CMPLX]?

Does the 35s operate that same way or, if a result is complex, it will get displayed?

Edited: 22 Mar 2012, 10:44 p.m.


#14

Quote:
So, I guess on the 32S-II and 33s, the only way is to prefix the functions with [CMPLX]?

Yes

Quote:
Does the 35s operate that same way or, if a result is complex, it will get displayed?

No, but it requires a complex argument to "know" a complex result is required. (e.g. LN(-2) gives an error, but LN(-2i0) gives a complex result)

#15

Well, chalk one up for the 42S and its automatic display of complex results!

Edited: 23 Mar 2012, 2:18 p.m.


#16

1. 32sii was a replacement for the 11c. The 11c never had complex anything. 32sii added some rudementary handling.

2. 33s and 35s turn out to be toys essentially.

3. The 42s was the only compact scientific ever made by HP with a native comprehensive complex argument and function support.

4. The 48 series and its successors (49G and 50G) of course have comprehensive support.


#17

Quote:
2. 33s and 35s turn out to be toys essentially.

X=D

#18

Quote:
1. 32sii was a replacement for the 11c. The 11c never had complex anything. 32sii added some rudementary handling.

2. 33s and 35s turn out to be toys essentially.

3. The 42s was the only compact scientific ever made by HP with a native comprehensive complex argument and function support.

4. The 48 series and its successors (49G and 50G) of course have comprehensive support.


Although I think the 33s & 35s are quite powerful calculators, and I'll admit, the chevron keyboard of the 33 takes away from the professional HP look, why do they get your label of 'toys'?

#19

Unacceptable bugs. Results cannot be trusted.

#20

Quote:
Does the 35s operate that same way or, if a result is complex, it will get displayed?

The 35s does not require switching to a special complex mode, nor does it need a CPLX prefix. IMHO it works in a very elegant way.

First of all, the 35s has a "real" (;-)) complex data type. It actually can use data consisting two or even three components with just one single register. So one single stack or data register can hold values like these:

 real:       3,14159
complex: 0,69315 + 3,14159 i
complex: r=3,21715 angle=77,55785
vector 2D: [1,73205; 1,41421]
vector 3D: [3,25; 4,25; 90]
So you always see directly whether a result is real, complex or something else. No need to check if there possibly is an imaginary part that's not in the display. What you see is what you get. Also you can work with all these number types essentially the same way you do with simple reals - the stack behaves just the same way.

There also are no unexpected error messages or, even worse, unexpected results because the user did not realize that the result is complex (while real mode was assumed). The 35s here follows a quite straightforward paradigm: if the operand is complex resp. real, so is the result. This is how it works:

  2     [LN]      0,69315
-2 [LN] LOG(NEG)
-2 [SQRT] SQRT(NEG)
 
-2i0 [LN] 0,69315i3,14159
-2 [ENTER]
0,5i0 [y^x] 0,00000i1,41421
 
0i1 [ENTER]
2 [y^x] -1,00000i0,00000
In other words: enter a real number and get a real result. Or an error message if there isn't one. Enter a complex number to tell the 35s that a complex result is allowed, and get one. If the imaginary part is zero (i.e. the result of a complex operation is real) this is directly visible in the display.

There are only two things to remember: first, not all operations are available in the complex domain. SQRT and x^2 for instance are not, so you use y^x instead (cf. examples above). Inverse trig is not defined either. Second, there is no direct way to split a complex number into its real and imaginary parts.

Dieter


Possibly Related Threads…
Thread Author Replies Views Last Post
  HP Prime: complex numbers in CAS. Alberto Candel 1 1,949 12-06-2013, 02:36 PM
Last Post: parisse
  [HP Prime] Plots containing complex numbers bug? Chris Pem10 7 3,716 12-05-2013, 07:40 AM
Last Post: cyrille de Brébisson
  Complex Number Entry on Prime Jeff O. 19 5,326 11-16-2013, 12:34 PM
Last Post: Jeff O.
  hp prime - sending program results to the stack giancarlo 6 2,182 10-15-2013, 02:00 AM
Last Post: Giancarlo
  HP Prime complex results Javier Goizueta 0 1,018 10-06-2013, 12:59 PM
Last Post: Javier Goizueta
  HP Prime Solving Nonlinear System of Equations for Complex Results Helge Gabert 11 4,393 09-30-2013, 03:44 AM
Last Post: From Hong Kong
  33s, 35s & 42s--The Timex(R) Factor Matt Agajanian 7 2,339 09-13-2013, 12:28 AM
Last Post: Matt Agajanian
  [HP-Prime xcas] operations with complex numbers + BUGs + Request CompSystems 9 3,566 09-08-2013, 10:40 PM
Last Post: CompSystems
  Elliptic integrals of 1st and 2nd kind calculated by complex agm Gjermund Skailand 3 1,541 06-29-2013, 03:39 PM
Last Post: Gjermund Skailand
  HP-11C and complex numbers Antlab 5 2,260 06-28-2013, 08:59 AM
Last Post: Antlab

Forum Jump: