HP 35s polar/rectangular conversion



#2

When you do rectangular/polar conversion you enter it as a complex number and change the display format according to what you want to see. Is there a way to separate the angle from the vector, or the "x" coordinate from the "y" coordinate? Like retrieving the fraction part or integer part from a number.


#3

Buy a used 33s or 32SII. Problem solved.

#4

The 35s has no commands to split a complex number into its real and imaginary part. However, polar coordinates are easy:

Convert (3; 4) to polar coordinates

  3 i 4
[DISPLAY] .0 => 5,0000 (theta) 53,1301
or the other way (polar to rectangular)
  5 (theta) 53,1301
[DISPLAY] 9 => 3,0000 i 4,0000
Both display options represent the same number.

To obtain distance and angle (in either display mode):
  [ABS]          =>  5,0000   ' distance
LastX [ARG] => 53,1301 ' angle
Getting the rectangular coordinates 3 and 4 from this is a bit tricky, though. ;-)

Dieter


Edited: 28 Nov 2013, 12:50 p.m.


#5

I have a 32sII and it has always been one of my favorites. Have a 33s it works but never got attached to it. I am helping teach a "land surveyor in training" course at the annual state survey convention and we need to use calculators that are allowed on the Federal Land Surveyor in Training test. I do like the 35s and I like it even better now.

Thank you Dieter for your help. It's much appreciated.

Chad

#6

For rectangular coordinates, you can use the following programs:

Real:
LBL R ABS LASTx ARG COS x RTN

Imaginary:
LBL I ABS LASTx ARG SIN x RTN


#7

I think I can combine these into one program so you're left with the x and y coordinates on two levels of the stack just like the 32sII did when you did the conversion.

Thanks
Chad


#8

This kind of solution was discussed in detail as soon as the community realized that there are no traditional P<>R commands on the 35s. Some routines (that even preserve the stack) can be found in this discussion from 2007.

A summary of all efforts, with optimized solutions, can be found in the articles section on this website. Here, even the state of flag 10 is preserved.

Dieter


Possibly Related Threads...
Thread Author Replies Views Last Post
  Rectangular to Polar, Polar to Rectangular – One more time Jeff O. 0 135 11-06-2013, 11:32 AM
Last Post: Jeff O.
  [WP 34s] Pressure Conversion Factors Timothy Roche 8 429 11-04-2013, 07:17 PM
Last Post: Dave Shaffer (Arizona)
  More programs for polar-rectangular conversion on HP Prime Michael de Estrada 4 261 11-04-2013, 12:43 AM
Last Post: Michael de Estrada
  OT--Hyperbolic Polar<-->Rectangular Coordinates Matt Agajanian 2 150 09-30-2013, 08:53 PM
Last Post: Matt Agajanian
  HP Prime: Conversion factors Paul Townsend (UK) 19 703 08-27-2013, 09:19 AM
Last Post: Nigel J Dowrick
  [WP 34s] Polar & Rectangular Number Display Jeff O. 9 399 01-12-2013, 05:08 AM
Last Post: fhub
  WP34S conversion, yet another but with a difference Geoff Quickfall 23 804 06-22-2012, 02:54 PM
Last Post: Marcus von Cube, Germany
  [WP-34s] Conversion proposal Alexander Oestert 19 590 06-15-2012, 05:36 AM
Last Post: fhub
  [WP-34s] IR conversion of 20b Alexander Oestert 3 237 05-18-2012, 05:38 PM
Last Post: Harald
  FWIW - km to miles conversion factor on a four-banger calculator Gerson W. Barbosa 37 1,065 10-19-2011, 03:49 PM
Last Post: Martin Pinckney

Forum Jump: