My first mathcad worksheet- many glitches
- August 7, 2023
- 2 replies
- 3797 views
I am using Mathcad Prime 5.0.0.0, Windows 11, for the first time as instructor in a civil engineering course having taken over from the previous instructor mid-semester. (Ordinarily I use Matlab.) My worksheet is supposed to solve the differential equation for liquid spilling out of a small hole in a tank modeled by the ODE dh/dt=-K*sqrt(h) in two ways: odesolve and rkfixed. Here are the glitches I encountered:
1. Plotting functions h(t) (the exact closed-form solution) and q(t) (the output from odesolve) did not work for me. I received an error message about complex or infinite values. However, it is clear from its formula that h(t) cannot take on infinite or complex values. In addition, Mathcad repeatedly changed the units of the t axis from s (which I typed) to 1/s * s, which is incorrect.
2. The exact solution to the problem exists and is well defined up to about t=85000, After that point, the tank is empty and the ODE is undefined. However, odesolve was able to integrate only to about t=60000. See the glitch with z(t) in the attached worksheet.
3, I also solved the IVP with rkfixed. The units came out incorrectly. The dependent variable column of the output was labeled m*s instead of m.
I'd appreciate any help since I need to hand out this assignment soon. I've attached my worksheet.

