PTC Mathcad is Engineering Math Software That Allows You to Perform, Analyze, and Share Your Most Vital Calculations.
Recently active
Hi All, I created a set data and put them in matrix. Some data product has return the correct value, but there is not return the total sum of the array. Not sure why this has happen. Please help.
Dear all, I have a column of values stored in the variable "i". My intent is, I want to utilize a while loop with a continue/break statement to track a specific range of numbers within the column based on a given input row index. For instance, if I input the row-index value of "4", I would like to extract the range of values from the 4th index of variable "i" until the end. Please help. Thank you
Hello All, I have a system in which there are "N" number of black layers and each layer will have random thicknesses. Then, I want to put a red line on top of any black layer. Whenever I do so, I want to find the number of layers existing only below the red line and also the corresponding layer thicknesses. If the red line ends at the end of the lowest black layer, it should not find any layers below. I can do the worksheet if the red line is present at the top black line but am unable to do so if it stays otherwise. Please help. I have attached my work image for reference. Thank you
Good afternoon,I have been trying to solve a bondary value problem of a 4 grade differential equation but I don't understand how I should setup up my worksheet to obtain the 3 derivatives (C1, C2 and C3 in in the matrix D_). Also, the function "sbval" returns me an error that says "unkown error: exception by call destination", and so I can't calculate the conditions that I need to obtain the solution. Attached there is the mathcad file in 8.0 version.Thanks to everyone for the help.
Good afternoon,I am doing an exercise in Mathcad prime 8.0 where I have to solve a boundary value problem of a 4th degree differential equation, knowing that the boundary conditions are: y(0)=q*(R^4)/(64*B_plate), y'(0) = 0 and y(R) = 0, y'(R) = 0. I have tried to setup the worksheet and in r = 0, I have obtained the initial conditions that I need but I can't undestand how I can get the solution to zero when r = R. Also the file attached is written in italian so if you need any clarification ask me.Thanks.
Greetings all, I am trying to extract value from a randomly defined matrix but I am unable to do so. I have attached the file and image for reference. Please help. Thank you,
Hello everyone, Here I need a help in solving a system of equations in a loop statement.I want to get the coordinates of intersection point of two circles, one circle center coordinate (0,0),R=31.5The other circle center coordinate (33.8 ,S) -54<S<150how can I calculate all intersection points of two circles using Mathcad. Thank you
I use matchad prime 8 and for some reason this row operation doesn't work I can't seem to figure out why
Hi All, I set up an solve block looking to solve a few equation, however the no solution can be found in solve block but when I use root fuction, I manage to get some answers. What have I done wrong? Can anyone spot the problem, please help. Also how do I get rid of the NaN number i.e. 0.6i on some answer in the root function.
I am trying to find the efficiency of a 3 loop system. In order to find that, I need current equations of all the loops from which I can extract power of the circuit and eventually efficiency of the system. The solution I get is way too lengthy, I tried even manually to simplify them but had no luck.Please help!
As shown above I have created an table with formula but I want to show the values rather than just formula. please help.Thank you in advance.
Hi, I am trying to create the table for wind pressure on various face of the building for various pressure coefficients. the formula are shown in the header of the table, Kindly help me to create on such table as in excel where the value will be calculated based on the formulas and how to retrieve a specific value from the table.Thank you in advance for your kind help.
I'm trying to create a summary table at the end of a worksheet where I need the values of variables previously defined to come up instead of the variable name:
Hello Everyone, I am attempting to write a 'RowSwapper' function in Prime 8. Essentially, I have a matrix 'A' in which I need to replace certain rows that are present in another matrix, 'B'. The function should take the following arguments: RowSwapper(A, B, "label"). It should generate a new matrix, called 'A_Swapped', where rows are swapped only in instances where items have the same ID (column 2) and where label="LoadCase4" (column 5). However, the function I've developed isn't ideal because it relies on matrix 'A' having a well-defined order, and that matrix 'B' maintains the same order per unique ID as they initially appear in Matrix 'A'. Furthermore, it only includes load cases equivalent to "LoadCase4". Additionally, it's time-consuming in terms of computation. Screen shot of Matrix A and B:Desired Output Please note that I don't currently have access to Prime 9. Feel free to send me screenshots of the Prime 9 solution along with the file, which I can op
As shown above when I tried to linear interpolate the D values corresponding to h/d values of column 1. It is showing following error, Kindly help me.
Hello, I have some difficulties to plot on a XY axes system, the efficiency of a voltage converter. I want to have on the x-ax the output current in Amps, and on the y-ax the result in % for a specific switching frequency value.The error that I got is related to the fact that the variable from the x-ax is undefined.Could you help me please to understand what is wrong? Thank you!
Hi, I am calculating mean wind speed at variable heights (ze) as as shown in above function.Now I want to create a table with variable heights say 10m, 15m. 20m and tabulate the corresponding wind velocity, so that i can reference it any where in the calculation and I also want to know how to extract exact data from table with the variable say like lookup functions in the excel.
The only way I see to do it is to clear each variable individually ..... clear (x,y,z,....) That can be a lot of typing in a large sheet and you might miss one. I've had a few situations where I'd like to just clear everything and have a section of my worksheet act individually without any worry of using prior values but without having to relabel everything. The documentation doesn't point to any solution, but I know there are occasionally undocumented techniques.Thanks,
As you see from the above snips the zmin is extracted from combo box of terrain category but is not recognized in the cr(ze) program.
Would be nice if Mathcad Prime included internal routine for the Schur and Jordan decompositions of a matrix.Has anyone developed a Mathcad Prime routine to return the Schur and Jordan decompositions of a matrix? Thanks for any help.
This is a text with tabs: Tab1 text Tab2 text text Unfortunately, it is not possible to write the right text in Prime 8 exactly below each other as a column.------------------------------- Translated from German to English using google translate. Translated by vnamboodheri on 19-01-2023 at 14:37 hrs.-------------------------------Das ist ein Text mit Tabulatoren: Tab1 Text Tab2 Text Text Es ist leider nicht möglich, den rechten Text in Prime 8 genau untereinander als Spalte zu schreiben.
The percentage operator in the result is getting scaled to 1% after converting it to prime. Is there any way to avoid this ?
On June 27, 2023 (10:00 Eastern), PTC held a Mathcad for Civil Engineers webinar. Check out the now-recorded (formerly live) webinar for opportunities to: Learn what Mathcad is Learn Mathcad use cases for civil and structural engineers Watch Mathcad demos by a guest presenter (Dr. Pat Heffernan, professor of civil engineering at the Royal Military College of Canada) Listen to the Q&A with the presenters and the then-live audience It was a fun time!Here was an excerpt:
Hello communityI request your help please with the following problem:I need to run a for or similar loop that allows me to build a 1x (2N) array, where N is an input value.That is, the array will always have an even number of rows. On each odd row the routine should place "Px" and on each even row the routine should place "Py". Thanking you in advance for your help
Hello, I would like to export a complete matrix from mathcad prime 8.0 to an existing Excel file and in a specified range of cells. While reading through some older posts on this topic, I got the feeling this shouldn't be too hard. I am, however, completely new to VBA. For now i have the following lines: Sub ExportMatrixToExcel()Dim MCApp As Ptc_MathcadPrime_Automation.ApplicationDim WS As Ptc_MathcadPrime_Automation.WorksheetSet MCApp = New Ptc_MathcadPrime_Automation.ApplicationMCApp.Visible = TrueMCApp.Open ("E:\Mathcad\test.mcdx") From here i would like to export the matrix in the mathcad file to my Excel file. The dimension of the matrix is 5x5 and let's say i want to place this matrix in Excel starting at C5 and ending at G9. Is somebody willing to help me with this with a general example?Thanks in advance
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.