×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Solving differential equations

Solving differential equations

Solving differential equations

(OP)
Hello,

I've got differential equations to solve. I've managed to solve it graphically and I can compute values for different arguments of functions.

Now I would like Mathcad to print formulas for resulting functions, or their approximations if getting exact formulas is not possible. Is there any way to do it?

Attached is a screenshot of my calculations. I will also provide a Mathcad 14 file if needed.

Thank you.

Best regards,
Jarek

 

RE: Solving differential equations

Maybe as you evaluate a(5) you can dump a number of solutions for specific abscissas and then use fitting functions to define curves that approach the results. Have not tried but try to feed a(v) with a vector of abscissas to see. If yes you can get a somewhat practical solution to the problem.

RE: Solving differential equations

(OP)
I have managed to solve the equations in Java using Apache Commons-Math package. It turned out to be a perfect solution for my needs.

The solution in Mathcad is most likely wrong as I should have not used odesolve which apparently works only for single equations.

Thanks for your time.

RE: Solving differential equations

>> I have managed to solve the equations in Java using Apache Commons-Math package. It turned out to be a perfect solution for my needs.

Out of interest, what functions in the Common Maths package did you use.  AFAICT from a quick glance, the CM package is purely numeric and doesn't offer symbolic solutions.

== The solution in Mathcad is most likely wrong as I should have not used odesolve which apparently works only for single equations.

odesolve works on multiple equations and I've seen some pretty complex worksheets that use odesolve.  If the solution is wrong, it's more likely there is an error in its formulation.

RE: Solving differential equations

(OP)
I used GraggBulirschStoerIntegrator. And yes, it is numeric, however a standalone application that solves the equations to get final results is exactly what I needed. My initial intention was to take the symbolic solution from Mathcad and use it in my application. I know, this is a completely wrong approach to the problem, I should have thought of numeric libraries earlier.

I know the solution in Mathcad is wrong because it doesn't match numbers given in a book I got the equations from. On the other hand results produced by my Java application do match. So it is probably as you say, something must be wrong with the usage of odesolve.

On a side note, in the aforementioned book a symbolic solution was also given but some of intermediate formulas produce complex numbers while the final solution is supposed to be real. I have contacted the author and he had no idea how he had got the real solution a dozen years or so ago smile

RE: Solving differential equations

(OP)
Peter,

This is very interesting. Thank you very much!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close