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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Function Variable with Condition Statement

rjaison
1-Newbie

Function Variable with Condition Statement

Hi

I couldn't understand why the function with condition statement in this case IF statement as shown below dose not work properly

Function Variable With If.JPG

Is this right way ? or I am making some mistake.

BR,

J.Randeep

1 ACCEPTED SOLUTION

Accepted Solutions

Here's a workaround in M15:

minmax.PNG

Alan.

View solution in original post

6 REPLIES 6

P:S

On the other hand if i just use Maximize or Minimize manually according to the condition with out any condition statement it works correctly

I think it is a bug in Mathcad 15. In Prime OK:

minmax.png

Hi

Thanks for your insight.

Unfortunately I am using Math CAD 15 I need to find a solution that works with it.

If you are certain it is a bug, Math CAD support team should be notified about this?

J.Randeep

Randeep Jaison wrote:

If you are certain it is a bug, Math CAD support team should be notified about this?

J.Randeep

It is not a bug. It is one methodology of the soft.

If(a=b, m, kg) - a bug in Mathcad 15 but not in Prime.

Can you use in your case y(x) or -y(x) for the finding min or max?

Here's a workaround in M15:

minmax.PNG

Alan.

Hi,

Yes it did work.

But the logic is quite complex, it should be simple as Valery was mention it works fine in Math CAD Prime.

Thanks for your help.

J.Randeep

Top Tags