Skip to main content
1-Visitor
June 9, 2017
Solved

Variables don't transfer to equations

  • June 9, 2017
  • 3 replies
  • 6216 views

No idea why this doesn't work.

mathcad help.png

Even though this works as intended:

mathcad help.png

So it works for substituting B1 for D1 and F1 just fine, but for some reason substituting B1 for whatever it is defined doesn't work.

Thanks in advance.

Best answer by vlehner

Hi Thomas,

to get a symbolic result by given B1, you must recall the Function D1.

if you define B1 as "global Definition" you don't need to recal D1:

Best Regards, Volker

3 replies

19-Tanzanite
June 9, 2017

It's hard to debug a picture. Please post your worksheet (click on "Use Advanced Editor" at the top right of the edit dialogue).

vlehner1-VisitorAnswer
1-Visitor
June 9, 2017

Hi Thomas,

to get a symbolic result by given B1, you must recall the Function D1.

if you define B1 as "global Definition" you don't need to recal D1:

Best Regards, Volker

twolowiec1-VisitorAuthor
1-Visitor
June 9, 2017

Thank you! That works perfectly. I'm coming from Mathematica, so I'm still not clear on how things work.

25-Diamond I
June 9, 2017

Indeed some strange effects. Guess we can call it a bug in the symbolics!?

1-Visitor
June 9, 2017

Werner Exinger schrieb:

Indeed some strange effects. Guess we can call it a bug in the symbolics!?

No Werner, it isn't.

It's the kind of definition variables.

Gruß, Volker

25-Diamond I
June 9, 2017

Guess no.

If an expression (no matter if typed in or stored in a variable) is evaluated symbolically using the substitute command, this command has to work as it should. The different handling of an expression stored in a variable and an expression typed in manually is not as it should be (while it may be explainable by the way a symbolic expression is stored internally).