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!

displaying numbers in equations 1

Status
Not open for further replies.

bmagdalena

Structural
Jun 22, 2009
57
Is there a way for MathCAD to display numbers used in the equation?
I got my variables, my equation, but visually I want to check if the numbers I used are correct.
 
Replies continue below

Recommended for you

In Mathcad 14, yes. You can apply a symbolic command for that. See the help files.

TTFN

FAQ731-376
 
I got Mathcad 13, so no hepl for me there.
Thanks IR :)
 
b,

Are you simply trying to audit your work to verify things are working properly before you automate?

Or are you interested in seeing the equation inputs/outputs each time this is executed (like some of the online Java calculators)?

P
 
more in seeing equation inputs, so I can visually analyse what I parameters I can change to get better results.
 
Explicit command should be used in this case. My problem is the following:

Example: a=1 b=2 c=a+b=1+2=3 what I want to show.

Using explicit function, the following is shown:

c=a+b=1+2=1+2 I can see no result! But tutorial shows an example where Mathcad 14 writes the result correctly. Why is 1+2 shown twice instead of the result? I do not understand it.
 
balazsm,

For your example if you use
a:=1
b:=2
c:=a+b explicit,a,b->1+2->3

(Where -> is the symbolic evaluation on the symbolic toolbar)

By hiding the keywords and displayed evaluation as equal sign you can quite easily get what you're after
c:=a+b=1+2=3

This is using version 13.


bmagdalena,

I started a post a few months back which addressed a similar issue, it didn't come up with a solution though, more of a work-around. It might be worth a look though:



All the best
 
Thanks ferryscott but semms it is a bug I think because it doesn't show the result for me.
 
my bad, it was in M13

see help item: Symbolic display of explicit values before reduction

TTFN

FAQ731-376
 
It worked for me in Ver. 13. Did you use the symbolic toolbar to insert the "explicit" operator? You can't just type it in. To change to equal signs and hide the key word, right click on the expression.
 
thanks guys, it works. but one more question. I have nested variables, mean in my final equation I have values that were equations at one point of time. When Im using explicit operation it brakes up valuse very detailed including equations that I already have numerical value calculated for.
so if I have:
a=1
b=1
a:=b+c
a=2

then next eqation
e=1
d:=a+e
then under
explicit Im getting a+1, or 1+1+1.
since I already know value for a, is there a way to skipp brakedown of a value and just get for d 2+1


balazsm
maybe you already fund this out, but to get results after explicit operation you need to go to the end of the result equation and add equal sign to get the result.

 
No, the function is very limited, and after a while, I think you'll realize that it's quite unnecessary.

TTFN

FAQ731-376
 
yep, It's easier to just type numbers next to the original equation, and manually change them if nessesary.
thanks
 
There is at present, as far as I know, no method of stopping the explicit expansion at any particular level or for any particular variable. It would be nice if they had a modifier LEVEL1 (rather than ALL) that would olny substitute values for the current equation.
 
While it's discouraged, you can use the global definitions to define the variables you want to look at, and place them next to the equation you're interested in. This allows you to change the variables insitu, without scrolling back and forth.

Since globals are processed before anything else, their definitions are valid anywhere in the sheet, no matter where the actual definition is. Obviously, it makes it hard to read the sheet for an outsider, but sometimes, it's worth it.

TTFN

FAQ731-376
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor