Message Boards Message Boards

0
|
3385 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

NDSolve error when using an oscillatory forcing of ODE system.

Posted 4 years ago
POSTED BY: Giovanni Aloisi
3 Replies
Posted 4 years ago

Crossposted here.

POSTED BY: Rohit Namjoshi

Giovanni,

As to your last error, you can't set precision to 16 or greater unless you have no machine precision numbers in your equations. You would need to make sure your coefficients are higher precision. This tutorial will explain the issue. It's hard to say more without an example.

Regards,

Neil

POSTED BY: Neil Singer

Dear Neal, thank you for your comment. I have now set the precision of all of my coefficients to 20 with SetPrecision[x,20], where x is a given coefficient. This indeed overcame problem nr. 4 in my message above. However, I am still left with an unsolvable stiff system, even if I impose WorkingPrecision->19. I will try increasing further the precision of my coefficients and setting a higher working precision. Also, I can try to modify my equation system, I suspect there might be steep chages in some derivatives that I can try to avoid. Cheers, Vanni

POSTED BY: Giovanni Aloisi
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