cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

angle(x,y) function gives different result?

DamienB
2-Guest

angle(x,y) function gives different result?

I was verifying my math against simulation (PSICE) results and noticed an odd discrepancy when trying to plot the difference in phase angle between two transfer functions.

 

Comparing each transfer function's phase angle to its corresponding simulation result shows an almost exact alignment. However, comparing the difference between the phase angles shows correctly (or at least as expected) only for the simulation results.

 

What am I missing? Worksheet is attached (MathCAD 15.0 M050).

2 REPLIES 2

Not sure why, but the difference between the two difference curves is about 2° at max. Thats 0.035 rad. It may be within a tolerable tolerance?

LucMeekes
23-Emerald III
(To:DamienB)

Rerun the PSPICE simulation with better accuracy (lower RelTol, etc.) to see if it gets closer to the Mathcad result.

 

Success!
Luc

Top Tags