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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

11-Garnet

## Calling "on error" vectorised

Hallo,

attached a mathcad file with my question.

I need to call the function "on error" vectorised. So that i have a result of all the calculations

I tryed it but the result is not correct.

Can anyone help me with this problem?

As you can see the result is red because for the last value no calculation is possible.

Therefor a fixed value should be calculated for the result. Or an "on error" function

Thx Stefan

1 ACCEPTED SOLUTION

Accepted Solutions
19-Tanzanite
(To:sm�ller-2)

The vectorization needs to be outside the solve block

13 REPLIES 13
11-Garnet
(To:sm�ller-2)

this si with the on error function but i dont know how to do it on the right way.

The Result should only be NOK for the last row and OK for all the other rows.

But now its NOK for all rows.

Thx,

Stefan

24-Ruby III
(To:sm�ller-2)

23-Emerald I
(To:sm�ller-2)

I'm not sure you need a solve block:

11-Garnet
(To:Fred_Kohlhepp)

simplified:

the problem is that nothing is calculated because the last row cannot be calculated.

So i want to write a certain number instead

11-Garnet
(To:sm�ller-2)

or in other words:

i want a OKNOK vector on which the last row is NOK (no calc. possible) and OK for all other rows

23-Emerald I
(To:sm�ller-2)

But you can calculate all rows

11-Garnet
(To:Fred_Kohlhepp)

i dont really understand how you came to that equation

23-Emerald I
(To:sm�ller-2)

A little basic algebra:

11-Garnet
(To:Fred_Kohlhepp)

ok thx for the information. But i still dont know how to evaluate DP.

Im figuring out how to tell mathcad that i want an on error function for every row

and for the row which no value can be calculated i want to assign a certain value as in my mathcad which i attached

19-Tanzanite
(To:sm�ller-2)

The vectorization needs to be outside the solve block

11-Garnet
(To:RichardJ)

thx you helped me alot

lg

Stefan

Fred,

Your final equation still has DP on both sides.

23-Emerald I
(To:MJG)

Thanks!  You're right; I got lost in the maze between lower and upper case P's . . .

Announcements