Skip to main content
13-Aquamarine
December 8, 2021
Solved

Question for StuartBruff with comparison between Maple and Mathcad calculation method

  • December 8, 2021
  • 3 replies
  • 10091 views

Dear Stuart or other power user,

You mentioned that beside of mathcad you also experiment with maple. As I stick to real mathcad I would like to have a plan B for the moment my mathcad no longer works. So I am transferring some of my mathcad sheets into maple as exercise.

In the attached worksheets I believe that I did exactly the same in both programs but the end result is 10 units lower in maple than in mathcad. I have tried to find the reason for days but was not able to pinpoint the issue. Would you be so kind to throw an eye on it? As the maple file could not be uploaded I provided it as a txt file

I already want to express my gratitude in advance for your help.

Filip

Best answer by LucMeekes

@FDS I think I've found the culprit.

In Maple your differential equation is:

LucMeekes_2-1639226853001.png

resulting in:

LucMeekes_3-1639226888897.png

In Mathcad you've implemented:

LucMeekes_4-1639226945141.png

Resulting in:

LucMeekes_5-1639226969147.png

That's  a small jump for an exponent...

 

Success!
Luc

 

3 replies

23-Emerald IV
December 8, 2021

Misschien helpt het (nog meer) om beide berekeningen als .PDF aan te hangen. Het valt me op dat de structuur van beide sheets nogal verschillend is, dat maakt het vergelijken lastig. De Mathcad sheet file heeft een referentie naar O2 dissociatie.xmcdz, die zit er niet bij. Tenslotte: als je de bestanden in een .ZIP file stopt, kun je ze wel aanhangen.

 

Succes!
Luc

24-Ruby III
December 8, 2021

 Luc,

 

In de bijlage vindt u het bestand voor de 11e versie van het programma.

 

P.S. Vergeet trouwens niet dat u de site kunt gebruiken - "SMath Studio in the Cloud" (https://en.smath.com/cloud/ ) om voorbeelden van bestanden in het formaat ".xmcd": https://en.smath.com/cloud/sheet/e7pLXZ3AKV

23-Emerald V
December 8, 2021

@FDS wrote:

You mentioned that beside of mathcad you also experiment with maple. As I stick to real mathcad I would like to have a plan B for the moment my mathcad no longer works. So I am transferring some of my mathcad sheets into maple as exercise.

In the attached worksheets I believe that I did exactly the same in both programs but the end result is 10 units lower in maple than in mathcad. I have tried to find the reason for days but was not able to pinpoint the issue. Would you be so kind to throw an eye on it? As the maple file could not be uploaded I provided it as a txt file


 

Unfortunately, I'm not much of a power user as I don't have either Mathcad 15 or a Mathcad Prime subscription.

 

Could you please provide a pdf (or MS Word) copy of your worksheet?  (I can't remember whether M15 has a direct print-to-pdf save option or whether it needs to be done via the Print dialog;  I think there is an RTF option somewhere, as well )

 

However, depending upon what timescale you are looking at, Mathcad Prime seems to be heading towards parity with M15 in a few releases' time.  Sticking with Prime might yet be an option for you.  What features in Real Mathcad (or TOS) do you need/use that Mathcad Prime (TNG)

 

https://community.ptc.com/t5/PTC-Mathcad/PTC-Mathcad-Prime-Roadmap-2021-update/m-p/738684

 

Stuart

 

I've tried @LucMeekes's file viewer but it has a problem with part of the xmcdz file.

 

2021 12 08 a.png

 


 

Star Trek references ...

 

TOS - The Original (Mathcad) Series

TNM - The New (Mathcad) Generation

 

Kind of apt, as the "crew" isn't the same and has a different mindset, plus the Enterprises (Mathcads) are superficially similar but, again, different in many ways.

24-Ruby III
December 8, 2021

 Stuart,

 

Please find in the attachment PDF file to preview the contents of this worksheet and the file for Mathcad Prime version.

 

P.S. By the way, don't forget that you can use the site -  "SMath Studio in the Cloud" (https://en.smath.com/cloud/ ) to preview files in the format - ".xmcd": https://en.smath.com/cloud/sheet/e7pLXZ3AKV 

23-Emerald V
December 10, 2021

@VladimirN wrote:

 Stuart,

 

Please find in the attachment PDF file to preview the contents of this worksheet and the file for Mathcad Prime version.


I've compared the Mathcad Prime worksheet to the Maple workbook and, as Luc has pointed out, there are some differences.   I've corrected what I can at the moment and the figures seems to agree up until the rkfixed evaluation.   At that point, other things were calling for my attention and I haven't had time to implement an rkfixed function (I managed linterp).

 

Stuart

23-Emerald IV
December 8, 2021

Thanks to @VladimirN I'm able to look at the Mathcad file in more detail.

I find already one difference, near the top:

In Mathcad you define Hct := Chb*3, which results in Hct=0.303.

In Maple you define Hct := 0.301.

 

I guess, the results are different because the input is different.

 

Further, you appear to be using units in Maple consistently. You fail to use (the same) units in Mathcad.

 

Success!
Luc

 

FDS13-AquamarineAuthor
13-Aquamarine
December 9, 2021

First of all thank you Luc, Stuart and Vladimir for your swift response and help.

Luc you have a keen eye I did not spot that difference. However, changing it does not substantially change the final result. I have attached for your convenience the MC15 file as a MC11 file and also the mw file in a zip (7-zip). The file referring to the dissociation I have removed as it is not really needed for my question. I also reordered the MC sheet to have the order moer or less the same as the maple sheet. Only the water vapour part is different due to the fact that maple can calculate this directly. Graag maak ik van de gelegenheid ook gebruik om U te bedanken voor de vele waardevolle informatie die ik over de jaren kreeg via Uw antwoorden in de collaboratory.

Stuart, my main reason for not pursuing Prime is that it works with subscription. Once I go in retirement I most likely do not want to spend that money each year for a program I will use at that time for personal pleasure. With Maple I can buy a perpetual license at an acceptable price once retired.

I really hope someone can pinpoint the difference as it really gives me a headache 🙂

Filip

 

24-Ruby III
December 9, 2021

In any case, you will be able to use Mathcad Prime Express version without a subscription.