Dedicated forum for our customers to share, collaborate, discuss best practices.
Recently active
Hi everyone, I'm struggling to write a program in mathcad ... I have A , C points each one of them has its own x and y coordinate as showing below... what I need is to. 1) compare the two arrays2) choose the nearest point in A to C 3) calculate the distance between the near pointsfor example if A1 is ( 2, 3) and A2( 10, 30) ...and C1 is ( 6, 4) and C2 ( 2, 7) .... the program will choose A1 for both C1 and C2 since A1 is nearer to them then it will calculate d1 =( A1^2+C1^2)^1/2 ,,, d2= (A1^2+C2^2)^1/2I'm using prime 9 Thank you in advance Yusra
Hi Folks, The 'Chart Component' plot assumes an X range of -10 to 10. When I zoom in on a plot, it doesn't recalculate so Delta-X doesn't change. Curves are sometimes longer smooth (example below). It seems like there should be a way to recalculate a plot after zooming in, but I don't see anything. Am I missing something? Thanks for your attention 🙂 Mark
Hi, I am doing an integral in mathcad prime. The function inside of the integral is a summation of series of if statement functions and a step function (for loop). I plotted the integral twice (see attached figures), one with a TOL of 0.01 and one with a TOL of 0.1. However, the peak values along the graph are not the same at the same depth and I don't know why they are different since I am integrating the same function. However, the function stops at the same point (where the Moment is 0 kip*ft) at the very bottom. I am wondering why the peak values are different by changing the tolerance. Thank you.
Hi,Could somebody to say, why I could not write labels unit of temperature coefficient of copper
I need to create a list of solutions to a function based on tabulated inputs see the below not sure how to do this in Mathcad
Hello PTC Community,I'm currently working on a project related to heat exchangers, specifically focusing on an economizer. I've attached some temperature characteristic curves showing the temperature profiles for both co-current and counter-current flow arrangements. However, I'm having difficulty adjusting the axes for both the x-axis (distance) and y-axis (temperature) to improve clarity and presentation.What I Need:Guidance on how to adjust the x-axis and y-axis scales appropriately to represent the temperature profiles effectively.Any tips on ensuring that the axes align properly with the temperature values and flow direction for better visualization.Your insights and advice would be greatly appreciated!i have added a mathcad prime file and a screenshot from my book, Thank you in advance for your help!Best regards,Michael
Hi, all. I have just started using Mathcad. The problem below is driving me crazy. Any idea why it is giving me the wrong output? See below. I have also attached the Mathcad file. Incorrect answer:Correct output: RegardsCP
If you click on License under Options in Prime, a host ID is also displayed. I was of the opinion that this is the MAC address, called 'primary' by PTC, for which the current license was generated.But apparently there is some confusion here and it is a constantly changing fantasy MAC!!? I can't believe that this is intentional behavior, which is why I classify it as a bug. I am not sure but i think that in older versions of Prime the correct MAC was shown, the one the license was created for. I recently had to generate a new license and had it created for the one that was displayed. Of course this license file did not work. This was quite annoying, as license management is not exactly one of the easiest features on the PTC support sites and it took me some time and effort to finally move the license to the correct MAC.
Hi there, I have this plot which has ( x, y ) and A and B are points in this plot>>> I want to show this point in different colour and then draw the vector of them ABand then I have another x and y ( x;cpt , y;cpt different values) I want to show point C,cpt in the same previous plot then draw the vector component of AB and C,cptthe result should look something like this:not necessarily the same ,but I need to show the vectors Thanks in advanceprime 9
I have an input matrix from actual test data, where I have taken out 5 test dataset(Speed and 5 pressures), showing first line belowI now want to do some calculations, get all the differntial pressures for example : I know i can do like this: but it would be much nicer to display the result as a table with proper colum headers and units, how can i achieve this?
I have data in excel and I want to copy that data and use as matrix in Mathcad prime ? Is this something possible how can I do that? Let's say I have 10 rows and 100 columns and want to copy paste it in matrix is there a simpler way? Due to the nature of data I am unable to share here if anyone has a sample data to show me how that can be done it would be great!
Hi I am new to Mathcad Prime and I'm trying to solve a kinematics problem, and I really need help. I want to multiply 3 nested arrays, but in step 4 I encountered the error "These arrays elements must be scalars. They cannot be vectors or matrices." I suspected it was because they are nested arrays, so I tried to convert the nested array H1 into a matrix with a code I found online and now I encountered the error "This value must be a vector,"Any help is appreciatedThank you
I have been using mathcad for many years, its been my go to software to help me think and sort out problems. Very recently I moved to Mathcad prime 3. I am unbelievably dissapointed. Yes it looks pretty , but its so hard to do anything. I wanted to display arrays as a picture , as I have done for many years. You cant do this. You have to save the data to a file, then read in the file in to a picture which has browsed a filename. then it does not update when you change the data in the file. Its awful and unusable in this application. I have had to revert to a pre prime version as this actually does what I need it to do. I cant believe we are on prime 3 and this is not sorted out.Help doesn't work either. Prime really is a backward step and I would not recommend it to anyone - are you listening PTC. I have colleagues who feel exactly the same. If anyone can suggest how to view 2D arrays as pictures in a usable way I would like to find out.
Hello everyone,in the attached file, the program should loop through length of dS and store the values in RA. could someone explain me, why the loop is not workingattached the Mathcad 10 file.
I am having trouble understanding why I can't get a solution using the defined variables but am able to get one when I put in a value for the variable. My issue arises because the values X, Y and Z depend on Twall. I want to be able to loop this with an update to Twall at each dt. Any help would be appreciated. mathcad prime9 .
I want to show a formula as a step for reverence, not have MaffCad try and solve it,Can't see how to do it, there must be a simple way to add a formula like a text box?
Hi could you help me to program this one?And the previous generated function works without m to (mod..).see the picture.
The help document describe as follows: but i copy it into my MATHCAD, it shows like this: I am not sure if it is the issue of software version. The document is for V10.0, i am using V7.0
Let me tell you a story. Once upon a time, perhaps even 10 minutes ago, when writing a new function (Bidiagonal) and testing it with strings, I replaced a direct function call argument with a predefined vector but forgot to remove the original function's argument. After a few seconds of gazing at the (correct) output from Bidiagonal, I realised that the notation V(3) for vector V should have raised an error, but it didn't. After a bit of playing with a new, blank worksheet, I confirmed that to get an array's elements, one can use the standard subscripted index notation Mi,j or the standard programming language parenthesis notation M(i,j). And Little Red Riding Hood and Peter campaigned for a better public understanding of wolves, their role in ecology, and their treatment. I have a vague, dusty, indistinct memory of coming across this notation before, perhaps even on this forum, but I'm not sure - it might be a case of déjà vu. Stuart
Hi thereI using (READEXCEL) but it read all the values as zeros they should be these valuesIt works with the previous values thanks in advance
Does anyone know of a more simple equation to derive the max moment of a simply supported beam. I have 12 equally spaced loads with the first and last being spaced further from the support than the typical spacing. Exterior loads are different from the interior. Heres some pictures of what im working with. The BMD diagram is my check for the moment of the HL93 Inv Loads. I've done this before when only working with a couple concentrated loads but the formula would be to long for this. Would also like to be able to check the moment at any location along the beam
I just got a hold of MCP10 and started playing around with the new Advanced Controls. It appears that these controls are using Microsoft's Jscript version 5.8. This is semi-equivalent to JavaScript/ES3 which is 11 versions behind the current version. There are a lot of missing features that are commonly used in modern JavaScript, and I would like to at least upgrade to ES6. I was able to add the methods for working with JSON using this code in the TextBoxEvent_Start function to download and execute the json3 polyfill... var xhr = new ActiveXObject("Msxml2.XMLHTTP"); xhr.onreadystatechange = function(){ if(xhr.readystate == 4){ eval(xhr.responseText) } } xhr.open("GET", "https://cdnjs.cloudflare.com/ajax/libs/json3/3.3.2/json3.min.js"); xhr.send(); Tangent: Yes, I know eval() is evil, and this opens me up to security risks if cloudflare ever starts sending me something malicious instead of the json3 polyfill. If anyone h
I can't seem to get TextAlign to work to centre the text in the textbox. Any suggestions? Also for vertical alignment please 🙂 Is there any documentation with all the implemented properties for all the new control objects? Thanks,
I made a couple simple functions that I would like to share that helps with debugging of long Mathcad Prime (circa v9) programs. (file attached) I was making a VERY LONG convoluted program that called several sub-functions (in order to split it up). But it still had bugs by the time it was fully grown (don't we all;). I made this function so that I could locate the errors before it happened. It is basically a logger that lets the program continue. It is better than a "return" statement in a few ways: Since there is no 'remarks' statement in programing, this can also be a substitute—they do not need to be removed (except for speeding up long iteration functions).You do not have to delete the "debug" functions in order to keep the program running and running to a proper conclusion whereas "return" statement must be added/removed every time it is needed."debug" functions do not screw up the output if it is in a sub-functionYou can display the d
Hi there, I'm wondering what does the (i) represent in mathcad?
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.