Post Reply 
Problems with polar or phasor form
03-21-2017, 02:32 AM (This post was last modified: 03-14-2018 07:37 PM by compsystems.)
Post: #1
Problems with polar or phasor form
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)
Find all posts by this user
Quote this message in a reply
Post Reply 




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