Skip to main content
1-Visitor
April 26, 2012
Solved

This function is undefined at one or more of the specified points.

  • April 26, 2012
  • 5 replies
  • 3535 views

Hello,

It' my last error and i don't understand, it's very important for me.

The eroor is on the graphics :

PhaseofHH8(f16,tpas2,tm,sa)


This function is undefined at one or more of the specified points.

Something, can to help me, please.

Thank's in advance.

Olivier

Best answer by StuartBruff

3rd attempt at posting worksheet

5 replies

23-Emerald V
April 26, 2012

olivier boudigue wrote:

Hello,

It' my last error and i don't understand, it's very important for me.

The eroor is on the graphics :

PhaseofHH8(f16,tpas2,tm,sa)


This function is undefined at one or more of the specified points.

the problem arises because the first value of TF591 is 0 implying both Re and Im are 0, but angle(x,y) is undefined at x=0 and y=0. The simplest solution is to redefine angle to check for this condition and return an arbitrary value (0 is as good as any) when it occurs, otherwise return the normal result of angle(x,y), eg

angle(x,y):=|0 if x=0 and y=0

.................|angle(x,y) otherwise

Stuart

1-Visitor
April 26, 2012

I think understand that you say to me but Why PhaseofHH81(f16,tpas2,tm,sa) and PhaseofHH8111(f16,tpas2,tm,sa) are correct ?

Are you sure of your response ?

Should I remove the 0 ?

do you can modify or to explain me in more detail that should I do?

Thank you

23-Emerald V
April 26, 2012

olivier boudigue wrote:

I think understand that you say to me but Why PhaseofHH81(f16,tpas2,tm,sa) and PhaseofHH8111(f16,tpas2,tm,sa) are correct ?

Are you sure of your response ?

Positive. You don't calculate them, you calculate PhaseofH81 and PhaseofH111 (one H not 2). See attached.


Should I remove the 0 ?

do you can modify or to explain me in more detail that should I do?

Thank you

No need to remove the 0, just redefine angle to cater for the special case of x=0 and y=0

Stuart

PS: I've tried posting a worksheet showing the modified function, but the PTC site is failing to respond properly ...