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:
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)
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 { phasor2, phasor1 };
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)