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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Obtaining eigenvalues of an eigenfunction

rfari
1-Visitor

Obtaining eigenvalues of an eigenfunction

Hi, i'm studying Green Functions.

I need to obtain the positive eigenvalues of a function, at this time just for first six values, m=1..6

Can i do this in mathcad Prime 3.1??

there's a attached file.

Sem título2.png

Thanks in advance.

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:rfari)

The symbolic solve is not helpful in this case. Better use a numeric solve block or the root-function.

Maybe the attached file helps.

WE

View solution in original post

5 REPLIES 5
Werner_E
25-Diamond I
(To:rfari)

The symbolic solve is not helpful in this case. Better use a numeric solve block or the root-function.

Maybe the attached file helps.

WE

rfari
1-Visitor
(To:Werner_E)

thank you very much!

I still have a question. I modified your file, and it still appear its correct to me. I modified just to get de positive values of beta, starting the first positive value in beta_1.

Is this version still right?

thanks!

Werner_E
25-Diamond I
(To:rfari)

Sorry, unfortunatly I can't read P3.1 files, just P3.0 ones. PTC had decides that even subversions should not backward compatible.

rfari
1-Visitor
(To:Werner_E)

Sem título2.png

Werner_E
25-Diamond I
(To:rfari)

I see. Obviously the results ar correct with the exception of the first vector entry - zero is not a solution!

You get this value because Prime by default numbers vector elements beginning with zero. The first value you assign is the one with index 1 (range m), so element with index 0 defaults to zero.

better assign beta[m-1:=get_beta(m-1) or use a range m:=0..19 and beta[m:=get_beta(m).

I have used a rather sophisticated expression in the root command. The last two arguments have to be one value to the left and one value to the right of the root. For positive values the last argument has to be a value slightly to the left of an uneven multiple of  pi/2 (pole), but for negative values we need a value slightly to the right of a negative pole. Thats the reason for the sign-function and the i<0 expression (which yields either 1 or 0). Guess the expressions could be simplified if only positive values are needed.

You could also use root with a different flavor without those two arguments but then you would have to provide a guess value and its hard to control which one of the solutions to get using a guess value. The same applies to using a solve block - again you would need a guess.

Here is a way to use a solve block function and still we have control which value to get. The way its written this function won't find the first negative solution but as you seem to look for positive values I haven't looked for a solution.

WE

Announcements

Top Tags