cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Translate the entire conversation x

keepin variables in my Calcs - Mathcad prime 10.0

AM_10506871
7-Bedrock

keepin variables in my Calcs - Mathcad prime 10.0

I want to

AM_10506871_0-1743824292969.png

 

keep EI as EI in my calculations, as EI was defined previously. wondering if I can do that, and then I also want to extract 0.5 values out, because these are my Distribution factors. so I want to be able to type DF_BA = 0.5. 

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:AM_10506871)


@AM_10506871 wrote:

ok thank you got it, but how can leave varaibles outside my matrices without having them calculate. 


Your system is underdetermined and so you are confronted with an infinite number of possible solutions. Primes solve block returns one of these solutions and which one you get depends on the guess values you provide.

 

Which variable would you like to "leave outside" and what do you mean by this?
Do you mean that you want the solutions for the other four variables to be dependent on the choice of the value for this variable?

 

You may want to look in the sheet I posted in my answer here: https://community.ptc.com/t5/Mathcad/keepin-variables-in-my-Calcs-Mathcad-prime-10-0/m-p/1009097/highlight/true#M216727

 

I think you 'simply' have to look for an additional fifth constraint to make the solution of your system unique.

 

View solution in original post

12 REPLIES 12

Can you please include your sheet so it is possible to show you.

 

Include DF:= before the matrix.  then DF_BA:=DF[0,2

 

Cheers

Terry

I will attach it here, when you look at my sheet I also want to set up the next matrix you will I have started working on it. I want to write the global coordinates and leave - signs as is even if i ^2 it. it will make sense in my sheet. I am new to mathcad so I am still learning this. 

 

Thank you

Same Sceanrio I want to keep AE outside my matrix as is and not get calculated into my matrix

thank you

Werner_E
25-Diamond I
(To:AM_10506871)

Are you looking for something like

Werner_E_0-1743836675432.png

And here what Terry suggested;

Werner_E_1-1743836776316.png

I guess you used symbolic evaluation because when using numeric evaluation (equal sign) the values are shown in Joule and the unit in the matrix can't be changed. I added the modifier "float" because its better looking with less decimals (default are 20 signinficant digits) and I thought you would not need that high precision. "float" should be used with care, though, because it does not only affect the displayed result but also the precision of the whole calculation!

 

As an alternative, especially if you want assign the the other four values to some variables, too, you may use

Werner_E_2-1743837037676.png

 

I don't understand what you mean with your additional question, but looking at your sheet I noticed this:

Werner_E_3-1743837190531.png

You should avoid copy and paste as you may run into problems if you change some input values and forget that you have to copy and paste new results.

Rather use:

Werner_E_4-1743837308088.png

or even better

Werner_E_5-1743837351740.png

Prime 10 sheet attached

 

 

Thanks so much for the tips, as I am learning Mathcad, it helps a lot. 

 

I have attached my sheet again, I have written in red what I want to achieve.  so it makes more sense, Thank you

Werner_E
25-Diamond I
(To:AM_10506871)

Have added some comments in the attached file

Capture.JPG

I am re adding my worksheet. I have one more question marked in red

Hi,

In the solve block you have four equations and five variables to find.  Solve cannot do this you need five equations.

Cheers

Terry

 

ok thank you got it, but how can leave varaibles outside my matrices without having them calculate. 

Werner_E
25-Diamond I
(To:AM_10506871)


@AM_10506871 wrote:

ok thank you got it, but how can leave varaibles outside my matrices without having them calculate. 


Your system is underdetermined and so you are confronted with an infinite number of possible solutions. Primes solve block returns one of these solutions and which one you get depends on the guess values you provide.

 

Which variable would you like to "leave outside" and what do you mean by this?
Do you mean that you want the solutions for the other four variables to be dependent on the choice of the value for this variable?

 

You may want to look in the sheet I posted in my answer here: https://community.ptc.com/t5/Mathcad/keepin-variables-in-my-Calcs-Mathcad-prime-10-0/m-p/1009097/highlight/true#M216727

 

I think you 'simply' have to look for an additional fifth constraint to make the solution of your system unique.

 

thank you so much!!

Announcements


Top Tags