Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
I have a worksheet that perfectly worked without units, but when I try to insert units RKfixed says that there are still units although I believe I stripped them all. Would someone be so kind to check what I did overlook?
Solved! Go to Solution.
Hi,
Working File.
In the definition of D the parameters need to be unit less. PvO2.c is just a variable for the definition. You could call it "y". The units are applied to get λ.p and not used in the second equation of the function "D".
Hi,
in the function D(x,--) the variable x isn't present .
Thank you for your reply. The x represents the start and end value for rkfixed and is in my opinion correct. It works when I use it without units
Hi,
Approx 89 is the result as predicted
You do not need when finding the ratio of two values with the same units to divide by the units.
Not sure why you have vectorised the equations?
Cheers
Terry
Thank you for your reply. The vectorization is done because in the final version the inputs are vectors but you are right it is not necessary for the example file. It works indeed perfect when removing the vectorization. However when I use a vector it is no longer working as shown in the attached worksheet. Any further suggestions?
Hi,
Working File.
In the definition of D the parameters need to be unit less. PvO2.c is just a variable for the definition. You could call it "y". The units are applied to get λ.p and not used in the second equation of the function "D".
Thank you very much for your support. Your explanation was very helpful