Skip to main content
1-Visitor
September 7, 2021
Question

Function that shows the equation that was used in a satisfied condition

  • September 7, 2021
  • 3 replies
  • 4654 views

Hi, 

 

I'm not sure if my subject is correct. But I'm looking for function to show the formula or equation that was used in a variable especially if there are conditions that was used in the said variable. see example below. Variable Leh has 2 formulas that was conditioned based on the value of variable nv. if the first condition was satisfied, i want to display the formula instead of the result of the formula. Thank you

 

Sample.png

3 replies

23-Emerald V
September 7, 2021

Probably your best bet is to return the expression as a string, if you can put up with the lack of subscription (and can tolerate, say, using a period (".") to indicate start of subscripts).

 

You may be able to play around with the symbolic processor (SP) to get the result you want, but invoking the symbolic processor both slows things down and may lead to undesirable side effects.

 

Stuart

 

 

1-Visitor
September 7, 2021

hi, thanks for the reply, can you so me how to do it or can you give an example? 

23-Emerald V
September 7, 2021

@MS_9880453 wrote:

hi, thanks for the reply, can you so me how to do it or can you give an example? 


Terry's given you a Mathcad 15 example of returning the formula as a string.   Here's a Mathcad Prime 7 example using the symbolic processor.  I haven't got M15, but I *think* it should work in M15 if you use different Math Styles for the "formula" and "working" expression.

 

2021 09 07 C.png

Stuart

21-Topaz II
September 7, 2021
23-Emerald IV
September 7, 2021

How about:

LucMeekes_0-1631045365781.png

 

Success!
Luc