Group Abstract Group Abstract

Message Boards Message Boards

0
|
5.7K Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Wave function of a free particle

Posted 10 years ago
POSTED BY: Devin Luu
4 Replies

You can take any symbolic derivative you want:

\[Phi][p_, t_] := 
  Subscript[\[Phi], 0][p] Exp[(-I*p^2*t)/(2 m*\[HBar])];
D[\[Phi][p, t], {p, 3}]
% // Simplify
POSTED BY: Gianluca Gorni
POSTED BY: Gianluca Gorni

What does it mean for a function to be "a nested function g[p], within the outer function f[p,t]".

In my experience, when people ask questions like this, they are mixing two very different things: - How we describe math to each other - How programming languages evaluate code

These are different and you not only have to understand both, but be able to translate between them.

In the code you posted, you have tried to attach a set of assumptions to a function definition. You cannot do this.

Do you want a function that returns a function? Do you want a function that takes a function like "g" as an argument?

POSTED BY: Sean Clarke
Posted 10 years ago

I want to set this function up so that mathematica can take mulitple derivatives of it with respect to p. This function happens to include an unknown function that is also dependent on p so I want to explicitly state this somehow so that mathematica understands that when i want to perform derivatives or any linear operations on it to treat this unknown function as a function of p.

POSTED BY: Devin Luu
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard