Dedicated forum for our customers to share, collaborate, discuss best practices.
Recently active
My string library defines three different representations of a string, two of which should already be familar: the string and the vector of character codes. The third type is the vector of characters. In the following, "str" indicates a string, "vec" indicates a vector of character codes, and "chr" represents a vector of characters. For example, chr2str indicates a conversion from a string to a vector of characters. chr2str itself is relatively quick, even for long strings. chr2str0 has the limitation of hitting Mathcad's recursion depth limit. chr2str2's use of folding over concat, however, is proving somewhat slow once the string length increases to above about 20,000. The challenge is to define a faster recursive variant of chr2str. Where the dependencies are as shown below (except the timer functions, which are in an Area at the top of the attached Mathcad Express 11 worksheet). Stuart
I'm using MathCAD 9.0.0.0. I laid our 2 sets of 3 equations. One set is using variables. The other set has the values plugged straight in. The set with the variables should equal the set with the values because the values are the same, but they don't and none of them equal the correct answer. What should happen is...Rx=Rx=-22Ry=Ry=211.5R=r=213My MathCAD program is written to follow this example...This is how my MathCAD program looks...Ignore the 25 degrees and the 75 degrees in the diagram. This is a homework problem altered to match the example problem so I can test to make sure it works before plugging in the values for the homework problem. Also, I'm interested in fixing the "values" problems Rx, Ry, and r. I only created those to figure out why my variable problems Rx, Ry, and R aren't working. Attached is my program. Thanks, Brent
I'm using MathCAD 9.0.0.0. I'm not sure why I'm getting the wrong answer. The calculation should be...R = 329.687 N...but I'm getting...R = 108695.156 NIs there something wrong with my settings? Thanks, Brent
Does anyone know why the attached issue is occurring? It seems that when you run units of feet, there is some kind of internal rounding error.
I'm using MathCAD 9.0.0.0. How can I use MathCAD to solve for theta? Below is the screen capture of what I have written so far. Attached is my MathCAD file. Thanks, Brent
Hello, I'm trying to draw 3D spline go through 5 points defined by matrix "a" .After defining matrix of x range, y and z, these three matrixes are not able to be combined by "augment" function.Are there any way to combine these three xyz matrixes? or any other way to plot xyz?
I'm using MathCAD 9.0.0.0. Attached is my program. I need to find theta. Theta should equal 32.6 degrees. How can I get MathCAD to solve for theta? Thanks, Brent
Hello,I'm using a worksheet in Mathcad prime 11 with the pwrfit function to interpolate the curve of electronic components.Since I like working with units in Mathcad, I slightly modified the interpolation coefficients to include units.Solve this kind of equation, but with the interpolation VPROT = F(I). I is the resultMy goal is to solve a function that uses this interpolation. The solve function doesn't work, but I can find the solution for a single point using a solve block and the Find function. Could you help me to solve the solve function 🙂 Thank youSee attached file.
Hello community!I request your help with the following: I want to enter a matrix into a larger one.I’m working on assembling a global stiffness matrix of a structure (truss)I have defined the matrices of each element. The matrix of the element is 4x4, "i"= 1 to "n", n: number of elementsI have an auxiliary matrix that defines in each row the degrees of freedom associated with each element. For example row 1 contains the degrees of freedom of element 1 and so on. I named this matrix GDL What I want is for Mathcad to grab the matrix of each element and place it in the global matrix at the positions corresponding to the columns and rows that indicate the row of the auxiliary matrix GDL. For example the stiffness matrix of element 3 must be placed in rows and columns numbers 1, 2,5 y 6 of the global matrix.I understand that once the correct routine is created I would have to use a FOR cycle to do it for each element. But at the moment I’m trying to test with only one element&nbs
I am currently using the free trial version (EXPRESS) of Mathcad Prime. After converting a file created with the old Mathcad using the "Input/Output" XMCD converter menu, I opened the converted file and tried to copy and paste a table from Excel into the original table, but it is not reflected. During the conversion, a message "To maintain the numerical results of the input table, the table has been converted into a matrix" was displayed. Is this the cause? Could you please tell me the reason and the solution?
The Mathcad functions matrix, CreateSpace and CreateMesh have a few limitations that led me to create alternatives. One set of limitations is that the x (& y) ordinates they use are restricted to being linearly spaced (unless using a mapping function in CreateSpace and CreateMesh). This often proved a nuisance, so (way back in Mathsoft Mathcad v11), I wrote replacements for them that allowed me more control over the x & y coordinates. Secondly, Mathcad doesn't have a vector counterpart to the function matrix. A simple enough thing to implement. And, bringing us up to date, CreateSpace and CreateMesh are Premium functions in Mathcad Prime, thus unavailable for Mathcad Express. With the latter in mind, and noting CreateSpace's use in a recent thread, I thought I'd cobble together a worksheet showing one possible Express implementation of the functions vector, matrix, Vector, and Matrix (the latter two being replacements for CreateSpace and C
Hi everyone,I’m currently exploring how different PTC tools can be leveraged together and had a question regarding potential integration.Has anyone worked with or come across an integration between Mathcad and Windchill Risk and Reliability? Specifically, I’m interested in understanding:Whether there's any native integration or API-based connectivity between the two tools.If it’s possible to embed Mathcad calculations into risk models or reports generated within Windchill Risk and Reliability.Any best practices or workarounds for using outputs from Mathcad (e.g., failure rate calculations, stress analysis, etc.) to support risk and reliability assessments in Windchill.How such an integration (if available) could streamline risk analysis workflows or improve traceability.I’d really appreciate any insights, documentation references, or experiences you can share. Thanks in advance!
HelloI am looking for a way to access and override the content of headers without starting MathCad. This is required for our document management system - once the file is officially issued the document management system needs to override the date, title, etc. I do understand that MathCad files are zipped xml's and I could modify the values in the xml file but the header/footer text content does not seem to be available. Thank you in advancedMichal
My Mathcad Prime 11 trial period has recently ended, so I've been reviewing how some of my older Mathcad Express (E7 & E10, mostly) worksheets and functions perform under Mathcad Express 11. While updating an array reshape function, I noticed that the performance was deteriorating as the array size increased. This in itself wasn't too surprising, but it was a lot slower than I'd have expected from an O(log(n)) algorithm. A mere 50,000 elements were taking 3 to 4 seconds to vectorize (confusing terminology in Mathcad terms, I know, but it is common in mathematics - see links at the bottom of this post) reshape, however, used a vec variant to flatten the target array into a vector, before creating a suitably dimensioned array from the resulting vector, and vec proved to be the reason for the performance problem. vec uses fold to apply a bespoke stacking function to its input argument. I wondered if there was a means of speeding it up and tried a
Hello,I am trying trying plot the I/V curve on the graph of the diode model, having as example from "Simulation on Mathcad the SPICE Model of the Diode Dmbr2045mfs.pdf" by Pedro Vitoriano.an somebody help me? Thank you.
I'm brushing up on my Mathcad Express skills by writing a Roman-to-Arabic number converter, and thought I'd try generalising it slightly to encompass similar sign-value systems (eg, apostrophus and extended subtractive Roman numbers, and Hebrew numerals). Mathcad's Unicode range does, however, support Hebrew (and Japanese). I can programmatically create Hebrew strings ... ... However, I'm having a problem trying to paste Hebrew text into either a variable name or (of particular interest) strings - nothing happens. Text Box, no problem. Hence, the title of this thread: how can I paste Hebrew text into a Mathcad string or variable name? Stuart Addendum: This doesn't seem to be a problem for Japanese text. I also note that several such number systems aren't possible to implement because Mathcad doesn't (yet?) support their Unicode ranges (eg, Egyptian hieroglyphics, Sumerian cuneiform, Ancient Greek,
Mathcad 14. File attached. I am trying to fill out this area which I believe launches excel and I get the following error: I was looking at the forums and some people suggested using Excel 32 bit instead of 64 btbut I already have 32 bit before I go through the hurdle of asking IT to reinstall this software (which might not even solve the problem) what can I try? thanks,
Mathcad 14. File Attached. Everytime I double click this box, I cannot type anything in the script anymore and I cannot edit itwhat is that box and how to edit it and get out of the selection to edit it? I dont want to remove or change because I am supposed to change anything in the script other than the input values.
When I tend to open up the worksheet in Mathcad Prime 8 does it auto recalculates the worksheet on its own or do I have to manually calculate the worksheet ?If yes In which scenario does it recalculates the worksheet? Best,Sam
Helloin the attached sheet there is a problem of mechanics of a damped systemUnfortunately I couldn't use odesolve, so I tried RKfixed, but again I got an error message from Mathcad. So I did a manual RK4😅Could someone help me use the Prime RKfixed? it would be more elegant than what I did😂and also to stop the loop when "v" (speed) becomes negative,after that continuing the iterations no longer makes physical sense, at least when x<0. Since at that point the load has passed through the damper also, all attempts I made with the units failed Differential equations are not easy for me😂
Trying to Solve for Va as a variable. Used "Solve, Va" and tried using the find (Va) function but it wont give me anything. Does anyone know any Tricks to this?
Thanks MathCad! It happened once again. Program crashes AFTER I saved the file and open up the file and it is completely blank. I have complained about this for YEARS and nothing has been done and I know it happens to others. I am looking for a new software option because I am TIRED of losing work.
As an electrical engineer who performs worst case analysis of electrical circuits, I'd like to automate this task. I'd like to take a parts list in Excel, and have Mathcad create the definitions for each part. For example, my parts list has R1, 100 ohms. I want Mathcad Prime to make the equation R1:=100Ω. Is there a way to do this?
I am looking for a straightforward way to add my mathcad sheet to word. The solutions I found online haven't been working well or are not very practical considering I have over 200 pages on mathcadmaybe someone knows an alternative that works for my casewhat I have tried so far is:1. Copy Paste with Keep Source Formatting:Does not respect page margins, even if I copy and paste page by page with both Mathcad and word with the same page size and margins: 2 Copy Paste with Merge Formatting:this happens when there is math inside a textbox, which happens often: it is like they are all superscripted, it looks odd 3 Print to PDF and add to word: doesn't work because word only adds the first page of the PDF 4 Snip every single page and add one by one: works but it would take too long. Also there might be a chance I will have to update my mathcad calculations and redo this process, making it very time consumingsame for: creating a PDF of every single page separately and add
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.