Dedicated forum for our customers to share, collaborate, discuss best practices.
Recently active
MathCAD is changing or not recognizing the unit of measure. The answer would be 28000 MPa
I am getting error units are not compatible for the said equations and not unable to figure out the way to solve it. Any help is appreciated
I'm wanting to generate spice models in MathCad Prime worksheets. The problem I'm having is I can't seem to find a way to substitute the value of a variable into a text block.I calculate some variables such as: Model_Name:="HDS10M"Nf=2.4Isf=1.86e-7 Then I want to create a text block that contains something like this. .model Model_Name diode(N=value(Nf) Is=value(Isf)... ) but I want this to be displayed in the worksheet so I can just copy and paste it into a text file to have a model.. .model HDS10M diode(N=2.4 Is=1.86e-7) This would be very useful when there are a bunch of parameters like in a FET model or in a subcircuit to eliminate opportunity for human error. Is there any way to do this? Best Regards,Chris
Good morning, I am running some deeper simulations in P8 and noted that the CPU grind was pretty fast. I was surprised at this and ran a simple side-by-side with compiled C on a simple summation test. I found that the slowdown ratio was only about x25. In similar tests, I have found Python to be about x200 to x500. I'd be interested to know how P8 has achieved this. Perhaps the developers could comment. Here is the C++ project /* time example */ #include <stdio.h> /* printf */ #include <time.h> /* time_t, struct tm, difftime, time, mktime */ #include <iostream> double F_SUM() { double SUM = 0; for (long i = 0; i < 1000000000; i++) { SUM += i; } return SUM; } int main() { //clock_t clock(void) returns the number of clock ticks elapsed since the program was launched.To get the number of seconds used by the CPU you will need to divide by CLOCKS_PER_SEC clock_t t_STR; clock_t t_END; dou
Good morning, I was going to post in the suggestions, but I do not have permissions. I assume this has been discussed before but I wasn't able to locate. Two big components missing in the programming toolbar are simple comments and unary operators. CommentsI suggest the ability to add comments with a simple operator. I have been doing the following for the last decade or so and it doesn't appear to incur CPU usage to any significant degree. It would be nice if you could include an HTML link you can in Visual Studio. This is what I do currently but it is clunky:Unary operatorsThis would be nice savings and improve readability. Prefix and postfix operators would be ideal and save space. I assume these could be made to run very fast.i++, i--++i, --ii+c, i-c, where c is a variableetc.Regards
I have a System of 2 ODEs and one Algebraic Equ By using rkfixed or rkadapt function I must have only 2 ODEs Is it possible to have have ODEs and Algebraic Equations in rkfixed or rkadapt? With an integral?
Even providing all the inputs the lot will still not plot
Hello. I was trying to plot some level curves by using contour plot command (see attached file). When I define some variable "C", the plot works fine. But when I assign a range to the "C", the level curves fails to plot. Why the plotting fails? Best regards,Sergey
The problem is the R loop solve 2 instead of 1 and the Vx loop solve 2 instead of 3. What’s the problem?
Dear All How are you ?all . long time not login this community. Please guide me to solve System of Differential Equation in Mathcad as Example below Mx''+Kx=p(t) harmonic force If this example is error please feel free to change the purpose is how to solve in Mathcad Prime Thank u
Hi,I am trying but cannot figure out what I am doing wrong. It is to understand the overall mistake that I have been doing again again. Why do you think I cannot plot this?
How do I get the plot work in Mathcad?
With the four equation evaluated symbolically I am getting results for 3 but the same is giving result as 0 for the last equation any idea?
Hi everyone! New to posting here. Only slightly less new to MathCad as a whole. I am using a matrix with unitless values, multiplied by a constant that has attached units. The resulting matrix shows units, but it won't allow me to change them. The constant's unit is a force, in tons, and the resulting matrix shows pounds. I was only able to alter the style/number of units displayed. A few points to clarify: I don't believe I can attach the sheet (work reasons), but if I have not provided some necessary info, I can add more images or provide detail. I have read some of the debate about units in MC on these boards. If the goal I am after in not attainable, that is fine, but I am here for specific information/knowledge. It is not up to me to rework the entire sheet to not include units then append them at the end, or something like that. I just need to know if we can change what we see now or no. Similar pre-comeback to any comments about the way we built the matrix with t
As per this thread - same issue Hi Luc Meekes I have probably the same problem. I have renamed the png files but I do not know how to correct the reference to it. It is also a very important file for my diploma thesis. Thank you so much for your help!
What can you say about it? From one my artice: "Operations of dividing a second-order differential equation into two first-order ones, transferring mass from the left side of the equation to the right side, turning a set of points into a function by interpolation, and so on. in Mathcad 15, the built-in Odesolve function automatically conducts, paired with the Given keyword. This function appeared relatively recently in the Mathcad environment and is not yet available in the SMath environment. The process of solving differential equations with Odesolve can be compared to driving a car with an automatic transmission. Working with the rkfixed function and others like it is driving a car with a manual gearbox. But real car enthusiasts (almost pros) prefer a car with a manual gearbox, which allows you to drive more professionally and save fuel." Gravity train with two kind of friction.
I have two questions about the attached worksheet:1. I am trying to calculate two functions in two different ways: One by using a program, the other using the step function. The program gives expected results and for one of the functions, the step function expression agrees. For the other, it does not. Obviously, I am doing something wrong, but I cannot see what it is - I thought I set them up in the same way.2. When I eliminate an argument from the function, that I do not think is used, I get an error with "augument". This is something else I cannot understand.
Good afternoon, As titled, I am crafting a general purpose ShellExecute that will run inside Prime. I have it working. But there is an issue with a null pointer. My approach was to pass strings. These are strings that define the EXE, and the command line. An example would be like this: ShellExecute ("Notepad.exe", "c:\\data\\test.txt", "Null") The problem is that I had an issue with a null pointer being passed, so I had to create three MCAD strings like this: LRESULT ShellExecute_MCAD(MCSTRING* pMCS_Empty, MCSTRING* pMCS_Process_EXE, MCSTRING* pMCS_Process_CMD) here is the Visual Studio cpp file. I can also attach it if needed. // dllmain.cpp : Defines the entry point for the DLL application. #include "pch.h" #include "MCADINCL.H" LRESULT ShellExecute_MCAD(MCSTRING* pMCS_Empty, MCSTRING* pMCS_Process_EXE, MCSTRING* pMCS_Process_CMD) { // Routine performs a MCAD shell execute HINSTANCE L_R
I am unable to get a proper plot in mathcad prime
As per the original Post.. Luc… This is very interesting and elegant. It turns out that I have an application for your method as well. However, I have Prime 5 and can't read your Prime 6 file, and the image you posted is cropped on the right end. Could you post a full image so I can recreate your solution in Prime 5? Thanks. Fred
Is there any quick and easy way to generate Binomial coefficients with Mathcad 8.0? Or do I just use the definition?
Will be good!? Not 13 but 12!
I have an array with values and I want to extract the rows, from a different matrix, that correspond to the values of the array. Any ideas on how that is possible? Right now the row extraction command (CRTL+SHIFT+r) will only accept integers. Thank you in advance
Why I am getting solution in terms of ω
Not points but numbers of the points!
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.