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

1-Newbie

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

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.

Olivier

1 ACCEPTED SOLUTION

Accepted Solutions
23-Emerald II
(To:StuartBruff)

3rd attempt at posting worksheet

5 REPLIES 5
23-Emerald II
(To:ptc-4346041)
 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-Newbie
(To:StuartBruff)

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 II
(To:ptc-4346041)
`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 ...

23-Emerald II
(To:StuartBruff)

3rd attempt at posting worksheet

1-Newbie
(To:StuartBruff)

Hello,

I wait the worksheet because i don't saw the error.

Thank you

Announcements