Message Boards Message Boards

Function output used in Graphics[]....

Posted 10 years ago
POSTED BY: Tim Kirkpatrick
5 Replies

Thank you.

POSTED BY: Tim Kirkpatrick
POSTED BY: Gianluca Gorni

Yes, that fixed it! Thank you. What does the "First@" in front of DSolve do?

POSTED BY: Tim Kirkpatrick

Actually, on my system it is the first version (with functions on the outside) that does not work, but it is easy to fix: just write

Sol2 = Simplify[First@DSolve[{Eqn1, IC1, IC2}, f[t], t]]

instead of

Sol2 = Simplify[DSolve[{Eqn1, IC1, IC2}, f[t], t]]

A part from this, they both show an oscillating mass attached to a spring. At first sight I can't detect a difference or anything wrong.

POSTED BY: Gianluca Gorni

It would be easier to help you if you can generate a simpler example of this problem.

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

Group Abstract Group Abstract