Skip to main content
3-Newcomer
October 18, 2019
Question

angle(x,y) function gives different result?

  • October 18, 2019
  • 2 replies
  • 1163 views

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

25-Diamond I
October 18, 2019

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?

23-Emerald IV
October 19, 2019

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

 

Success!
Luc