Quantcast
Channel: PTC Community : All Content - Programming & Extending Mathcad
Viewing all 680 articles
Browse latest View live

MathCAD URGENT

$
0
0

I have a question about and algorithm I am creating.

I've got the necesary answer from my equation. But in that loop I need to find out from what combinations that value is given.

"Combinations" means, if you are watching the algorithm, that every variable is taking a valuea between 1 and 4 and entering the eqution.

I think that there are 4 cases in wich that result is given.

How do I find out those 4 cases? (in the same algorithm or even in an other is good; i need and output something like an array)


Display angle in degree instead of radians in plot

$
0
0

Hello,

 

In my plot, i am showing the angle in radians(X-axis). how can i display it in degrees w/o changing the plot? Thanks!

Solver equivalent

$
0
0

Hy!

What is the "Solver" command from Excel equivalent in Mathcad?

 

Given Find...does not find a solution.

It's only one unknown value and two equations

 

Thanks.

Error: the first vector argument must have more than 1 element

$
0
0

I am completely lost here. any help is appreciated.

 

errormathcad.jpg

Error: unequal_matrix_dimension.

$
0
0

file with error attached. Kindly let me know a way out of this error.

Using SOLVE function with 4 equations

$
0
0

Hi,

 

I would like to determine 4 variables with equations but it's returning (0, 0, 0, 0) which is not correct.

 

I think the way I placed the equations is not right.

 

Can anyone help me with this?

 

Capture.PNG

Thanks!!

[VBA] Read and write a text region

$
0
0

Dear all,

 

I wish I could interact with text region of a mathcad document using a VBA form.

 

Does anyone know a way to access to text region object (I'm talking about sentences, not string assigned) ?

 

 

Thanks by Advance.

 

François

Image scaling using Histogram

$
0
0

I'm trying to auto scale an image by using the histogram of the image and scaling so that a user defined percentage (e.g. 98%) is contained within the scale limits.

 

Maybe my attempt isn't the best way, and it doesn't work if I want to include 98% of all the data.

 

Thanks for any help.

Jason


Normalize (remove leading zeros) and then truncate?

$
0
0

Hello!

 

I am a student, and I am working on a homework problem that I can't quite solve.  I need to:

 

"Write a subroutine or function which will truncate a variable X to D decimal places after normalization.  For example:

 

D = 3, X=0.0069347 

 

Should be returned as:

 

X = 0.00693

 

"

 

Can someone help me write a program to do this?  I don't typically write programs in MathCAD, and i really don't know where to start.

 

PS: X can be any number, not just 0.0069347. 

Write a program to solve 3 simultaneous equations?

$
0
0

Hello!

 

I have attached my worksheet.

 

I have three equations and three unknowns, however instead of using the Find() in mathcad, I must write a program to solve for one of the unknowns iteratively.  I am very unfamiliar with writing programs.  Can somebody help me?

 

Thank you!!!

x value at which the function is max, and the maximum function value

$
0
0

Hello,

 

In the attached mathcad sheet, i need to determine the x value at which the function M(x) is maximum, and need the maximum value of the moment function M(x). Thanks!

Derivative of function

$
0
0

Hello,

 

Yesterday Werner helped with the derivative of  the M(x) function, and it was working. Today it is not. I am not sure why. Please scroll down until you see the red arrow. Thanks!

Question

$
0
0

Hy guys.

I have a problem with an algorithm.

I uploaded it so you can take a look. What changes do I have to make?

The thing is this: I need to find some dimensions so that a the value of N is equal to the volume (V) of the blue geometric form.

N I know. The volume i determined being the triunghiular pyramid minus the two with green.

The formulas I determined are aproximative, but the values must be similar to: S=1.03; t=1.09; p1=260.06; p2;90.11; p4=75.39. Yes, I know there is no p3.

A is the area.

So the question is: how to arrange those formulas so that the algorithm finds S,t,x1,y1,p1,p2,p3 so that N=V?

Thanks.

Fast question

$
0
0

Hy.

I have a quick question. A simple algorithm.

I have a condition: a<L*B(that equals 20).

Initial values x=1,y=1, a=x*y.

Iterative function "while".

The result must stop at 16 (when x=4 and y=4; a=x*y=16<20). Well it doesn't. It stops one pace later (x=5, y=5, a=25).

How do I make stop at 16 not at 25?

P.S. I noticed that those initial values x=1,y=1,a=x*y are irrelevant. I removed them and the algorithm wasn't affected.

Thanks.

find

$
0
0

Please help to solve the attached file.

y should be around 6.86 for the attached problem, but i am not getting the answer in mathcad.


Sub-Routines at the end of the program

$
0
0

Hi,

 

Is there a way to define sub - routines at the end of the program like -

 

 

a=3

 

Ans=cube(a)

 

 

 

cube(a)=   a*a*a

 

 

 

 

PS: I dont want to combine the call function and function definition.....

 

Thanks in Advance,

Prithivi

For Loop Programming Error!

$
0
0

Hello Mathcad community!

 

I'm unexpirienced Mathcad user, but I was able to solve all my problems and misunderstandings by myself. Till now.

 

I'm trying to analyse the experiment results of electric field measurement. It's sort of empirical method(so there is bit mess).

I had done some programming in Mathcad prime succesfully, but now I can't find where my mistake is.

 

I'm attaching sheet and imgs.

 

Thank you for any kind of help.

 

 

 

PS.: I'm using Mathcad Prime 3.0

Error at the very beginning

$
0
0

Happy Ester to everyone,

 

I have a major problem. When i start drawing anything, my screen just stays white. (Not just while drawing, all the time) I can click on the symbols that are used to be on the screen. So it’s just the screen who doesn’t updates or whatever. I tried to reinstall the program but still the same mistake.

Can anyone help me? Any ideas? I added one pic of the screen.

 

Would be great

Greetings

Friedrich

Programming Iterative Curve Fitting

$
0
0

Greetings!

 

I am a novice Prime 3 user of programming functionality.  The attached file contains two tables with multiple arrays of varying length.  My objective is to derive best curve fits for each pair of array columns, T0, P0 , in this example (366 pairs total), and output the fit parameters into another table.  As a means of checking each curve fit, I will examine each graphically.  This task would appear to be reasonably simple using programming but setting up the iteration and output is a tall hurdle at the moment.  Thanks!

 

Tom

How can i evaluate the moment using an array for variable, then finf max and min of interior values

$
0
0

Hello,

 

How can i evaluate the moment function using an array for my variables. Also need to determine the max moment  and minimum moment values at interior points excluding the first value at x=0, and the max  x value? please attached sheet where i have my questions inside the sheet. Thanks!

Viewing all 680 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>