Skip to main content
3-Newcomer
July 5, 2024
Solved

no defined variables and redefing them?

  • July 5, 2024
  • 2 replies
  • 1313 views

Hello,
i am currently making a calculation with Mathcad Prime 9.0, where i got 3 different load cases and i want them all in 1  sheet.

 

i made a few formulas at the beginning, and will later calculate my loadcases with them. For that i wanted some variables to be empty, so that they will just shown as their variable name, so i can later change this variable in every load case to a different number.

 

  1. When i just use a non defined variable, the whole formula cant used further
  2. When i give the variable a value and change it later, it will not recalculate the formula with the updated variable.

 

Is there a Solution for this? Or is this just how Mathcad works?

Best answer by LucMeekes

Instead of mere 'formulas', you should use functions.

So instead of

LucMeekes_0-1720175209723.png

which requires m and a to be numerically defined, before F can be calculated, (hence the red error mark)

use:

LucMeekes_1-1720175286291.png

Where you can fill in the numbers for m and a once you're ready to calculate the corresponding value of F.

LucMeekes_3-1720175506695.png

And you can calculate the results for a set of scenarios:

LucMeekes_4-1720175540024.png

Success!
Luc

2 replies

ttokoro
21-Topaz I
21-Topaz I
July 5, 2024

Attach your worksheet. Usually, it is no problem.

image.png

t.t.
LucMeekes23-Emerald IVAnswer
23-Emerald IV
July 5, 2024

Instead of mere 'formulas', you should use functions.

So instead of

LucMeekes_0-1720175209723.png

which requires m and a to be numerically defined, before F can be calculated, (hence the red error mark)

use:

LucMeekes_1-1720175286291.png

Where you can fill in the numbers for m and a once you're ready to calculate the corresponding value of F.

LucMeekes_3-1720175506695.png

And you can calculate the results for a set of scenarios:

LucMeekes_4-1720175540024.png

Success!
Luc