Firmware 2021: Problem with exact polar form

04272021, 09:01 PM
(This post was last modified: 04282021 01:41 AM by compsystems.)
Post: #1




Firmware 2021: Problem with exact polar form
Hello
Flags: HOME view & RAD MODE (HAngle:=0) & (HComplex:=01). HAngle:=0; HComplex:=01; [ENTER] Example 1: ok input: approx polar form rectangular_coordinates( 4 ∡ 0.523598775598 ) [ENTER] [ 3.46410161514, 2 ] // OK. a+b*i > 3.46410161514 + 2*i input: exact polar form rectangular_coordinates( (4 ∡ (π/6)) ) [ENTER] [ 3.46410161514, 2 ] // OK input: exact list form rectangular_coordinates( [ 4, π/6 ] ) [ENTER] [ 3.46410161514, 2 ] // OK input: approx list form rectangular_coordinates( [ 4, 0.523598775598 ] ) [ENTER] [ 3.46410161514, 2 ] // OK polar_coordinates( [ 3.46410161514, 2 ] ) [ENTER] [ 4, 0.523598775598 ] // OK example 2: Problem input: exact polar form rectangular_coordinates( (√(2) ∡ (3*(π/4))) ) [ENTER] Error: Syntax Error Why? input: approx polar form rectangular_coordinates( 1.41421356237 ∡ 2.35619449019 ) [ENTER] [ −0.999999999995, 1 ] // OK a+b*i > −0.999999999995 + i input: exact list form rectangular_coordinates( [ √(2) , (3*(π/4)) ] ) [ENTER] [ −0.999999999995, 1 ] // OK input: approx list form rectangular_coordinates( [ 1.41421356237, 2.35619449019 ] ) [ENTER] [ −0.999999999995, 1 ] // OK polar_coordinates( [ −0.999999999995, 1 ] ) [ENTER] [1.41421356237,2.35619449019] // OK 

04282021, 09:22 AM
Post: #2




RE: Firmware 2021: Problem with exact polar form
Hello,
Honestly, I am not 100% sure of the why. This is code I created so long ago... With a cursory look, it seems that the problem comes from the fact that my parser is not able to recognize "expression"angle"expression" as a complex number. only number angle "expression" will work. Unfortunately, this is not an easy fix. sorry Cyrille Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP. 

04302021, 04:43 AM
(This post was last modified: 04302021 04:47 AM by compsystems.)
Post: #3




RE: Firmware 2021: Problem with exact polar form
In Home mode, I found the solution: you must put a comma before the Unicode angle symbol
(√ (2), ∡ (3 * (π / 4))) For those of us who work in the field of teaching circuits in electrical and electronic engineering, we use the option of complex numbers in polar form a lot, is also difficult to remember to place the comma before the angle symbol, for this reason it is very useful to have a template for this purpose. Who else has to enter complex numbers in polar format? Another useful template is CEILING ⌈▣⌉ AND FLOOR ⌊▣⌋, widely used in algorithmic 

« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)