HP Forums
Problems with polar or phasor form - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Problems with polar or phasor form (/thread-7988.html)



Problems with polar or phasor form - compsystems - 03-21-2017 02:32 AM

Hello

Flags: HOME view & RAD MODE
1:
phasor2 := ( 4 ∡ (π/6) ); returns 3.46410161514+2*i //OK
but
phasor1 := ( √(2) ∡ 3*(π/4) ); "Syntax Error" // BUG

2:
PHP Code:
#cas
  
testPhasor():= 
  
BEGIN
    local phasor1
phasor2;
    
phasor1  = ( (2∡ 3*(π/4) );
    
// phasor1  = ( sqrt(2) ∡ 3*(π/4) );
    
phasor2 := ( 4 ∡ (π/6) );
    return { 
phasor2phasor1 };
  
END;
#end 

running testPhasor() from the HOME view, return program({},{},LOCAL {4.∡0.523598775598,1.41421356237∡2.35619449019},...
?


3: CAS VIEW

demoPhasor( ); returns
{4.∡0.523598775598,
1.41421356237∡2.35619449019}

Why in approx?, If the calculator is in symbolic calculation (CAS VIEW & EXACT MODE)