cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Switch statement in Mathcad Prime

LucMeekes
23-Emerald III

Switch statement in Mathcad Prime

This is in relation to the product idea: Switch Statement in Mathcad Prime, that for some reason I cannot vote for (nor against), possibly because I have no active maintenance contract with PTC...

The switch statement is not needed. Here's an example of the same functionality (in Mathcad 11, bet it works also and likewise in Mathcad 15 and Prime):

Note that Mathcad (Prime alike) normally works with reals, possibly complex, or even vectors and matrices, rarely with integers.

The only occasions where integers are required are in indexing vectors and matrices. It doesn't even require integers with the summation operator:

So instead of the switch statement, formulate your problem using an array.

Luc

1 REPLY 1
LucMeekes
23-Emerald III
(To:LucMeekes)

Oh, and here's the file.

Luc

Top Tags