Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
Hello,
I am creating a worksheet for variational method. but have a problem in minimization, pls see the attachment.
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.
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.