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

The PTC Community email address has changed to community-mailer@ptc.com. Learn more.

Minerr function not working on Mathcad Prime 8.0. Please advise

gatlas
8-Gravel

Minerr function not working on Mathcad Prime 8.0. Please advise

Team,

 

I'm trying to do some curve fitting with the minerr function but it's not working. Any advice?

 

The LambertW function routine is working with other Mathcad Prime 8.0 workbooks.

 

Thanks,

Dr. Atlas

1 ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:gatlas)

You've got a malformed solve block. There's a definition of C behind it.

Move the solve block to the side, then you'll see that the

LucMeekes_0-1655720088313.png

Definition is not part of it.

Delete that definition and retype it inside the 'Guess Values' part of the solve block. Then it should calculate with as result:

LucMeekes_1-1655720160688.png

Success!
Luc

View solution in original post

5 REPLIES 5
LucMeekes
23-Emerald III
(To:gatlas)

You've got a malformed solve block. There's a definition of C behind it.

Move the solve block to the side, then you'll see that the

LucMeekes_0-1655720088313.png

Definition is not part of it.

Delete that definition and retype it inside the 'Guess Values' part of the solve block. Then it should calculate with as result:

LucMeekes_1-1655720160688.png

Success!
Luc

Werner_E
24-Ruby V
(To:gatlas)

As Luc already wrote, your guess value for C is not inside the solve block (even if it looks that way) but behind.

This happens if you try to drag a region from outside into a solve block - it does not work. The same is true for trying to drag a region from inside a solve block to outside - it will snap back. A quite silly behaviour IMHO.

But Copy/Cut & Paste does work, so you may highlight the region "C:=10^-10", press Ctrl-X and then Ctrl-V.

When I do so, I get a different result (C1=3,667*10^-10) from the solve block compared to the one Luc has given.

Werner_E_0-1655725115925.png

 

 

 

 

 

LucMeekes
23-Emerald III
(To:Werner_E)

"When I do so, I get a different result (C1=3,667*10^-10) from the solve block compared to the one Luc has given."

My mistake (don't know where though), but on repeat I get the same:

LucMeekes_0-1655725364504.png

Luc

Thanks!

I got this result as well.

This is the same answer that I got. Thanks!