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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Calling "on error" vectorised

sm�ller-2
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
RichardJ
19-Tanzanite
(To:sm�ller-2)

The vectorization needs to be outside the solve block

View solution in original post

13 REPLIES 13

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

NOK.png

I'm not sure you need a solve block:

simplified:

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

So i want to write a certain number instead

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

But you can calculate all rows

i dont really understand how you came to that equation

A little basic algebra:

Dp eq.PNG

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

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

The vectorization needs to be outside the solve block

thx you helped me alot 

lg

Stefan

Fred,

Your final equation still has DP on both sides.

Fred_Kohlhepp
23-Emerald I
(To:MJG)

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

Top Tags