Dedicated forum for our customers to share, collaborate, discuss best practices.
Recently active
Hallo, ich möchte eine OLE-Automatisierung in Java für Mathcad (ab Version 11) realisieren. Das senden der Daten über "SetComplex" klappt ohne Probleme, das auslesen der Daten mit "GetComplex" bekomme ich jedoch nicht realisiert. Dazu habe ich mit der JACOB-Bibiothek die Schnittstelle realisiert und folgenden Programmcode geschrieben:import com.jacob.com.*; import com.jacob.activeX.*; public class DispatchTest { public static void main(String[] args) { ActiveXComponent xl = new ActiveXComponent("C:DispatchTest.mcd"); //Pfad des Testprogrammes, wo die Addition von in0 und in1 durchgeführt wird Object xlo = xl.getObject(); Dispatch.call(xlo, "SetComplex", "in0", 10, 5) ; Dispatch.call(xlo, "SetComplex", "in1", 7, 2) ; Dispatch.call(xlo, "Recalculate") ; //In der Mathcad-Vorlage wird nun in0 + in1 = out0 Variant RealPart = null; Variant ImagPart = null; Dispatch.call(xlo, "GetComplex", "out0", RealPart, ImagPart) ; } } Als Fehlerbeschreibung bekomme ich einen Typenkonflikt, oder einen Nul
Hello, In the attached file, the function p4(d,y1) calculates for a large set of parameters. Unfortunately, my Mathcad version does not support WRITEEXCEL routine to export and store the results. Currently I have to wait for a long time and if something intrrupt the calculation, I lose all the calculated data. Could you please suggest a better way to handle the outputs? I also appreciate it if you make some advices to speet up the calculation time. All the best, Payman
I have a non-standard 2 point bvp. The endpoint is not known but needs to be determined as a condition on the forward problem. Then another condition needs to be satisfied at the end point. Presumably one way to do this would be to solve the foward problem step by step until the condition to determine the endpoint is met but this does not seem a very good use of the ode solvers. A worksheet that describes the problem better is attached.
Good morning Can anybody explain me this (see screenshot)?After the "=" in the matrix I see what are the right units (which are no units for the last 2 elements). But when I try to use them later, it looks as if the last 2 elements are in m. I attached also the mathcad file. I use Mathcad prime 3.1 Thanks
Hello to all, I've already look a lot in the forum, but I just couldn't find an answer to this, I guess, simple question. I have a matrix like this: I want to extract the data from the fifth line of all the {5,1} and throw it in a different array. I have tried using Ctrl+6, but with no success. The second point is that I want, then, to create a 3D plot with the results. Anyone has a hint on how to accomplish these two matters ? Thanks in advance, Ricardo
We have created some windows programs to control input-Vars in prime 3.1 worksheets. This worked fine for Version 3.1 but not in 4.0: Mathcad prime crashes after sending some input vars. The error message refers to a corrupt heap. The automation dll of version 4 was referenced. To verify the issue between Mathcad 3.1 and 4.0 I have created a worksheet in Mathcad 3 and imported that to Mathcad 4. I have also created two client-applications, one referencing automation dll of version 3 and the other to version 4. The line ClientApp3+Mathcad3 worked fine and ClientApp4+Mathcad4 crashed. The worksheets had identical content. Is there a bugfix available? Mathcad Prime 4.0 Version: F000 (2017.02.26.001/4.0.0.54)
[Issue Report] Some areas is damaged and cannot open in MathCAD Prime 4.0 M010 I just put some equotions in these areas. The mathcad file has error after i save the files and open it again, the error picture like these: And the error reason in log file is: "An unrecognized structure in the data format "XamlPackage"." I can't fix the .mcdx file, how to avoid this problem? Error sample file and log file in attatcmnent:
hi all, I have some parameters followed by some calculations. When i change a paramter above, the recalculation throws an error (circled by red box). I have to "disable" then "enable" the calculation region to get it to recalculate without error. what can i do to get the sheet to recalculate properly?
Dear all, I have to solve a nonlinear system of equations. y1 = a11*x1 + a12*x2 + x1*x2... y2 = a21*x1 + a21*x2 + x1*y1... And so on... So far, so good, solving the system is a piece of cake with Mathcad. But the thing is I want to solve the system for different values of, for instance, a11. I want to solve the system for a11 = 0,1 then store the result in a matrix, then for a11=0,2, store it, then solve it for 0,3 ... Here is where the problem starts since I'm having a bad time trying to use solve block inside a "for" loop (each iteration modifies the value of a11). Is this possible ? Are there any examples out there ? Any other options ? Thanks in advance.
I try to get formula for ellipse area in polar coordinates. I've got it but symbolic result is wrong. I can`t understand why? One more example with strange behaviour
I set all the interfaces property to "Middle", but the results is still different between TAE automatic cacultation and MathCAD manual caculation, what kind of influence does interface makes to the caculation process? Would you mind tell me the fomula? (In this picture, you can see the results is different between TAE automatic cacultation and MathCAD manual caculation)
I have inserted a Table in Mathcad Prime 4.0. If I select this table and want to move it within the sheet (select it twice to make it blue) the Table jumps to a region some 100 pages further down. Am I doing something wrong? Wybe
Hi! I want to simulate the accuracy of the Euler-Polygonzugverfahren with MathCad. The allgorithm is a numerical approximation which the accuracy depends on the variable "n" with a programmed recursive function of the velocity. (I'm not that familiar with programing) Now my problem is: How can i display this function for n=6,10,20 timesteps in one diagram to visualize the accuracy? Thanks in advance.
Good Evening Mathcad Community, About a week ago the following people have been help me with programming from translating Matlab into Mathcad on Wilson Theta Method, Werner, FM and Jamie. Now that the problem is solved, I'm trying to read in matrices Mass matrix, Stiffness matrix, Damping matrix and an external force vector into the function but get comfused with the n by n matrix into the function. Would any member of the community please see what I'm doing wrong and help me the code is below the function. I have followed Werner's work on previous worksheet. If I get this to work my goal is to solve the problem below the function on dynamic analysis for foundations. Please attached.
Dear fellow Mathcad users, Please see attached screenshot, I am trying to find Variable rT (top row) for a given value of rR (left hand row) and a second variable called S (the numbers in the body of the table). I think the solution will be found by initially creating a submatrix that is one row high based upon the variable in the left column, and then outputting the variable in the top row based on an interpolation of the new submatrix. I am trying to get to that solution, but my efforts are so far in vain, (I have been trying to adapt the Mathcad example attached to my needs but no success yet). Note that I want to linerly interpolate, and not to generate a spline. Any help on this would be much appreciated. Best regards, mrretsil
I use a 3D plot VBscript component inside MathCAD 15. This component has an input variable. When I put an array of several vectors (or matrices) as input variable all is OK (VB gets it as Variant and I can loop over its elements). But when the input variable is an array of only one vector (or matrix) VB gets it as Double and the value of this double is -1.#QNAN. So I can't use input variable for the next calculations.Please see attached file for reference.
I am simply trying to write a for loop that takes in an array and does some algebra on each number in the array and puts the result into a new array. I have attached the function(num,array) whcih take in: num=the length of the array and array=my already made array. For simplicity of working on just the loop and arrays, I have made the algrebra portion just adding the number 1 to each value in the original array being sent into the function. Once I understand what I am doing wrong I can add in the actual math, however I'm stuck on how to make this for loop take in an array and return a new array. I know this is basic but I do not have any other instructions on mathcad other than the user manual and internet searches, however I still can't get it. Please help. Thank you. Brittany
Hello, I want to insert a collapsible area in MathCAD 15 document. When I do this, the area extends from the first page to all the page to the right. Is there a way to resize the area to be confined within the page that it is inserted in?
I met some problems on calculation accuracy in MathCAD, I hope friends in this forum could help me. I really appreciate your help.
[Issue Report] Areas left border cannot be printed normally I want to print a mcdx file with area, but the left border line can't be printed normally, i have used several printer software but all cannot print ok such as: PDF Factory Pro × foxit pdf printer× microsoft print to pdf ok,but when i use microsoft print to pdf print again × The reason is left border is too thin to show clearly, i think it is software problem, could you fix it, please?
[Issue Report] Exception error because of "The dispatcher process is pending, but the message is still in processing" Mathcad log Exception data message is "The dispatcher process is pending, but the message is still in processing": Exception data: System.Object: System.InvalidOperationException: 调度程序进程已挂起,但消息仍在处理中。 在 System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) MathCAD Prime 4.0 M010 crashes easily, please improme its Compatibility and reliability, please.
Hi. I'm a new one here. Maybe somebody knows where is the catch why the result is a matrix with [1x1] result (pic. in attachment). Thank you in advance for your help. Regards, D
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.