Dedicated forum for our customers to share, collaborate, discuss best practices.
Recently active
The MathCAD code generated by Chatgpt is pasting as text instead of Math input, and due to this issue it need to be manually typed in MathCAD. Is there any solution exist for this issue.
Once upon a time, when a whiteboard was bitten by a radioactive spider and mutated into Mathcad, I wrote several sequence generation functions. One of these functions was integers(a,b), which, given integers a and b, generated a list of consecutive integers between a and b, inclusive. Whilst updating my library of such functions to Mathcad Prime 11, I was emboldened by the idea of handling real a and b. Now, I could have gone the restrictive route and treated non-integer arguments as errors, but I decided to go with the flow and see if I could give some meaning to real inputs. All went swimmingly in my imagination - just restrict the output of the function to those integers lying between a and b. Until I thought about it for a few moments and realised that wouldn't work for certain cases - see the bottom of the screenshot below. Any ideas for how integers should handle such cases to give "meaningful" results? Or am I
Hello everyone, I hope you are doing fine!I recently calculated soil friction resistance force along subsea pipeline using Mathcad Prime 9.0.0.0.However, when I was inserting chart components to visualize the force along subsea pipeline, I got the message "This value must be real." in the chart component.Can someone please help? I attached the full calculation below.
how to write this variable in PTC Mathcad prime?
Hi 🙂How can I solve this equation f(a,b) = 0 ? Orange plot - f(a,b), grey plot is zero surface, so as you can see orange plot intersects grey plot 4 times, so there should be 4 solutions. Root() works fine, but by this method I have to change manually guess/initial values. Is it possible to get all solutions together for ex. in a matrix ?
I've been trying to port a worksheet to Prime 1.0, but have got stuck because, whilst recursion is supported, local recursive function definition is giving me a problem. How does one define local function f to be recursive in the attached worksheet? Does it work in Prime 2.0?Thanks,Stuart
If I type the equation using variables, Is there a way to get MathCAD to automatically show the values in the equation before it calculates the answer?For example, I set the variables...A:=4B:=3...then I type the equation...C:=A+B=...then MathCAD automatically adds "4+3=7" so it looks like...?C:=A+B=4+3=7...Then if I change the variables...A:=23B:=45...MathCAD automatically updates...?C:=A+B=23+45=68
In my attached program, I'm getting the wrong value. The A value should calculate 6.01 mm... However, MathCAD 9.0.0.0 calculates 15.77 mmI double checked my numbers and ran them through a calculator and I got 6.0086. I presume I have the wrong units somewhere, but I can't figure it out. I attached my program for review, or you can look at the screen capture of the calculations below. Thanks, Brent
I have the following boundary and an angle with the origin Pr and Mr are 1 x n vectors. I need to find, by interpolation, what is the value of Pr and Mr that correspond to the angle. what is the easiest way to do that on Mathcad?I am using Mathcad prime 9.0.0.0. Attached the file
I'm using MathCAD 9.0.0.0. How come MathCAD is unable to solve these simple equations?
See attached. I'm using MathCAD 9.0.0.0 and am having a few problems...Is there a way to put a bar above the variable Yf so it looks like ? I found something online about using the Windows Character Map and I can copy the bar symbol, but it won't paste in MathCAD.The last few equations are showing values with a long trail of decimal places following "explicit,ALL." Is there a way to limit it to displaying only 3 or4 decimals? I set it in "Math Formatting > Results > Display Precision," but that seems to have no effect.Alternatively, is there a way to break long equations to have them continued on the next line? The following values are off...T=19.76*10^3 and it should be 19,786 N-m. That's only slightly off.P=1.3*10^6 W and it should be 207,201 N-m/s(W). That's way off.HP=1.744*10^3 and it should be 278 hp. That's way off. Is that all because of a rounding error, Something I did wrong, or is MathCAD misinterpreting one of my variables?Thanks, &
In Mathcad 15, after selecting a portion of an equation with the spacebar, you could hit Insert on the keyboard to toggle between inserting before or after the selection. It doesn't seem to work in Prime. Is there a way to accomplish this, or do you just have to click closer to the beginning/end before hitting the spacebar?
While working on an answer to a question here in the forum, I noticed two bugs in Prime concerning the symbolics. I could not be bothered to report them the "official" way (too complicated, I am too old to be forced to jump through that many loops) so I post them here for your information and of course for PTC staff if they really are interested to improve their software (just joking...) Both bugs are already present in Prime 6 and still are in Prime 10. Bug #1: Simplification of an expression using "floor" and the Heaviside function returns a wrong result! BTW, the bug is due to the 'new' symbolics. When we switch back and use the legacy symbolics (only available in P6 and below) we get a correct result Bug #2 "clear.sym" does not clear a range variable. It should make it undefined for symbolic operations. "clear" works OK, but it also makes the variable undefined for the numerics. Interestingly the operation works as it should when a second variable is added
I have a vector of data points, and I'd like to be able to selectively plot just a portion of that vector. For example, I have a vector value:=[2 3 5 8 13 21] and I want to plot just elements 2, 3, and 4. I created an index:=[2 3 4] and tried to plot value[index on the vertical axis. I've tried both the chart component and the native plotting tool, and neither worked. The only way I've figured out how to do this is to write a mathcad program to fill a third vector with just the portion that I wish to plot, then plot that third vector. That's awkward. Can you tell me what I'm doing wrong?
Whilst writing a string replace function for Mathcad Express, I found what seems to be a problem with the string function search. I wanted to check a string for the existence of the Unicode characters for 11 (↊) and 12 (↋) in the duodecimal system ... and it found them everywhere even when they weren't there at all. Has this been noticed before? Have I made some kind of error or unwitting assumption? Cheers, Stuart (The simple recursive algorithm shown above is O(n) and only good for strings shorter than about 4000 characters (ie, under Mathcad's recursion depth limit. A slightly more complicated algorithm would use a binary-division algorithm to reduce the recursion stack to O(log n), which will handle much longer strings)
If there is a way to display the values of variables inside a block in mathcad 15?
This file is in MathCAD 9, but I'm experiencing the same issue in MathCAD 10. I believe MathCAD is misrepresenting the units. See attached. "Hmp" and "TH" have the wrong values when comparing with example 11.2 at the bottom. I rewrote them as H and T next to them. I substituted "m" and "Ump" for the actual values of 100000 and 1035 and the answers came out correct. So, something is wrong with how "m" and "Ump" are represented.
Hi,Can anybody solve equation ? Solution is x =1, but Mathcad doesn't see this solution ...
I'm trying to pass on a variable as a string to another mathcad Prime sheet. VAY is a number defined above in calculations within the sheet. I don't want the evaluated value but the variable itself. There should be a function to do just that. See screen shot.
Hello All, I have attached P10 sheet and an Excel sheet I am reading from. Many thanks to Werner and Stuart for helping me get this far. On page 12 of the Mathcad sheet, you’ll see the results of the axial forces and moments imported from the attached Excel file. On page 13, I’ve listed a couple of questions I need help with:1 How do I extract from the [TC axial Comp] forces of the panel forces (e.g. TC1, TC2, TC3, TC4, .... ) and place them into a vector labeled TC.Panel.Axial.Compr?2. How can I extract the [TC axial Comp] forces at panel points (TPP#), such as TPP3, TPP5, TPP7, TPP9, … and place them into a vector labeled TC.PP.Axial.Compr? Regards,Sam
Hello All, I have been manually inputting values from an Excel file into a table in Mathcad P10 sheet. I have attached both files. Is it possible to automate this process? I am interested in getting the values I highlighted in yellow in the excel sheet. Regards,Sam
New to this Mathcad Prime here. Version 10.0. I converted a sheet from Mathcad 15, In the converted sheet, every time I change the inputs I get question marks on the outputs and have to go back and manually type the uints over again. Is this a bug or can I solve this somehow. Thanks.
Could anyone suggest how I can setup a function within Mathcad to resolve the attached expression where I am looking to find theta?
Over 2 decades ago, I had a need to document technical analyses. After some research, I discovered Mathcad V3 (?). It worked with Windows 3 (or 3.1). I was ecstatic that Mathcad served my specific needs! Over the years, there were somewhat regular updates. As had been mentioned in other posts, Mathcad originally used the Maple Symbolic engine and then moved away from it. That was not a problem as I purchased a Maple license to fill in the gap.The above arrangement worked for me until PTC no longer supported Mathcad 15. It served my purposes for many years, so I decided to try Mathcad PRIME. It was an early version and it would not serve my purposes. However, I kept track of it and it became obvious that PTC was serious about developing PRIME's capabilities. I have had the opportunity to work with PTC PRIME 10 (and soon, V11) at my workplace. I am pleased with the capabilities and considered purchasing a personal license.
Hello, I have attached the Excel and P10 sheet. I'd like to read data from the second tab of the Excel sheet. The P10 sheet can read from the first tab of the sheet, but not the second tab. I don't know why. Also, I am interested in reading the values in several columns. Is it better to do one column at time, or there are other options? Stuart and Werner helped me with a similar question on 8/29/20225. Thank you for your assistance! Regards,Sam
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.