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

Minimize with a parameter - bugs in 15 and Prime but different

ValeryOchkov
24-Ruby IV

Minimize with a parameter - bugs in 15 and Prime but different

Are its bug?

Min-a.png

3 REPLIES 3

Pretty sure it's buggy!

What you show is not a bug! You are minimizing by changing x AND a and so you always end up with a=x. Obviously they meet at the average of the two guess values (x=0 and argument a)

It seems that in Mathcad 15 the function definition and the definition of the guess value must be done at worksheet level and cannot be made inside a program.

Thats a sad/bad limitation - perhaps you may call it a bug,

Valeriy Kofanov had shown how it could be done that way:

As we can see from Valery's screenshot this limitation/bug is not present in Prime.

But using Prime Valery ran into anther, in my opinion worse, limitation of Prime.

In Mathcad 15 and below we can define a function in more than one variable and could omit the last argument(s) creating another function. This was very useful and convenient when we parameterized a solve block, etc.

This is not possible to do in Prime

and basically thats the error Valery experiences in Prime when he tries to minimize a function g with 2 arguments a and x for just one of them.

You decide if you call it a bug or just one of the many "limitations" in Prime.

Here is a very awkward way to do what Valery tried in Prime:

Top Tags