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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

variational method

aayyappan
1-Visitor

variational method

Hello,

I am creating a worksheet for variational method. but have a problem in minimization, pls see the attachment.

6 REPLIES 6

Unless I am going mad, didn't I see a thread created by you today with an integration problem, which seems to have been solved in this new sheet?

You haven't defined N, so Mathcad thinks it means Newtons. Your definition of Psi has 'a' as an input argument, but the right-hand side of the function doesn't contain 'a' at all (should it be alpha?)! No wonder E(a) gives a single value whatever value is passed to it for 'a'!

Psi also doesn't cater for the situation where z is exactly L/2.

Alan

Alan,

I take it that response was meant for Anitha and not me

As I said, the worksheet needs some work

Mike Armstrong wrote:

Alan,

I take it that response was meant for Anitha and not me

Correct!

Alan

Please check your workings. E(a) returns a value of value of 2.478 for all values of a.

Clipboard01.jpg

Werner_E
25-Diamond I
(To:aayyappan)

N.1 is calculated but never used

Definition of Psi(z,a):

1) Are you sure about N here? N is not defined anywhere so Mathcad assumes you mean the unit Newton. I guess this is not what you intended, as you don't use any units in the rest of your sheet.

2) The argument "a" is never used in the function definition, so Psi is not dependent on "a" and therefore the argument "a" should be omitted, use only Psi(z):=...

E(a): This function does not depend on "a". "a" is never used other than as argument of Psi and its without effect there as said above. So the result of E() is not influenced by "a" and therefore, as Mike had noticed, is the same constant value for any argument provided.

Announcements

Top Tags