Dedicated forum for our customers to share, collaborate, discuss best practices.
Recently active
The Mathcad rounding and truncation functions take the form function(z,y), where z may be complex but y must be real, This is an unnecessary restriction and contravenes the Zen of Mathcad Rule 16. This Mathcad Enhancement Proposal (MEP) extends the y argument to accept complex numbers. Furthermore, the rounding and truncation functions operate only on scalars and vectors, not on matrices. This is, again, an unnecessary restriction. This MEP extends the truncation and rounding functions to accept matrix arguments. The MEP further adds a function frac(z) that complements trunc by returning the fractional part of complex z; frac vectorizes over its arguments. The MEP further extends the mod function to accept complex arguments; mod vectorizes over its arguments. Stuart Demonstration Mathcad Express 10 worksheet attached in support o
What I have here are two measured displacements over the same time with an equal interval of 1 second. Both oscillations tend to approach the resting asymptote, which is the same for both. The first one at the end of measurement didnt manage to approach, but the second did.For my task, I had to find periods and amplitudes of oscillations. To get periods, I simply used the difference between two interceptions of oscillation with asymptote via root() function. One of the arguments for this function is a guess points between which this interception should be met. For those points I pick local extremas (or peaks shortly). To get them, I need to know the first derivative of the oscillation function and look for the points where derivative becomes zero. But in my case, I have only empirical data, which I have to use to get proper constants a and w for the oscillation equation.Based on this, I created splines for both data sets, and started taking derivatives to find a slope.To get local
Hello All,Today I had P11 installed. It is worse than P9 and P10 combined in terms of speed. Also, I dont know why the Text Block, Text Box, Image, Copy, and Paste are greyed out. Regards,Sam
Now that I have been forced onto Prime (changed employers, new install, 15 no longer for sale) I am really struggling with the keyboard shortcut for subscripting variable names. I get that there must be some good reason why PTC couldn't use . (period/dot) for it any more, but seriously "ctl -" is about the worst possible key combination they could have come up with instead - diagonal opposite corners of the keyboard making it a difficult one handed combo with lots of scope for mis-pressing one of the 2 keys and ending up creating some nightmare instead of the variable name you intended? I know word uses "ctrl +" and "ctrl shift +" (or something like that) for this, but the whole world doesn't have to follow microsoft's mistakes blindly. Please please please give us a single key shortcut for subscripts in variable names - is there somewhere we can start a petition of something to lobby for this? I am wasting hours and hours of time going back and re-typing my variable names because
I'm using MathCAD 9.0.0.0. I have 2 equations with 2 unknowns. I need solve for "DF" and "DG." I've attached 2 files. The file I need help with is "MET211_ProjectP2_Sections.mcdx." The other file "MET211_ProjectP2_Joints.mcdx" I attached as reference because I already solved for these variable using another method. Those of you familiar with Statics know there is the method of joints and the method of sections. Not that you need to know Statics or need the reference file to show me how problem solver works, I just added it incase it helps you understand my situation better. The way this was demonstrated was the demonstrator had a fancy calculator with a "problem solver" feature that allowed him to plug in 2 equations to solve for 2 unknowns. I don't have a fancy calculator. All I have is MathCAD, so I hope this can do it. Thank you, Brent
HelloI am using advanced control text box with python to do conditional formatting. Unfortunately if the variable is undefined I cannot reset the formatting to warn the user something is wrong with the control which results in previous value being displayed. Is there any way to to change the text string/background color in case any variable is undefined?My code below:def TextBoxEvent_Start():# TODO: Add your code here pass def TextBoxEvent_Exec(Inputs, Outputs): Outputs[0]['Value'] = TextBox.TextS = Inputs[0]['Value']A = Inputs[1]['Value'] stringText = TextBox.TextTextBox.Text = str(round(A/S,2)) if S>A:BackColor = TextBox.BackColorTextBox.BackColor = "#FF0000"else:BackColor = TextBox.BackColorTextBox.BackColor = "#92D050"pass def TextBoxEvent_Stop():# TODO: Add your code herepassThank youBest regards Michal
I have copied and pasting equations from Mathcad 15 to paste in Word document. The word document will be edited to be part of a book. the Editor told me that the quality of the equations was not good, that only had 96 dpi of resolution (I do not know what this mean). But for print, the quality of the equation, as seeing in the word document, has to be 300 dpi. Does anyone have idea how I can improve the quality of copying and pasting equations in word documents? thank you in advance, Rogelio
This month’s challenge is a programming challenge inspired by Dijkstra’s algorithm, which finds the shortest path from a single source to all the other nodes in a network, based on weighting. In this scenario, we will use points in a 2D plot, where the weighting is the distance between the points. Challenge 1: Known Points For the provided points, write a program to calculate the shortest path from the first node (5,5) to all other nodes, always choosing the shortest path from the current node. Feel free to use Mathcad's random number generator functions to make your own points instead. You can also start from a different point of your choosing if you so desire. Challenge 2: Graphing Create a Chart Component or XY Plot that graphs this path. Challenge 3: Advanced Inputs Incorporate advanced input controls to allow the user to change quantities such as the number of points or generate new points / path. Challenge 4: 3D Can you write a program that performs t
When I find a new function and want to know what it does and what its arguments are, I go Resources > Help and enter the function name. Let's say I enter "augment". When I click search, I get dozens of hits and it takes me a while to find the one that actually explains how to use the function. Is there a more straightforward way to get right to the usage of the function? I'm using Prime 11.
Hi dear, I'm having trouble with the "for" loop when I create a function and try to graph a spectrum as a function of time.I have MathCAD version 11. It worked in the old version, but in this latest version, it shows me an error message stating that the variable T is not defined.Why is this happening?
In mathcad Prime 1.0,is there any way to change the background color of the page?Thanks in advance.
Converting from Mathcad 14 file to Mathcad Prime 11.An error occurred when extracting and redefining a matrix by specifying a column.Changing the matrix column specification from a variable to a number does not cause an error.Why is the error occurring?
I am trying to fill a 1D array/vector with calculated scalar values. This works fine for a simple calculation; but for a more complicated calculation, it fills the vector with nested [1x1] arrays instead of scalars. I have tried to use Vectorize to fix this, but unsuccessfully.As an example, I define an array index i = -mf::mf. A simple function f_sub_i = f0 + df*i works fine to set up a vector of frequencies f with uniform step size df. But now I try a Gaussian function S_sub_i = e^{-[(f_sub_i -f0)/sigma]^2} , and I get a vector of nested [1x1] arrays instead of scalars. How can I get a vector of scalar values calculated by the formula for S_sub_i? I'm using MathCAD Prime 9.0.0.0
Alan (The attachment is Prime 11).
Does anybody know how Mathcad strings are encoded? I've got a project on the back burner to look at Babylonian mathematics, including astronomical observations. I'd like to convert between Arabic and Sumerian/Babylonian numbers and display them accordingly. Unfortunately, whilst Unicode has code points for cuneiform numerals, I can't display them. According to the Mathcad Prime 11 Help, vec2str(v)—Converts a vector of UNICODE codes in v to a string. This function also works with zero-length strings, such as vec2str(0) = "". str2vec("S")—Converts a string S to a vector of UNICODE codes corresponding to the characters in S. This function also works with zero-length strings, such as str2vec("") = 0 v is a vector of integers representing UNICODE code points for any valid string character. Acceptable values are integers in the range 9, 10, 13, or 32 - 255. The mapping of codes to characte
Can anybody throw some light on the problem below when using min? "System Error. Entry point was not found." I tried rearranging the definitions of pred and pushing min further down the functional chain, but to no avail. Indeed, using IsFunction caused Mathcad to bang out. max doesn't have this issue. Nor do any of my redefinitions of min. The problem occurs in both Mathcad Express 10 and Mathcad Express 11, even when only the definition of pred and the evaluation are present. pred has a counterpart function, succ, and that too shows the problem. Mathcad Express 10 worksheet attached and Exception log file attached. Stuart
Hi I need to subtract two different matrix . one has ( 7 rows, 2 column) and the other has (5 rows , 1 column) I know the other own is shorter so the result should be the same number in the bigger matrix. like it treat the missing numbers as zeros Is that possible ? Thank you The sheet is attached
How do I change my email address. My current email will be void at the end of August and I find no way to change it on my profile or settings.Thanks
I need to add a summary at thr bottom of my calculation to shoe results as shown below.I am not able to do.I request shed me with some lights to get around this.
I am working on a sample to develop my calculations.I used both If .. Then and While.But, I can get the results: J is not adding up. Looks like J keeps remaining at 1. I request help.
I'm using MathCAD 9.0.0.0. I get this error on my last equation...I don't know what's off because all of these variables worked fine together up until this point. Initially the box was only around the first CDH until I added "explicit,ALL" so that might be something to look at. Thanks, Brent
Hello,I need to define a large number of variables, as listed in the attached Excel file.The file includes the variable names, units, and values.Currently, I’m defining each variable and its unit manually, which takes a lot of time.Is there a way to make this process faster—perhaps by using loop processing in a program or some other method? attached file is made by Mathcad10
I have two list boxes (MathCAD Prime 11.0.0.0), The selection of one list box drives the list of the other box (see picture). The problem I have is the values update on re-opening the sheet. I can get the sheet to remember the 'Type' selection. However I can't get the second list box to remember the selection from the previous save and close. Below is the code in the jscript:- // TODO: Add your initialization code hereListBox.ResetContent();// Add Strings here as needed function ListBoxEvent_Start(Inputs, Outputs) { // TODO: Add your code hereListBox.ResetContent()if(Inputs[0].Value=="UC"){ListBox.AddString("356 x 406x 1299");ListBox.AddString("356 x 406x 1202");ListBox.AddString("356 x 406x 1086");ListBox.AddString("356 x 406x 990");... (the full script code is attached)So I know/suspect the issue is the 'ListBox.ResetContent()' line but how do I stop the script running on open or remembering the selection, so that it keeps the previous save options?The sheet opt
Hi there,I have been trying to use the Symbolic Solver in Mathcad prime v10 as shown in the following SS but I could not figure out. Could someone kindly plz help in this one? I would be much obliged. I am trying to get the values of Wa and Wb using the symbolic solver.
Hi, I am a new user of Mathcad Prime 10, with some experience of Mathcad but all gained long ago, before Prime came along. I have set up some functions to operate on range variables with equispaced input values. I want to work with the resulting range variables but have hit problems, partly due to a general lack of understanding and maybe partly due to the known limitation of Prime 10 https://www.ptc.com/en/support/article/CS416474 -- corrected link I can plot the output vs the input on an XY plot and the values check out correctly. To export the resulting XY table to Excel, I tried to use https://community.ptc.com/t5/Mathcad/MathCad-Prime-9-0-Exporting-data-set-Excel/td-p/913932The input/independent range variable is recognised and entered into the Excel cell. The output/dependent range variable is not recognised. I have also tried various "range to vector" conversions but these all seem to have the limitation of only working on the input/independent
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.