Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Jacobian Calculation Crashes for System of ODEs

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-20-2020
10:14 AM

12-20-2020
10:14 AM

I have a program that works (PPPWorks_12_19_2020) for solving a system of odes using Radau with the Jacobian (I am using this because the solutions have peaks which are slightly better resolved with this choice). I made what I thought was an innocuous change (PPPNoWork_12_19_2020) adding the equation dA=0 so that I could set the value of A in the initial conditions. Now the calculation for the Jacobian grinds away for a while, then crashes MathCad. What did I do wrong? Maybe I now have two many equations d(...)= 0 for setting parameters in the IC? Any suggestions?

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-21-2020
06:59 PM

12-21-2020
06:59 PM

A:=A makes the variable undefined for symbolic calculations.

If you delete the assignment A:=0, the variable is undefined anyway, so A:=A is not necessary.

4 REPLIES 4

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-20-2020
12:53 PM

12-20-2020
12:53 PM

Re: Jacobian Calculation Crashes for System of ODEs

Shouldn't you enable the region "A:=A" ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-21-2020
04:20 PM

12-21-2020
04:20 PM

Re: Jacobian Calculation Crashes for System of ODEs

Thanks for the clue, but the problem was that I had already set A:=0 a few lines above and did not remove it when I tried to put A in the initial conditions. It worked still leaving A:=A disabled. BTW do you know why it is necessary to set a:=a, etc. I modified this program from one Alvaro posted a few years ago in reponse to another question i had. I copied this but never understood it.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-21-2020
06:59 PM

12-21-2020
06:59 PM

A:=A makes the variable undefined for symbolic calculations.

If you delete the assignment A:=0, the variable is undefined anyway, so A:=A is not necessary.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-21-2020
08:05 PM

12-21-2020
08:05 PM

Re: Jacobian Calculation Crashes for System of ODEs

Thanks. Happy Holidays.