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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

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

ptc-4346041
12-Amethyst

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.

Thank's in advance.

Olivier

ACCEPTED SOLUTION

Accepted Solutions
StuartBruff
23-Emerald III
(To:StuartBruff)

3rd attempt at posting worksheet

View solution in original post

5 REPLIES 5
StuartBruff
23-Emerald III
(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

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

StuartBruff
23-Emerald III
(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 ...

StuartBruff
23-Emerald III
(To:StuartBruff)

3rd attempt at posting worksheet

Hello,

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

Thank you

Announcements

Top Tags