Skip to main content
Best answer by StuartBruff

Good morning, Yusra. 

 

I hope you are also doing well.  

 

There are many ways to skin this particular cat.  Here are a couple, ...

 

2024 10 04 E.png

 

I'm sorry, but I have only Mathcad Prime 10, so the edited worksheet won't be of any use to you. Hopefully, the programs aren't too difficult to enter.

 

I must check where you define that exponential and f1, though.  The max values and the first ones I've checked look suspiciously similar.

 

Stuart

2 replies

23-Emerald IV
October 4, 2024

The f1[i you use in your program is an Array, you cannot compare it to a scalar. Maybe you want to compare it's minimum to 1:

min( f1[i ) < 1

 

Success!

Luc

23-Emerald V
October 4, 2024

2024 10 04 D.png

 

Edited to add: I see Luc has beaten me to the draw.  Morning, Luc. 🙂

14-Alexandrite
October 4, 2024

Hi Stuart, 

Hoping you doing well. 

Actually I need the result to vector as well. I needed all the results in f1 to be one or bigger . Do you have any idea to do so?

Thanks in advance,

Yusra

23-Emerald V
October 4, 2024

Good morning, Yusra. 

 

I hope you are also doing well.  

 

There are many ways to skin this particular cat.  Here are a couple, ...

 

2024 10 04 E.png

 

I'm sorry, but I have only Mathcad Prime 10, so the edited worksheet won't be of any use to you. Hopefully, the programs aren't too difficult to enter.

 

I must check where you define that exponential and f1, though.  The max values and the first ones I've checked look suspiciously similar.

 

Stuart