Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to show the values of the letters in a formula (Mathcad) 1

Status
Not open for further replies.

Yorkaev

Structural
Oct 13, 2011
7
Dear Mathcad users,

I would like to ask you for a help concerning a Mathcad issue. I am trying to make the program to show me the values of the variables that appear in a certain formula because the program just calculates according to the formula that I have written and doesn't show what numbers exactly substitute in the formula. I give you an example what I mean: let's say that the formula is
h=(a+b)*c, and a=1, b=2, c=3

so then when you type it in Mathcad it appears like that:
h=(a+b)*c=9. Instead of this I want to see
h=(a+b)*c=(1+2)*3=9 i.e. first the letters, then the numbers and the result in the end.

If anybody has an idea how to solve the problem plesa share with me! Thank you for the reponse in advance!

Yordan
 
Replies continue below

Recommended for you

Thank you for the help!

I also saw a similar way to do such a trick but with a command "substitute". Unfortunately it is not the exactly thing that I wanted to do, anyway it is better than nothing!
 
I doubt if it will help you, but attached is how you can do this using MuPad (MuPad is essentially a copy of the Maple program which is built into newer versions of Matlab)

=====================================
(2B)+(2B)' ?
 
 http://files.engineering.com/getfile.aspx?folder=4842655c-4789-4962-845d-04bafa4a6883&file=MuPadEquationDemo.pdf
Attached accomplishes more exactly what was requested in original post (h=(a+b)*c=(1+2)*3=9) and breaks the final expression into more readable pieces. But still done in MuPad

=====================================
(2B)+(2B)' ?
 
 http://files.engineering.com/getfile.aspx?folder=c8c9989d-82f8-412f-8136-951b98f46a34&file=MuPadEquationDemo2.pdf
Oou I see you've spent some time in dealing with my problem. Thank you for the consideration, you even went into programming stuff a little.

Actually my purpose is to use the trick which is about for many formulas for a report with calculations about a concrete slab and as you can guess I'm not so much into programing. The other problem is that it's kind of heavy to repeat it many times and put it to be a part of a report. The purpose for me to use mathcad is because I can put next to my formulas drawings, text descriptions and so on. Anyway I can just write the values of the symbolics below the formulas so the teachers can see them and understand what is used to caluculate a particular formula.

Thank you for the time spent one more time!
 
You can also use "explicit,ALL->" , so less typing when many variables.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor